4 ms·
Check out[0] and the Zig Embedded Group[1] - it's not well publicized right now, but there's actually quite a lot of work going on here & Zig seems quite suitab
by slimsag 4y ago
Check out[0] and the Zig Embedded Group[1] - it's not well publicized right now, but there's actually quite a lot of work going on here & Zig seems quite suitable for embedded compared to some other languages.
> The standard library can be used unmodified on freestanding targets thanks to explicit allocation, comptime is extremely useful for things like precalculated lookup tables, and the unfinished C backend (part of the stage 2 compiler) means we’ll be able to target exotic architectures that LLVM can’t.
[0] https://allyourcodebase.com/embedded/ https://allyourcodebase.com/embedded/
[1] https://github.com/ZigEmbeddedGroup https://github.com/ZigEmbeddedGroup
- dleslie 4y agoStill no m68k, sh2, etc?
- Toaster-King 4y agoBoth these arch's are contingent on LLVM support, as there is no self-hosted backend (yet). m68k support was merged in LLVM 13, but I haven't seen anyone use it with Zig.