Simple cross-platform runtime / startup (like crt0).
- 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
Here is a small template to get you started:
#![no_main]#![no_std]use rrt0::prelude::*;#[no_mangle]fnmain() -> ! {// Do cool stuff, here!loop{}}If main returns, the startup code will panic.
See examples for more complete projects to get you started.