rrt0
rrt0 copied to clipboard
A simple cross-platform runtime / startup for Rust on embedded devices.
rrt0
Simple cross-platform runtime / startup (like crt0).
Supported platforms
- Nintendo 64
Primary goals
- Create a sane, platform-specific runtime environment
- Set the stack pointer
- Clear the
.bsssection (uninitialized static data) - Minimal hardware initialization (e.g. configuring the FPU)
- Panic handler
Usage
Here is a small template to get you started:
#![no_main]
#![no_std]
use rrt0::prelude::*;
#[no_mangle]
fn main() -> ! {
// Do cool stuff, here!
loop {}
}
If main returns, the startup code will panic.
See examples for more complete projects to get you started.