rrt0
Simple cross-platform runtime / startup (like crt0).
Supported platforms
Primary goals
- Create a sane, platform-specific ABI environment
- Set the stack pointer
- Clear the
.bss
and.sbss
sections (uninitialized static data) - Minimal hardware initialization (e.g. configuring the FPU)
- Re-exports
F32Ext
andF64Ext
traits fromlibm
(for platforms with an FPU)
Usage
The panic
function must be imported with pub use
, or you will get missing-symbol errors at link time. The floating point trait extensions can also be used for convenience.
pub use panic;
use ;