[LLVMdev] Getting started (Windows)
Eli Friedman
eli.friedman at gmail.com
Sat May 30 03:08:47 PDT 2009
On Sat, May 30, 2009 at 2:38 AM, Adrian Boeing<aboeing at gmail.com> wrote:
> With llvm, I've done:
> hello.c to hello.ll via the online LLVM compiler tool
> (http://llvm.org/demo/index.cgi)
> then
> llvm-as hello.ll
> to create the hello.bc, then
> llc hello.bc
> to create the hello.s
Try changing the third line of the output from the demo to look like
the following:
target triple = "i586-mingw32msvc"
The online demo output explicitly requests an x86 Linux target, so llc
honors that rather than generating code for your native platform. If
you change the target triple to a Windows target triple, gcc should do
the right thing with the output.
-Eli
More information about the llvm-dev
mailing list