Hello, can i compile binary file .bc in my cpp program? now i use following code:
if (system(“opt a.out.bc -std-compile-opts -disable-inlining -loop-deletion -loop-extract -loop-extract-single -loop-rotate -loop-index-split -loop-unroll -opt-phis -loop-unswitch -loop-reduce -o test.bc”) == -1) {
Error(“Don’t install LLVM!”);
exit(1);
}
if (system(“llvmc test.bc -o test.out”) != -1) {…}
if (system(“ldd test.out”) == -1) {…}
and what keys using in clang with flag -O3?
With respect Andrei.