Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试开发基于 LLVM 基础架构的编译器。我的语言具有类似 C 的语法,因此我想利用现有的 C 编译器。现在我专注于前端(词法分析,解析),但我对哪个前端是最好的方法感到困惑。Clang、llvm-gcc 还是传统的 flex/bison 工具?
我对最简单的解决方案特别感兴趣,它允许我为编译器的后期阶段生成 LLVM IR 代码。
如果您想手动编写所有代码,那么我向您推荐 LLVM 教程 Kaleidoscope: