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

-Os for Darwin why?

Thread Next
February 17, 2003 17:15
-Os for Darwin why?
Message ID:
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 Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About