Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Why do apps have such a large file size

Why do apps have such a large file size
Thread Tools
Fresh-Faced Recruit
Join Date: May 2002
Status: Offline
Reply With Quote
Dec 21, 2002, 12:12 PM
 
I downloaded and installed Project Builder, after building the Carbon example "CarbonToolbar" without debug symbols I checked the filesize of the generated executable.

For such a simple program it is huge [128K] one of the reasons for this is the image cut.icns which alone is 64K.

But what is in the remaining 64K?
Is it possible to reduce the filesize of CarbonToolbar?






PS. English is not my native language
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 22, 2002, 02:13 AM
 
I haven't personally looked at CarbonToolbar, but just as a guess, are there any other resources (e.g. pictures that go in the toolbar)? Those can add up pretty fast. Why don't you look in the bundle and see what's so large?

Also, did you try turning on optimization to -O3? It's not usually as large an improvement as turning off debug symbols, but it can help sometimes.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Dec 23, 2002, 02:00 AM
 
-Os will reduce size more than -O3 will; O3 may actually increase size due to increased inlining.
[vash:~] banana% killall killall
Terminated
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Dec 23, 2002, 06:16 AM
 
Originally posted by Gul Banana:
-Os will reduce size more than -O3 will; O3 may actually increase size due to increased inlining.
That's what I would've figured, but I've actually gotten some smaller files with -03. Or at least I thought I did; I suppose maybe it was just the Get Info box being creative....
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:58 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2