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: Platon Fomichev <email@hidden>
- Date: Sat, 24 May 2008 18:26:16 +0400
Dear Jon
Well sure I did this and many more. Let's see simple example:
int main()
{
char test[65000] = {0};
test[0] = 0; /* To avoid any possible optimization of unused vars */
return 0;
}
stauff:~ stauff$ gcc -O0 -s -fzero-initialized-in-bss test.c
stauff:~ stauff$ ls -l a.out
-rwxr-xr-x 1 stauff stauff 78720 May 24 18:23 a.out
Wohoo wooping 78K
If looking at disassembly it will be like this:
_C.0.1461:
.space 65000
.text
And later memcpy - I looked at FreeBSD asm output and it was simple
memset.
Best regards,
Stauff__
On May 24, 2008, at 18:15 PM, Jon Gotow wrote:
zero-initialized-in-bss
_______________________________________________
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