• 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: universal binaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: universal binaries


  • Subject: Re: universal binaries
  • From: Syd Polk <email@hidden>
  • Date: Mon, 10 Jul 2006 22:06:09 -0500


On Jul 10, 2006, at 9:57 PM, David A Rowland wrote:

I have an XCode project which uses some assembler code for mathematical efficiency. I wonder how to build a universal binary. If I simply use the "Architectures" target setting and choose both, the compiler blows up on one branch of the compile because it sees incompatible assembler code.

This may be a very basic question, but do you have assembler code for both architectures? If not, do you have C code for the other architecture? You can't assemble ppc code for intel, nor can you do the reverse.


Is this assembler code inline, or it is separate assembler files? If it is the former, you can wrap it with architecture macros. If it is the latter, then you are probably going to have to play games with targets and libraries.


I can imagine some ways to handle this:

1) is there a way to make one universal target from two independent targets, or

2) is there a compiler variable that I could test to include the relevant assembler code and exclude the irrelevant, or

3) is there some other way to do this?

I see nothing in the XCode documents that deals with this, though I may have overlooked it.

thanks,

David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden

Syd Polk email@hidden "Let the music be your light" - Dave Edwards, KUHF-FM, 1982


_______________________________________________ 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
  • Follow-Ups:
    • Universal Binary KEXT building problem
      • From: email@hidden
    • Re: universal binaries
      • From: Eric Albert <email@hidden>
References: 
 >universal binaries (From: David A Rowland <email@hidden>)

  • Prev by Date: universal binaries
  • Next by Date: Re: universal binaries
  • Previous by thread: universal binaries
  • Next by thread: Re: universal binaries
  • Index(es):
    • Date
    • Thread