Front page | perl.perl5.porters |
Postings from February 2003
Re: -Os for Darwin why?
Thread Previous
|
Thread Next
From:
Wilfredo Sánchez
Date:
February 17, 2003 18:29
Subject:
Re: -Os for Darwin why?
Message ID:
D1759309-42E8-11D7-B275-0003936FA9FA@mit.edu
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.
-wsv
On Monday, February 17, 2003, at 05:15 PM, schwern@pobox.com 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/darwin.sh 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