Re: Porting windows app to OS X and it's extremely huge as a result
Re: Porting windows app to OS X and it's extremely huge as a result
- Subject: Re: Porting windows app to OS X and it's extremely huge as a result
- From: Jon Gotow <email@hidden>
- Date: Sat, 24 May 2008 10:15:59 -0400
At 2:50 PM +0400 5/24/08, Platon Fomichev wrote:
So there is question : Is it possible to have zero initialized data
in BSS on OS X. This looks to be a handy issue because there are
many times in my practice when I use small arrays of data with zero
initialization and thinking that they are all now add to the
cumulative size is rather troubling.
If Apple's GCC can be built from sources I even can try to integrate
this option in there just because I think it's useful.
Of course the solution here is to either alloc the blobs or strip
{0} and do a bzero f.ex. later.
GCC on OS X reportedly supports the zero-initialized-in-bss option,
at least according to Apple's man pages:
<http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/gcc.1.html>
It should "just work" if you set the flag in your OTHER_C_FLAGS build
setting in Xcode (providing that the data initialization really is
the source of your code-bloat, which certainly sounds reasonable).
- Jon
--
________________________________________________________________________
Jon Gotow email@hidden
St. Clair Software http://www.stclairsoft.com/
Fax (540)552-5898 ftp://ftp.stclairsoft.com/
_______________________________________________
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