Jan 29, 2014

[clang][IR] Make clang compile to llvm IR

Make clang compile to llvm IR
clang -S -emit-llvm foo.c
clang -cc1 foo.c -emit-llvm
# To compile LLVM IR further to assembly, use the llc tool:
llc foo.ll

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.