• 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: G4 and G5 executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: G4 and G5 executable


  • Subject: Re: G4 and G5 executable
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 4 Apr 2005 08:44:32 -0700


On Apr 4, 2005, at 7:21 AM, Olivier Tristan wrote:

Phil wrote:

On Apr 4, 2005 10:50 PM, Olivier Tristan <email@hidden> wrote:

Is there a way to have two executables in a bundle, one optimized for
G4, one optimized for G5 in a particular manner
that the finder or an app with plugin launch the right one instead of
using realtime CPU detection.
(some plist option or whatever works.. )


This has been built into the Installer for many years now, but under
Mac OS X, is not the simplest thing to do.
Take a look at lipo(1) and the following docs -
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/ ToolsOvr_Book/DevProcess/chapter_4_section_7.html>
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/ ToolsOvr_Book/ToolDescripts/chapter_6_section_5.html>


Thanks for your answer.
I didn't tought implementing it at the installer level.

Also note what is available in Tiger..

<http://developer.apple.com/macosx/tiger/64bit.html>

"Fat Binaries - The updated Mach-O format in Tiger supports the concept of Fat Binaries. These allow both 32-bit and 64-bit executables to be shipped as part of the same file. This means that developers and network system administrators can distribute a single version of an application to all users regardless of whether their system contains a G3, G4, or G5 processor. When the application is executed, the system automatically selects the appropriate code for the system without user intervention. Using Fat Binaries greatly simplifies distribution, installation, and administration of applications."

Also depending on what type application, etc. you can have load in bundles specific to CPU, etc. your code is running on.

For example...
<http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingCode/ Tasks/LoadingBundles.html>


Other ways exist as well depending on how much work you want to do...

-Shawn

_______________________________________________
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:
    • Re: G4 and G5 executable
      • From: Dave Rehring <email@hidden>
References: 
 >G4 and G5 executable (From: Olivier Tristan <email@hidden>)
 >Re: G4 and G5 executable (From: Phil <email@hidden>)
 >Re: G4 and G5 executable (From: Olivier Tristan <email@hidden>)

  • Prev by Date: Re: G4 and G5 executable
  • Next by Date: build rule script problem
  • Previous by thread: Re: G4 and G5 executable
  • Next by thread: Re: G4 and G5 executable
  • Index(es):
    • Date
    • Thread