4 ms·
I would like to take this chance to mention the excellent https://github.com/rust-console/gba https://github.com/rust-console/gba crate, which is a very useful
by derefr 7y ago
I would like to take this chance to mention the excellent https://github.com/rust-console/gba https://github.com/rust-console/gba crate, which is a very useful zero-cost Rust abstraction layer you can use instead of the C compiler in the devkitPro GBA toolchain (and would be especially good for programming systems things like emulators, for the GBA.)
If you have some low-level C knowledge, but have never seen bare-metal programming done in Rust, it’s really quite a difference in approach; despite your statements compiling down to banging physical memory pointers and MMIO registers together, it feels quite safe—with a proper library helping you out, it becomes quite hard to put the system into a wedged state, for no runtime cost. You can’t even put bitflag registers into invalid states!