develooper Front page | perl.perl5.porters | Postings from February 2003

Re: -Os for Darwin why?

Thread Previous | Thread Next
Wilfredo Sánchez
February 17, 2003 18:29
Re: -Os for Darwin why?
Message ID:
   Why do you think -Os is broken?

   Optimizing for size also mean less resident memory usage on the part 
of Perl.  Apple asserts that this is a more important optimization than 
saving on CPU cycles.  Given that memory speed has not increased at 
pace with CPU speed over time (on any platform), this is probably a 
reasonable assertion.

   If you disagree, that's why you can override things.

   I don't follow where you conclude that the compiler must be broken 
due to this decision.


On Monday, February 17, 2003, at 05:15 PM, wrote:

> I'm just now running bleadperl's Configure on OS X 10.2.4 (ie. Darwin 
> 6.4)
> and got the rather surprising:
> What optimizer/debugger flag should be used? [-Os]
> Looking in the gcc man page that's optimize for size.  Looking in
> hints/ I see its done deliberately for Darwin 6.X and up which
> I guess maps to 10.2.x.  Why?  Did Apple ship a gcc with 10.2 that has
> a broken optimizer?
> At the moment I have this:
> $ gcc -v
> Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
> Thread model: posix
> Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 
> 20020420 (prerelease)
> which I believe is from the December 2002 Apple Developer's Kit.
> I'm going to try it with -O3 and see what happens.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About