https://github.com/m00nwtchr/oc2_hello_world
Open Computers II (RISC-V Musl Linux) Hello World Rust example, made very small
https://github.com/m00nwtchr/oc2_hello_world
linux minecraft musl oc2 opencomputers risc-v riscv rust-lang rustlang
Last synced: 1 day ago
JSON representation
Open Computers II (RISC-V Musl Linux) Hello World Rust example, made very small
- Host: GitHub
- URL: https://github.com/m00nwtchr/oc2_hello_world
- Owner: m00nwtchr
- License: mpl-2.0
- Created: 2022-10-31T13:12:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-05-04T01:05:23.000Z (12 months ago)
- Last Synced: 2025-05-04T02:19:23.162Z (12 months ago)
- Topics: linux, minecraft, musl, oc2, opencomputers, risc-v, riscv, rust-lang, rustlang
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Open Computers II (RISC-V Musl Linux) Hello World Rust example, made very small
Final compiled binary size: ~8KiB
- `strip = true`
- `panic = 'abort'`
- `codegen-units = 1`
- `opt-level = 'z'`
- `lto = true`
- `build-std`
- `panic_immediate_abort`
- `#![no_main]`
## Resources
https://github.com/johnthagen/min-sized-rust
https://darkcoding.net/software/a-very-small-rust-binary-indeed/