Mirsad Todorovac wrote:
Adriaan van Os wrote:
I suppose this means you are running Tiger. What could I do to build on old machines with Panther or Jaguar?
I haven't tried gpc-20060325 with gcc-4 on Mac OS X 10.3. I guess it is possible, because I do have a FSF gcc 4.0 C compiler running on Mac OS X 10.3.9. However, for important new features like creating 64-bit applications, you would need Mac OS X 10.4 anyway, so there is no point in moving to gcc-4 on Mac OS X 10.3, as gcc-3.4.x is more stable at this point.
I have built gcc-4.2 (experimental) on 10.3.9 and it has built OK. Perhaps this was too much of a bravery, but I was chasing those new optimizations for G5 machines. In fact, which -march and -mtune parameters do you recommend for speed-demanding builds? (Of course, while compiling the compiler itself, I am more conservative ...)
-mtune=G5, -mcpu=G5, -O3 <http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/RS_002f6000-and-PowerPC- Options.html>
However, generating 64-bit instructions (which is something different than generating a 64-bit application) is not fully reliable yet (but you can experiment with it, maybe rebuild libgpc.a). Possibly also
--fast-math http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/Optimize-Options.html
(for non-IEEE calculations). You can also have a look at http://developer.apple.com/performance/accelerateframework.html.
Since I sold my old G4, I can not run and test Mac OS X 10.2 anymore (I now have a G5 with 10.3.9 and 10.4).
I still have a G4 running in the lab with 10.2.8. I wonder if this platform is considered obsoleted now? Sadly, even 10.3.9 is not updated in development tools, and I don't think our institution will provide for 10.4.2 ...
Apple policies, sadly.
Regards,
Adriaan van Os