• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: LLVM-clang fails to compile Assembly file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

On Dec 3, 2012, at 9:21 PM, Arun <email@hidden> wrote:
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

References: 
 >LLVM-clang fails to compile Assembly file (From: Arun <email@hidden>)

  • Prev by Date: Re: LLVM-clang fails to compile Assembly file
  • Next by Date: storing git version in the plist
  • Previous by thread: Re: LLVM-clang fails to compile Assembly file
  • Next by thread: storing git version in the plist
  • Index(es):
    • Date
    • Thread