Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file.asm for PPC not Intel



On Feb 28, 2006, at 9:49 PM, Ken Turkowski wrote:

I have an assembly language file which I would like to include in an xcode project for a PowerPC target, not an Intel target. I will use the C code version only for Intel. How do I specify this in xcode? This is currently a command-line application.

I have "added" a "new file" to the project. When I compile, it complains that certain instructions are not understood, obviously because they were not meant for that platform. The PowerPC version seems to compile just fine.

How do I specify that the assembly code should only be assembled for the PowerPC?

There's no way to do that in Xcode today. Instead, add #if __ppc__ to the start of the file and the corresponding #endif to the end.

Hope this helps,
Eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >file.asm for PPC not Intel (From: Ken Turkowski <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.