Monday, September 17, 2007

Four little things

Four things. First, this script from Lang Hames happens to be very useful when building LLVM. It unpacks the downloaded files and compiles everything, including the sources.

Second, enabling spec 2000 in LLVM 2.0 is different from 1.9. For the latter, just use the command in the post below. For the former, use:


./configure --enable=spec=/project/fernando --with-spec=/project/fernando --with-externals=/project/fernando


Third, to run llvm 2.0 is a little different from 1.9. In order to produce .bc files, the following can be used:


llvm-gcc -o XXXX.bc XXXX.c -c -emit-llvm -O1


Finally, when using the test suite that comes with LLVM, if you want, say, to enable the beta llc, and disable the C-back end:


make TEST=nightly report.html DISABLE_JIT=1 ENABLE_LLCBETA=1


To specify the beta-options, change Makefile.program under the platform that you are running.

0 Comments:

Post a Comment

<< Home