Results 1 to 4 of 4
  1. #1
    Creating Universal Binaries with XCode Tools
    mac57's Avatar
    Member Since
    Apr 29, 2006
    Location
    St. Somewhere
    Posts
    4,560
    Specs:
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    Creating Universal Binaries with XCode Tools
    The XCode tools install the gcc compiler, which seems to be the C/C++ compiler that is used on the Mac. Is there a way to make this compiler and associated tool chain produce universal binaries? I know from past Linux experience that gcc has a gazillion options. Before I start digging into them, I was wondering whether anyone could point me at a simple reference that would explain how to use these tools to create universal binaries.

    In this case, I am just building ncurses-based Terminal.app applications, but I would like them to be compatible with both PPC and Intel Macs. Thanks.
    My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
    My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
    My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
    I was on the Mac-Forums honor roll for September 2007

  2. #2
    Logan
    Guest
    This one talks about Aspyr doing the move over (for like Sims 2 and Doom 3 etc)
    http://developer.apple.com/business/...ket/aspyr.html

    This one tells the steps you need to do to prepare for universal binaries
    http://developer.apple.com/macosx/ad...lbinaries.html

    on the bottom of the last link it tells you "For more information".. and has 3 links or so.

    Hope that it is useful for you.

  3. #3
    Logan
    Guest
    Scanning over it seems the major factor is that bytes and variable handling are of different sizes depending on architexture.

    Boolean is 1 byte on x86 machines, 4 bytes on PPC

    A long double is 16 bytes on both architectures, but only 80 bits are significant in long double data types on Intel-based Macintosh computers.

    there's just a ton of really simple yet potentially tedius tweaks, and from what I scanned over it appears that when your code is universal binary ready, you'll know just simply after compiling on a universal binary-compatible machine by going to get info and looking at the application's type.

    Be sure you're using the latest compiler too.

  4. #4
    Creating Universal Binaries with XCode Tools
    mac57's Avatar
    Member Since
    Apr 29, 2006
    Location
    St. Somewhere
    Posts
    4,560
    Specs:
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    Sounds like gcc 4.0 builds universal binaries by default. I will have to check into this I guess. Thanks for the pointers!
    My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
    My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
    My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
    I was on the Mac-Forums honor roll for September 2007

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. xcode tools for panther
    By jimmydog in forum OS X - Operating System
    Replies: 0
    Last Post: 07-13-2012, 06:19 PM
  2. How to get Mac to see that Xcode Tools have installed
    By jps2012 in forum OS X - Operating System
    Replies: 5
    Last Post: 04-16-2012, 10:47 PM
  3. List of Universal Binaries
    By cheesybanana in forum OS X - Apps and Games
    Replies: 5
    Last Post: 02-19-2007, 10:56 PM
  4. Mac or Universal binaries? Explanation needed!
    By Oh Henry! in forum Switcher Hangout
    Replies: 3
    Last Post: 02-06-2007, 10:15 PM
  5. Universal Binaries for Widgets?
    By rs2sensen in forum Schweb's Lounge
    Replies: 2
    Last Post: 02-01-2006, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •