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

Re: bloated binaries?


  • Subject: Re: bloated binaries?
  • From: "Justin C. Walker" <email@hidden>
  • Date: Tue, 16 Aug 2005 13:45:19 -0700


On Aug 16, 2005, at 13:34 , james tittle wrote:

On Aug 16, 2005, at 4:00 PM, Justin C. Walker wrote:
On Aug 16, 2005, at 12:49 , james tittle wrote:
[snip]
Try "size -arch all blah" (or whatever your executable is called) on both versions.


...ok, here's the results:

xcode 1.5/gcc3.3, smaller app:
__TEXT  __DATA  __OBJC  others  dec     hex
2600960 6713344 4096    692224  10010624        98c000
tigital$ ls -la
total 6600
drwxr-xr-x   3 tigital  tigital      102 May 14  2004 .
drwxr-xr-x   7 tigital  tigital      238 May 14  2004 ..
-rwxr-xr-x   1 tigital  tigital  3377476 Jan  1  1970 Freespace2demo

xcode2.2/gcc3.3, "bloated" app:
__TEXT  __DATA  __OBJC  others  dec     hex
2084864 6320128 4096    16856   8425944 8091d8
tigital$ ls -la
total 13992
drwxr-xr-x   3 tigital  tigital      102 Aug 14 22:06 .
drwxr-xr-x   6 tigital  tigital      204 Aug 14 21:48 ..
-rwxr-xr-x   1 tigital  tigital  7160280 Aug 14 22:06 Freespace2demo

...this seems strange, in that the mach-o stuff seems kinda the same except for "others", but outside of "man size", I don't know what this may or may not be telling me...

Well, on the face of it, the "smaller" version seems more bloated than the "larger" version, except in total file size. You did use the "-arch" flag, right? Next step, I think, is to get an idea of what else is in the files.


Try 'otool', using, e.g., the "-f" switch; check the man page for other interesting arguments.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
Men are from Earth.
Women are from Earth.
   Deal with it.
--------


_______________________________________________ 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: 
 >bloated binaries? (From: james tittle <email@hidden>)
 >Re: bloated binaries? (From: Sailesh Agrawal <email@hidden>)
 >Re: bloated binaries? (From: james tittle <email@hidden>)
 >Re: bloated binaries? (From: "Justin C. Walker" <email@hidden>)
 >Re: bloated binaries? (From: james tittle <email@hidden>)

  • Prev by Date: Re: bloated binaries?
  • Next by Date: Re: server side application
  • Previous by thread: Re: bloated binaries?
  • Next by thread: Apple cctools ld Failure
  • Index(es):
    • Date
    • Thread