5 ms·
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 LLV
by lou1306 5y ago
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.
- bionade24 5y agozig cc uses LLVM under the hood.
- msingle 5y agoright now - my understanding is once the self-hosted compiler is done, LLVM will be optional.
- adamdusty 5y agoI think LLVM will still be required for release builds.
- csande17 5y agoI 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!
- Zababa 5y agoFrom what I understand, LLVM will still be used for release builds, while the self-holsted compiler will be used for quick feedback.