From 04367bfc20c021c4105abf0c33b86d55f782d1e8 Mon Sep 17 00:00:00 2001
From: Gabor Greif To emphasize, there is no C/C++ front end currently available.
llvm-gcc is based on GCC, which cannot be bootstrapped using VC++.
Eventually there should be a llvm-gcc based on Cygwin or MinGW that
- is usable. There is also the option of generating bytecode files on Unix and
+ is usable. There is also the option of generating bitcode files on Unix and
copying them over to Windows. But be aware the odds of linking C++ code
compiled with llvm-gcc with code compiled with VC++ is essentially
zero.
Next, compile the C file into a LLVM bytecode file:
+Next, compile the C file into a LLVM bitcode file:
% llvm-gcc -c hello.c -emit-llvm -o hello.bc
This will create the result file hello.bc which is the LLVM - bytecode that corresponds the the compiled program and the library + bitcode that corresponds the the compiled program and the library facilities that it required. You can execute this file directly using lli tool, compile it to native assembly with the llc, optimize or analyze it further with the opt tool, etc.
-- cgit v1.1