$ apt-cache search clang llvm-3.0 - Low-Level Virtual Machine (LLVM) clang - Low-Level Virtual Machine (LLVM), C language family frontend libclang-common-dev - clang library - Common development package libclang-dev - clang library - Development package libclang1 - clang library libsclang1 - SuperCollider language interpreter library llvm-2.8 - Low-Level Virtual Machine (LLVM) llvm-2.9 - Low-Level Virtual Machine (LLVM)
$ apt-get install clang
例 26.1. clang helloworld
$ cat hello.c #include <stdio.h> int main(int argc, char **argv) { printf("hello world\n"); }
$ vim hello.c $ clang hello.c -o hello $ ./hello hello world