<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:10pt;font-family:Courier New">
<p>Being fully aware that llvmc2 is work-in-progress, here are some notes nethertheless:</p>
<p></p>
<p></p>
<p>I already compiled llvm, but llvm-gcc was still compiling. Now I tried the new llvmc2:</p>
<p></p>
<p>$ llvmc2 -opt -v main.c</p>
<p>llvm-g++ -c -x c main.c -o /tmp/llvm_KeApik/main.bc -emit-llvm</p>
<p>llvmc2: Can't find program 'llvm-g++'</p>
<p></p>
<p></p>
<p>* after this, the directory /tmp/llvm_KeApik was not removed</p>
<p>* why using /tmp at all?  And if, why /tmp/llvm_* and not</p>
<p>  /tmp/llvmc2_* ?</p>
<p>* why calling "llvm-g++ -x c" and not "llvm-gcc" ?</p>
<p>* a --dry-run switch would be nice</p>
<p></p>
<p></p>
<p></p>
<p>Now, llvm-gcc was was finally compiled and installed, so I retried:</p>
<p></p>
<p>$ rm -rf /tmp/llvm_*</p>
<p></p>
<p>$ llvmc2 -opt -v main.c</p>
<p>llvm-g++ -c -x c main.c -o /tmp/llvm_084K2D/main.bc -emit-llvm</p>
<p>opt /tmp/llvm_084K2D/main.bc -o /tmp/llvm_084K2D/main.bc-LXq9ea</p>
<p>opt: error opening '/tmp/llvm_084K2D/main.bc-LXq9ea': file exists!</p>
<p>Use -f command line argument to force output</p>
<p></p>
<p></p>
<p></p>
<p>All of this is based on LLVM SVN 51761.</p>
<p></p>
</body></html>