https://github.com/rust-console/rrt0
A simple cross-platform runtime / startup for Rust on embedded devices.
https://github.com/rust-console/rrt0
Last synced: 11 months ago
JSON representation
A simple cross-platform runtime / startup for Rust on embedded devices.
- Host: GitHub
- URL: https://github.com/rust-console/rrt0
- Owner: rust-console
- License: mit
- Created: 2018-12-16T05:27:26.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T22:59:24.000Z (over 1 year ago)
- Last Synced: 2025-04-23T02:47:55.069Z (11 months ago)
- Language: Rust
- Size: 54.7 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-n64-development - rrt0 - A simple cross-platform runtime / startup for Rust on embedded devices (Programming / Rust)
README
# `rrt0`
Simple cross-platform runtime / startup (like crt0).
## Supported platforms
* [Nintendo 64](./src/platforms/n64/)
## 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:
```rust
#![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](./examples) for more complete projects to get you started.