Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 676 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 676 Bytes

rrt0

Simple cross-platform runtime / startup (like crt0).

Supported platforms

Primary goals

  • Create a sane, platform-specific runtime environment
    • Set the stack pointer
    • Clear the .bss section (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.