diff options
| author | Jeff Cohen <jeffc@jolt-lang.org> | 2007-03-28 20:27:51 +0000 |
|---|---|---|
| committer | Jeff Cohen <jeffc@jolt-lang.org> | 2007-03-28 20:27:51 +0000 |
| commit | 277a23752004c4146b7ba3211cff0699de159234 (patch) | |
| tree | 215d223de970d8a22586eb3153ffde91ae0b6ff4 /llvm/docs | |
| parent | 4ad38abd40c990efe1e8198653ad24e34b39f5ab (diff) | |
| download | bcm5719-llvm-277a23752004c4146b7ba3211cff0699de159234.tar.gz bcm5719-llvm-277a23752004c4146b7ba3211cff0699de159234.zip | |
Update to current situation.
llvm-svn: 35440
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/GettingStartedVS.html | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/llvm/docs/GettingStartedVS.html b/llvm/docs/GettingStartedVS.html index 45e323b6ff4..7934f1ea689 100644 --- a/llvm/docs/GettingStartedVS.html +++ b/llvm/docs/GettingStartedVS.html @@ -258,7 +258,7 @@ All these paths are absolute:</p> </pre></li> <li><p>Next, compile the C file into a LLVM bytecode file:</p> - <p><tt>% llvm-gcc hello.c -emit-llvm -o hello.bc</tt></p> + <p><tt>% llvm-gcc -c hello.c -emit-llvm -o hello.bc</tt></p> <p>This will create the result file <tt>hello.bc</tt> which is the LLVM bytecode that corresponds the the compiled program and the library @@ -267,12 +267,17 @@ All these paths are absolute:</p> optimize or analyze it further with the <tt>opt</tt> tool, etc.</p> <p><b>Note: while you cannot do this step on Windows, you can do it on a - Unix system and transfer <tt>hello.bc</tt> to Windows.</b></p></li> + Unix system and transfer <tt>hello.bc</tt> to Windows. Important: + transfer as a binary file!</b></p></li> <li><p>Run the program using the just-in-time compiler:</p> <p><tt>% lli hello.bc</tt></p></li> + <p>Note: this will only work for trivial C programs. Non-trivial programs + (and any C++ program) will have dependencies on the GCC runtime that + won't be satisfied by the Microsoft runtime libraries.</p> + <li><p>Use the <tt>llvm-dis</tt> utility to take a look at the LLVM assembly code:</p> @@ -286,6 +291,11 @@ All these paths are absolute:</p> <p><tt>% cl hello.cbe.c</tt></p></li> + <p>Note: this will only work for trivial C programs. Non-trivial programs + (and any C++ program) will have dependencies on the GCC runtime that + won't be satisfied by the Microsoft runtime libraries. Currently, it + doesn't even work for trivial C programs such as the one above.</p> + <li><p>Execute the native code program:</p> <p><tt>% hello.cbe.exe</tt></p></li> |

