Re: Cocoa and dead-code stripping
Re: Cocoa and dead-code stripping
- Subject: Re: Cocoa and dead-code stripping
- From: Peter Hudson <email@hidden>
- Date: Mon, 02 Jul 2007 13:28:47 +0100
Dear Half,
The point I was trying to make was that if you use Cocoa throughout your program you simply don't need to worry about dead code stripping in you own application code as there is *little* of it.
I have recently finished porting a C++ app to Cocoa and, for more or less the same functionality, I have seen a huge decrease in the size of my executable ( 7Mb in C++ to about 0.5 Mb in Cocoa - and thats a universal build ). The Cocoa app is entirely Cocoa - hence the huge saving in exe. size. Hence my comment about leveraging Cocoa.
With small exe size like that, I'll suffer a bit of dead code !
Peter
On Monday, July 02, 2007, at 12:09PM, Half Activist <email@hidden> wrote:
>Dear Peter,
>
>Forgive me if i'm wrong, but this has nothing to do with dead code
>stripping, but linking to shared libraries instead, reuse of existing
>code.
>
>Furthermore, the code you execute, be it in a shared library or in
>your binary object exists, so the actual code isn't smaller (for the
>processor)
>but is even bigger since linking has to be done each time you launch
>your application. (ok, the difference isn't that big)
>
>So the saving you do only applies to distribution of your compiled +
>linked binary file.
>
>Regards.
>
>On Jul 2, 2007, at 12:15 PM, Peter Hudson wrote:
>
>> Hi there
>>
>> The more use you make of Cocoa objects, the smaller your code remains.
>> All the Cocoa frameworks ( thus, supporting code ) are there
>> already on the machine !
>>
>> Leverage !
>>
>> Peter
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>> 40gmail.com
>>
>> This email sent to email@hidden
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden