> Does it still pick -O instead of -O2 if you specify no such flag  
> yourself?
> If yes, what's the output of
>       gcc --version

Yes, it does (as a G4 user, I specify -fast instead, which is a  
shortcut for a package of optimizations).
gcc and cc are synonymous on my machine.  The output is:
> >gcc --version
> powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.  
> build 5367)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.   
> There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
> PURPOSE.

> Can you give us a command line that you use for an example on how to
> build on Darwin, maybe with some Darwin version info?  It might be
> nice to document this somewhere on the gtk-gnutella websight and/or
> the README.

That may become a bit problematic, given which Mac variant is being  
used.  My own optimizations are specific to the G4.  However, these  
optimizations encourage the compiler to take advantage of the  
"Altivec" technology on the chip - basically an on-board floating  
point math co-processor - and I would really recommend them for the  
G4.  Variants would also need to be available for the G3, the G5, and  
the good old x86 set.

Here's my optimizations.  Note that I don't actually know for sure if  
any of the code in the 'Accelerate' framework libraries is being  
used.  But what the hey, I figured.
> ./build.sh --cflags="-mcpu=7450 -fast -mpim-altivec -maltivec - 
> mabi=altivec -ggdb3 -Wno-shadow" --ldflags="-framework Accelerate"  
> --make=/usr/bin/make --disable-nls --disable-socker

- Matt








-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to