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

Re: Executable Size


  • Subject: Re: Executable Size
  • From: John Engelhart <email@hidden>
  • Date: Tue, 11 Dec 2007 21:00:12 -0500


On Dec 11, 2007, at 10:29 AM, KJ Walker wrote:

We have been compiling a universal applications targeted for OS 10.4 on a QuadG5 and MacBook Pro, using the same project settings and code base. However the resulting executable inside the app bundles are of differing sizes (and not just a few bytes here or there).

Has anyone else experienced this? Or is this situation the normal?

I've experienced it. As part of my release test process I do a clean build on a PPC and X86 machine. Since 10.5, the PPC machine runs and builds under 10.5, while the X86 machine continues to run 10.4 to ensure the xcode project builds correctly for older Xcode's. However, since my 10.5 target builds for ppc64 + x86_64, direct comparisons aren't really possible any more.


When both machines built under 10.4, there would be small, minor size differences between the built executables. My memory is fuzzy after all this time, but I recall that it was one section in particular that was the primary cause. While the following is nothing more than raw speculation, it seemed to me to be rooted in one of the two linkers (likely x86, considering it's newer) picking and applying the wrong architecture ABI alignment rules when cross compiling and linking (i.e., actual arch vs. target arch). I can't even recall why that reason stood out in particular, and it goes without saying that it may not even be correct. I did, however, figure that it was a 'non- trivial problem' to track down, and spending a week locating the cause of it was simply not worth the effort, especially considering that 10.5 has a re-written linker.
_______________________________________________
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
References: 
 >Executable Size (From: KJ Walker <email@hidden>)

  • Prev by Date: Re: Interface Builder and Format menu on Leopard.
  • Next by Date: Re: Xcode 3 SCM (Subversion)?
  • Previous by thread: Re: Executable Size
  • Next by thread: Where is Multiprocessing.h
  • Index(es):
    • Date
    • Thread