News for hackers. Stuff that matters.
Re:Zig cc: A drop-in replacement for GCC/Clang (2020) by lou1306 on Sunday July 18, 2021 @10:41AM (#27873334)
It does look impressive! Does anyone know if Zig exposes some APIs to extract/manipulate/analyze the AST of the C program? It might be a nice alternative to LLVM, which I find a little overwhelming.
Re:Zig cc: A drop-in replacement for GCC/Clang (2020) by bionade24 on Sunday July 18, 2021 @11:51AM (#27873919)
zig cc uses LLVM under the hood.
Re:Zig cc: A drop-in replacement for GCC/Clang (2020) by msingle on Sunday July 18, 2021 @12:30PM (#27874219)
right now - my understanding is once the self-hosted compiler is done, LLVM will be optional.
Re:Zig cc: A drop-in replacement for GCC/Clang (2020) by adamdusty on Sunday July 18, 2021 @01:13PM (#27874603)
I think LLVM will still be required for release builds.
Re:Zig cc: A drop-in replacement for GCC/Clang (2020) by csande17 on Sunday July 18, 2021 @08:14PM (#27877941)
I believe the plan is to make LLVM optional for compiling Zig code, but features that work with C code will still require Clang to be compiled in.

Who knows, though. Someone might end up implementing a C compiler on top of the self-hosted Zig compiler's backend!

Re:Zig cc: A drop-in replacement for GCC/Clang (2020) by Zababa on Monday July 19, 2021 @12:28AM (#27879263)
From what I understand, LLVM will still be used for release builds, while the self-holsted compiler will be used for quick feedback.