From 35f29c5c4c19059efaac2a4cec86d2cf2cc453ba Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 17 Jun 2008 13:48:36 +0000 Subject: Convert

to

. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52400 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/get_started.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'www/get_started.html') diff --git a/www/get_started.html b/www/get_started.html index 23ad90f51b..5b7eb4dee3 100644 --- a/www/get_started.html +++ b/www/get_started.html @@ -44,7 +44,7 @@ of C support are:

well, but we'd love help from other interested contributors. We expect C to be in good shape by mid to late 2008.

-

Building clang / working with the code

+

Building clang / working with the code

If you would like to check out and build the project, the current scheme is:

@@ -121,7 +121,7 @@ is:

svn update on all subdirectories related to subversion. -

Examples of using clang

+

Examples of using clang

The clang driver takes a lot of GCC compatible options, which you can see with 'clang --help'. Here are a few examples:

@@ -137,7 +137,7 @@ V foo(V a, V b) { return a+b*a; } -

Preprocessing:

+

Preprocessing:

 $ clang ~/t.c -E
@@ -149,14 +149,14 @@ V foo(V a, V b) { return a+b*a; }
 
-

Type checking:

+

Type checking:

 $ clang -fsyntax-only ~/t.c
 
-

GCC options:

+

GCC options:

 $ clang -fsyntax-only ~/t.c -pedantic
@@ -167,7 +167,7 @@ typedef float V __attribute__((vector_size(16)));
 
-

Pretty printing from the AST:

+

Pretty printing from the AST:

 $ clang ~/t.c -ast-print
@@ -178,7 +178,7 @@ V foo(V a, V b) {
 
-

Code generation with LLVM:

+

Code generation with LLVM:

 $ clang ~/t.c -emit-llvm -o - | llvm-as | opt -std-compile-opts | llvm-dis
@@ -204,14 +204,14 @@ _foo:
 
 

GCC "Emulation" Driver

-While the clang executable is a compiler driver that can perform code -generation, program analysis, and other actions, it is not designed to be a +

While the clang executable is a compiler driver that can perform +code generation, program analysis, and other actions, it is not designed to be a drop-in replacement for GCC's cc. There is interest in developing such a driver for clang, but in the interim the clang source tree includes a Python script ccc in the utils subdirectory that provides some of this functionality (the script is intended to be used where GCC's cc could be used). It is currently a work in progress, and eventually will likely -be replaced by a more complete driver. +be replaced by a more complete driver.

Example use:

-- cgit v1.2.3