Hi everyone,
Llvm-gcc compiles the programs into bytecodes with some optimizations. How can I get unoptimized bytecodes?
Thanks.
Regards,
-Ying
Hi everyone,
Llvm-gcc compiles the programs into bytecodes with some optimizations. How can I get unoptimized bytecodes?
Thanks.
Regards,
-Ying
Using
llvm-gcc -emit-llvm -O0 -S blah.c
will give you blah.s that is unoptimized. I guess passing that to llvm-as would get you an unoptimized .bc.
llvm-as -debug-pass=Arguments blah.ll says it is only doing
Pass Arguments: -domtree -etforest -verify
scott
It’s worked.
Thanks for your replies, Lee and Scott.
-Ying