• 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: Porting windows app to OS X and it's extremely huge as a result
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Porting windows app to OS X and it's extremely huge as a result
      • From: Jason Stephenson <email@hidden>
References: 
 >Porting windows app to OS X and it's extremely huge as a result (From: Platon Fomichev <email@hidden>)
 >Re: Porting windows app to OS X and it's extremely huge as a result (From: Jon Gotow <email@hidden>)

  • Prev by Date: Re: Porting windows app to OS X and it's extremely huge as a result
  • Next by Date: Re: Porting windows app to OS X and it's extremely huge as a result
  • Previous by thread: Re: Porting windows app to OS X and it's extremely huge as a result
  • Next by thread: Re: Porting windows app to OS X and it's extremely huge as a result
  • Index(es):
    • Date
    • Thread