unknown-motor - The rustc book

1 min read Original article ↗

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The rustc book

x86_64-unknown-motor

Tier: 3

Motor OS is a new operating system for virtualized environments.

Target maintainers

@lasiotus

Requirements

This target is cross-compiled. There are no special requirements for the host.

Motor OS uses the ELF file format.

Motor OS target toolchain can be built using x.py:

The bootstrap file:

[build]
host = ["x86_64-unknown-linux-gnu"]
target = ["x86_64-unknown-linux-gnu", "x86_64-unknown-motor"]

The build command:

./x.py build --stage 2 clippy library

Building Rust programs

See the Hello Motor OS example.

Testing

Cross-compiled Rust binaries and test artifacts can be executed in Motor OS VMs, as described in the build doc and the Hello Motor OS example.

C code can be compiled as part of Rust cargo projects. However, there is no libc support.