Re: LLVM-clang fails to compile Assembly file
Re: LLVM-clang fails to compile Assembly file
- Subject: Re: LLVM-clang fails to compile Assembly file
- From: Chris Lattner <email@hidden>
- Date: Tue, 04 Dec 2012 07:27:21 -0800
Hi All
I am trying to build a project which comprised a ".c" and ".S" file. If i use Xcode 3.x which has gcc, the project complies perfectly. If i migrate the project to use LLVM compiler using Xcode 4.4, it fails to compile the instruction "movdqu $2*16(íx), %xmm7". The below is the code snippet that i am using.
// // Hello.s // Assembly //
.globl _test_function
.macro test_macro zero, one, two
movdqu $2*16(íx), %xmm7
This is not valid assembly. I suggest you change it to $32 in your code.
If that is not possible, and you want a short term hack now, I'd recommend using the "-no-integrated-as" option to disable the integrated assembler. This will break again later if/when /usr/bin/as moves to the same technology, but it should at least allow you to make progress in the meantime.
-Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden