Embedded Development¶
Q++ targets systems programming: kernels, bootloaders, firmware, embedded.
Zero Hidden Runtime¶
- No mandatory allocator
- No hidden initialization
- Compiles to C, then to native
Considerations¶
Custom Allocators¶
Use malloc/free via FFI, or implement your own allocator. No built-in heap required.
Compile Flags¶
Use conditional compilation (when available) for target-specific code:
Bitfields¶
For hardware registers, use structs with explicit bit width:
Minimal Stdlib¶
Import only what you need. bring "std.fs" pulls in file I/O; omit it for bare-metal.