arch crate

May 5, 2025 ยท View on GitHub

A crate help you to write a os that support multiple platforms.

Wiki

Supported platforms

PlatformBoard
riscv64qemu
x86_64qemu
aarch64qemu
loongarch64qemu

Example

Here is an simple example in the example dir.

Run

# Run on riscv64
make ARCH=riscv64 example
# Run on x86_64
make ARCH=x86_64 example
# Run on aarch64
make ARCH=aarch64 example
# Run on loongarch64
make ARCH=loongarch64 example