From: Jeff Cohen Date: Sun, 30 Oct 2005 21:00:24 +0000 (+0000) Subject: Update Getting Started for Visual Studio page. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a088734a240e424f6d55f6e4e64e47ecae0286ba;p=oota-llvm.git Update Getting Started for Visual Studio page. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24117 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/GettingStartedVS.html b/docs/GettingStartedVS.html index 87be6cfcc83..ad252d2d5c6 100644 --- a/docs/GettingStartedVS.html +++ b/docs/GettingStartedVS.html @@ -170,15 +170,10 @@ progress has been made since the 1.4 release.

beta, there are no guarantees and there is no support for it at this time. It has been reported that VC++ Express also works.

-

You will also need several open source packages: bison, flex, and sed. - These must be installed in llvm/win32/tools. These can be found at - http://gnuwin32.sourceforge.net - or - http://unxutils.sourceforge.net. - Bison prefers that m4 be in the path. You must add it to the Visual Studio - configuration under the menu Options -> Projects -> VC++ Directories. - Alternatively, you can set the environment variable M4 to point to - m4 executable.

+

If you plan to modify any .y or .l files, you will need to have bison + and/or flex installed where Visual Studio can find them. Otherwise, you do + not need them and the pre-generated files that come with the source tree + will be used.

@@ -279,28 +274,26 @@ All these paths are absolute:

Note: while you cannot do this step on Windows, you can do it on a Unix system and transfer hello.bc to Windows.

-
  • Run the program. To make sure the program ran, execute the - following command:

    +
  • Run the program using the just-in-time compiler:

    % lli hello.bc

  • Use the llvm-dis utility to take a look at the LLVM assembly code:

    -

    % llvm-dis < hello.bc | less

  • +

    % llvm-dis < hello.bc | more

    -

  • Compile the program to native assembly using the LLC code - generator:

    +
  • Compile the program to C using the LLC code generator:

    -

    % llc hello.bc -o hello.s

    +

    % llc -march=c hello.bc

  • -
  • Assemble the native assembly language file into a program:

    +
  • Compile to binary using Microsoft C:

    -

    Not currently possible, but eventually will use NASMW.

    +

    % cl hello.cbe.c

  • Execute the native code program:

    -

    % ./hello.native

  • +

    % hello.cbe.exe