• 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: How to compiler arm assembler .s source file with Xcode 4.2?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to compiler arm assembler .s source file with Xcode 4.2?


  • Subject: Re: How to compiler arm assembler .s source file with Xcode 4.2?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 09 Nov 2011 20:01:08 +0100

Le 9 nov. 2011 à 19:53, Wim Lewis a écrit :

>
> On 8 Nov 2011, at 11:49 PM, Don Quixote de la Mancha wrote:
>> I can see that Xcode is indeed calling CompileC on my .s source, which
>> ultimately calls clang.  Clang is the LLVM compiler's front end for
>> the "C-Like" languages: C, Objective-C and C++.
>
> A quick test on the command-line shows that the clang frontend acts like traditional cc/gcc and accepts assembly in .s or .S files. (Sometimes, .S files get preprocessed and .s files don't, but I don't think clang is making that distinction.) Clang also accepts the "-x language" option, so that "-x assembler" will force a given file to be treated as assembly regardless of its file extension. Try test-assembling your file on the command line with clang, and if that works, maybe try to get Xcode to apply the "-x assembler" option?
>

Check the project "Build Rules". By default, Xcode compile .s using the "assembler rule".
Check also the "File Type" of your file (select your file in Xcode, and in the "file inspector" in the right panel, make sure the "file type" is set to assembly and not something else).


-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to compiler arm assembler .s source file with Xcode 4.2? (From: Don Quixote de la Mancha <email@hidden>)
 >Re: How to compiler arm assembler .s source file with Xcode 4.2? (From: Don Quixote de la Mancha <email@hidden>)
 >Re: How to compiler arm assembler .s source file with Xcode 4.2? (From: Wim Lewis <email@hidden>)

  • Prev by Date: Re: How to compiler arm assembler .s source file with Xcode 4.2?
  • Next by Date: Re: Allocating too much memory kills my App rather than returning NULL
  • Previous by thread: Re: How to compiler arm assembler .s source file with Xcode 4.2?
  • Next by thread: Tip: how to fix failure to compile ivars in class extensions
  • Index(es):
    • Date
    • Thread