Re: Executable Size
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