Skip to content

Commit 3261449

Browse files
author
B I Mohammed Abbas
committed
Add platform-support docs for Vxworks
1 parent 0ea5694 commit 3261449

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Diff for: src/doc/rustc/src/platform-support/vxworks.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# VxWorks
2+
3+
**Tier: 3 (with Host Tools)**
4+
5+
VxWorks is a real-time operating system (RTOS) developed by Wind River Systems as proprietary software. [VxWorks Datasheet](https://www.windriver.com/themes/Windriver/pdf/vxworks-7-datasheet.pdf)
6+
7+
## Target Maintainers
8+
9+
- B I Mohammed Abbas ([@biabbas](https://github.com/biabbas))
10+
11+
## Requirements
12+
13+
Development for this target involves cross-compiling from a host environment using a VxWorks Workbench and the Wind River C++ (wr-c++) driver.
14+
15+
## Building the Target
16+
17+
To build Rust binaries for VxWorks, you'll need a VxWorks 7 Workbench and Board Support Package (BSP) for each target. Supported VxWorks targets include:
18+
19+
- aarch64-wrs-vxworks
20+
- armv7-wrs-vxworks-eabihf
21+
- i686-wrs-vxworks
22+
- powerpc-wrs-vxworks
23+
- powerpc-wrs-vxworks-spe
24+
- powerpc64-wrs-vxworks
25+
- x86_64-wrs-vxworks
26+
27+
To enable a target for Rust (`rustc`):
28+
29+
```toml
30+
[build]
31+
build-stage = 1
32+
target = ["aarch64-wrs-vxworks"]
33+
```
34+
35+
## Building Rust Programs
36+
37+
Once `rustc` supports the target and necessary library artifacts are available, Rust programs can be built for VxWorks:
38+
39+
```sh
40+
rustc --target aarch64-wrs-vxworks your-code.rs
41+
```
42+
43+
## Testing
44+
45+
Currently, there is no support for running the Rust compiler (`rustc`) test suite for VxWorks targets.
46+
47+
48+
## Cross-compilation toolchains and C code
49+
50+
The targets do support `C` code.
51+
To build compatible `C` code, you have to use wr-c++/wr-cc with the same compiler and flags.

0 commit comments

Comments
 (0)