by KerrAvon · 3y ago · 0 comments
I also "incorrectly" wrote "target C" instead of "target C code". It's obvious what I meant.
>> Comparing the 2 is nonsensical to say the least.
You could have easily googled "C vs LLVM as a backend" to find a lot of interesting discussions comparing both before being so confidently incorrect
https://news.ycombinator.com/item?id=36529456
Basically the Zig language is moving away from using LLVM in its backend. One backend they are adding is one that generates C.
I guess if I had to restate the OP’s question, I would say:
What are the trade offs in making a compiler target LLVM versus C in its backend.