Skip to content

Commit

Permalink
Update to current situation.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35440 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Jeff Cohen committed Mar 28, 2007
1 parent 0317906 commit 3c8dfcd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/GettingStartedVS.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
</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
Expand All @@ -267,12 +267,17 @@
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>

Expand All @@ -286,6 +291,11 @@

<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>
Expand Down

0 comments on commit 3c8dfcd

Please sign in to comment.