[cfe-dev] llvm-assembly file

Devang Patel dpatel at apple.com
Fri Jun 17 09:35:50 PDT 2011


On Jun 16, 2011, at 10:38 PM, Reddy G, Vinitha wrote:

> What is the .s file in context of llvm? Is it the assembly file with respect to llvm? Is it different from the normal .asm file?
> And how to we convert a normal .asm assembly file to .o using llvm? Llvm-as is for the llvm .s file right?
> When I try to compile a simple assembly file using llvm-as it says expected top level entity..and llvm-mc throws syntax errors..

llvm-as converts LLVM IR in text into LLVM IR in bitcode. You can use platform specific assembler to convert assembly file into an object file. llvm-mc can be used to emit object files.
-
Devang




More information about the cfe-dev mailing list