Re: How to compiler arm assembler .s source file with Xcode 4.2?
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