[LLVMdev] code generation for ARM
James Molloy
james.molloy at arm.com
Wed Jun 15 00:12:56 PDT 2011
Hi,
If you want your program to work, you will have to link against a library
built for ARM. Linking against library headers built for x86 will not work,
as you are finding out.
You should also give llvm-gcc the -march=arm option as well as llc, because
bitcode is not target independent.
Cheers,
James
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of D S Khudia
Sent: 14 June 2011 22:33
To: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] code generation for ARM
Thank you all for the inline assembly pointer.
I have some macros (FD_ZERO, FD_SET) in benchmark code which comes from C
library select (synchronous I/O multiplexing) and it does contain inline
assembly. Is there a way the code containing such macros can work for ARM if
compiled through llvm?
Thanks
Daya
On Tue, Jun 14, 2011 at 3:02 PM, Duncan Sands <baldrick at free.fr> wrote:
Hi Daya,
> And there is not inline assembly in my C code.
there may well be in header files you include.
> > Error => LLVM ERROR: Couldn't allocate output reg for constraint
'{cx}'!
This error message is complaining about inline assembler.
Ciao, Duncan.
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110615/0a128c5b/attachment.html>
More information about the llvm-dev
mailing list