阅读背景:

如何使用clang -emit-llvm编译并保留“未使用的”C声明

来源:互联网 

Context

I'm writing a compiler for a language that requires lots of runtime functions. I'm using LLVM as my backend, so the codegen needs types for all those runtime types (functions, structs, etc) and instead of defining all of them manually using the LLVM APIs or handwriting the LLVM IR I'd like to write the headers in C and compile to the bitcode that the compiler can pull in with I'm writing a compiler for a language




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: