[LLVMdev] compile .bc in cpp program

Андрей Кабылин sys.int64 at gmail.com
Sat Jan 7 06:55:29 PST 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120107/8ceca1fc/attachment.html>


More information about the llvm-dev mailing list