[LLVMdev] Using llvm-gcc with a simple program and the '-c' option
Chris Lattner
sabre at nondot.org
Wed Mar 1 11:24:11 PST 2006
On Mon, 27 Feb 2006, Wink Saville wrote:
>> If you want a native app, try this:
>>
>> llvm-gcc -o t1.app t1.bc t1.a -Wl,-native
>>
>> ... which will invoke llc and the assembler for you. This will also fix
>> the "script + bc" issue.
> Yes this works and doesn't generate the script but since I'm using an amd64
> with linux the result doesn't run because I need the -m32.
I would suggest hacking llvm::GenerateNative in
tools/gccld/GenerateCode.cpp to pass it.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list