logoalt Hacker News

hoppptoday at 4:29 PM1 replyview on HN

The zig compiler can compile C so will it work with C also?


Replies

bpavuktoday at 5:13 PM

not quite! if your project is mixed C/Zig, then editing Zig would work but editing C would not. the Zig compiler caches Zig AIR but no information from C. plus, the C compilation can only really be done with LLVM and writing a self-hosted backend would be PITA for C

show 1 reply