• 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: Wim Lewis <email@hidden>
  • Date: Wed, 09 Nov 2011 10:53:19 -0800

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?


_______________________________________________

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

  • Follow-Ups:
    • Re: How to compiler arm assembler .s source file with Xcode 4.2?
      • From: Jean-Daniel Dupas <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>)

  • Prev by Date: Re: How to compiler arm assembler .s source file with Xcode 4.2?
  • Next by Date: Re: How to compiler arm assembler .s source file with Xcode 4.2?
  • Previous by thread: Re: How to compiler arm assembler .s source file with Xcode 4.2?
  • Next by thread: Re: How to compiler arm assembler .s source file with Xcode 4.2?
  • Index(es):
    • Date
    • Thread