[LLVMdev] Preferring to use GCC instead of LLVM

Bill Wendling isanbard at gmail.com
Sun May 11 01:05:44 PDT 2008


On May 10, 2008, at 7:55 PM, kr512 wrote:

>> You are seriously ignorant of what LLVM is all about.
>> Please go inform yourself.
>
> Alright, I read some more on llvm.org and it confirmed what
> I was saying:
> http://www.llvm.org/docs/GettingStarted.html#tutorial
>
> See at the end where it says:
> -----------
> 6.Compile the program to native assembly using the LLC code
> generator:
>  % llc hello.bc -o hello.s
> 7.Assemble the native assembly language file into a program:
>  % gcc hello.s -o hello.native
> 8.Execute the native code program:
>  % ./hello.native
> -----------
>
> See how gcc is invoked to generate the final executable
> file.  This means LLVM is an incomplete backend,
> unfortunately.
>
That's only a convenience. GCC generates assembly code too and calls  
the assembler and linker as part of it's execution. You are perfectly  
able to call the assembler & linker yourself.

> Bill Wendling wrote:
>> I don't know about your computer, by mine comes with an
>> assembler.
>
> MS Windows does not come with an assembler, AFAIK.
>
You should really learn how to use Google. Got this as the top hit for  
"Microsoft Assembler":

http://www.microsoft.com/downloads/details.aspx?FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64&displaylang=en

>
-bw



More information about the llvm-dev mailing list