Hello. Is there a way to output native assembly from llvm-ld to FASM? Also when I tried to compile C code generated by llc with TCC, it complained about not having the alloca.h header. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090406/c3243719/attachment.html>
On Mon, Apr 6, 2009 at 11:51 PM, Bot Tiger <bottiger1 at gmail.com> wrote:> Is there a way to output native assembly from llvm-ld to FASM?Not directly, but you can do something similar by piping the output of llvm-link through llc.> Also when I tried to compile C code generated by llc with TCC, it complained > about not having the alloca.h header.Hmm... please file a bug report at http://llvm.org/bugs/ with more details. -Eli
Hello,> Also when I tried to compile C code generated by llc with TCC, it complained > about not having the alloca.h header.The C code generated contains quite a lot gcc extensions. I'd not expect that tcc will be able to compile produced .c file without serious tweaks. alloca.h is needed to provide declaration of alloca(), most probably you need to fix .c providing substitution for this include. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Maybe Matching Threads
- [LLVMdev] how to compile asm output for x86 with Micorsoft's ML
- [LLVMdev] llc generated machine assembly code for NASM
- [LLVMdev] warnings in inline assembly with used labels and -Wunused-label
- [LLVMdev] XPASS forAsmBlocksComplexJumpTarget.c (-fasm-blocks)
- [LLVMdev] Native Static Compilers Compatible with LLVM