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

-Os for Darwin why?

Thread Next
From:
schwern
Date:
February 17, 2003 17:15
Subject:
-Os for Darwin why?
Message ID:
20030217171513.A16414@ttul.org
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 Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About