If you would like to check out and build Clang, the current procedure is as follows:
1. Checkout and build LLVM from SVN head:
* svn co
http://llvm.org/svn/llvm-project/llvm/trunk llvm
* cd llvm
* ./configure; make
2. Checkout Clang:
* From within the llvm directory (where you built llvm):
* cd tools
* svn co
http://llvm.org/svn/llvm-project/cfe/trunk clang
3. If you intend to work on Clang C++ support, you may need to tell it how to find your C++ standard library headers. If Clang cannot find your system libstdc++ headers, please follow these instructions:
* 'touch empty.cpp; gcc -v empty.cpp -fsyntax-only' to get the path.
* Look for the comment "FIXME: temporary hack: hard-coded paths" in clang/lib/Frontend/InitHeaderSearch.cpp and change the lines below to include that path.
4. Build Clang:
* cd clang (assuming that you are in llvm/tools)
* make (this will give you a debug build)
5. Try it out (assuming you add llvm/Debug/bin to your path):
* clang-cc --help
* clang-cc file.c -fsyntax-only (check for correctness)
* clang-cc file.c -ast-dump (internal debug dump of ast)
* clang-cc file.c -ast-view (set up graphviz and rebuild llvm first)
* clang-cc file.c -emit-llvm (print out unoptimized llvm code)
* clang-cc file.c -emit-llvm -o - | llvm-as | opt -std-compile-opts | llvm-dis (print out optimized llvm code)
* clang-cc file.c -emit-llvm -o - | llvm-as | opt -std-compile-opts | llc > file.s (output native machine code)
Note: Here clang-cc is the "low-level" frontend executable that is similar in purpose to cc1. Clang also has a high-level compiler driver that acts as a drop-in replacement for gcc.
Note that the C front-end uses LLVM, but does not depend on llvm-gcc. If you encounter problems with building Clang, make sure you have the latest SVN version of LLVM. LLVM contains support libraries for Clang that will be updated as well as development on Clang progresses.
Amazing they haven't got a download section yet.Well, i'll check them in 2-3 years.
_______________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Experience comprises illusions lost, rather than wisdom gained.