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: about 2 months 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 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T13:17:01.000Z (over 2 years ago)
- Last Synced: 2025-01-30T09:43:56.970Z (3 months ago)
- Topics: linux, minecraft, musl, oc2, opencomputers, risc-v, riscv, rust-lang, rustlang
- Language: Rust
- Homepage:
- Size: 9.77 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/