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.
我想用 llvmlite 做一个运行时,我想将 c 转换为 llvm。
我想知道是否以某种方式在llvmlite本身或某些python lib中,我在互联网上找不到它,所以我来问你。非常感谢您提前
如果要将 C 代码转换为 LLVM IR,则无需使用 llvmlite,它是一个 LLVM 绑定库。只需clang -c -emit-llvm从您的 Python 代码中调用 C 源代码。
clang -c -emit-llvm