3 ms·
Zig did not compile to C, yet, and so is restricted to llvm's targets.
by dleslie 5y ago
Zig did not compile to C, yet, and so is restricted to llvm's targets.
- jedisct1 5y agoZig's stage2 compiler has a C backend https://github.com/ziglang/zig/blob/master/src/codegen/c.zig https://github.com/ziglang/zig/blob/master/src/codegen/c.zig
- dleslie 5y agoThat's not released or finished, last I checked a few weeks ago. Edit: Oh, looks like it was released just a few days after I last checked; ha. Although, it's not clear to me whether it's intended for end-user use yet. https://github.com/ziglang/zig/releases/tag/0.8.0 https://github.com/ziglang/zig/releases/tag/0.8.0
- dleslie 5y agoSelf-Reply addendum: on Discord the devs claim it's nowhere near ready for general use.
- Zababa 5y agoI think you can compile Zig to WASM, and then it's just a matter of finding a WASM interpreter/JIT in C.
- dleslie 5y ago... That would be terrible on, say, the Sega Genesis or 32X.