Author Topic: Panther: Optimizations?  (Read 1330 times)

Offline Mrious_be

  • TS Addict
  • *****
  • Posts: 3156
    • View Profile
    • http://www.marceldaems.com
Panther: Optimizations?
« on: October 23, 2003, 01:30:12 PM »
QUOTE
The G5 running Panther is a beautiful thing. With full optimizations turned on, I can recompile any of our games in less than 15 seconds! With optimizations off, I can recompile in about 8 seconds.

Hi all smile.gif

This is a quote from insidemacgames in chat with Brian Greenstone from Pangea Software, developper from Nanosaur (2).
But what is he talking about?
And more... i would say optimization would speed up the system, not slow it down? ohmy.gif
As he worked faster without optimization huh.gif
And what can you optimize anyway? biggrin.gif

smile.gif
[img]http://dwdf.daisypath.com/a4ipp1.png\" border=\"0\" class=\"linked-sig-image\" /]

Offline giantmike

  • TS Addict
  • *****
  • Posts: 1117
    • View Profile
    • http://www.giantmike.com
Panther: Optimizations?
« Reply #1 on: October 23, 2003, 03:00:32 PM »
I believe what he means is that when he uses tools to recompile the games using the new version of GCC (or XCode, or whatever he is using), it takes 15 or 8 seconds depending on if optimizations are on or off. If optimizations are on, the compiler has to more closely exmaine the code, and try to order it in such a way as to run the fastest on a system which it is being compiled for. With optimizations off, the compiler is in dumb mode, where it just compiles the code for a base instruction set architecture.

Having optimizations turned on should make the compiler take longer, as it is in a more complex mode. Having such a fast compile for their games is simply incredible.

You can optimize dozzens of things for different hardware setups. Some computer have more registers, which are the fastest memory. Optimizing to use more registers means less RAM access, which will speed up the program. Other things like filling Branch and Load Delay slots with instructions that can go there (instead of nop, no operation, instructions which just waste processor cycles), can significantly speed up a program. Moreover, activing things like instruction prefetch, organizing the code, and more can help speed up a program.

These things can be done by the compiler with RISC computers, making the life of a programmer much easier, but the life of a compiler (and those who write them), much more difficult.

I'm sure this is more than you wanted to know, but at least you know it now smile.gif

Offline Mrious_be

  • TS Addict
  • *****
  • Posts: 3156
    • View Profile
    • http://www.marceldaems.com
Panther: Optimizations?
« Reply #2 on: October 24, 2003, 10:17:26 AM »
Aaaah Mike...
So he was actually talking about an "optimization" function on his compiler software, and not on Panther smile.gif
That sounds logical, hehehe biggrin.gif

Thanks smile.gif
[img]http://dwdf.daisypath.com/a4ipp1.png\" border=\"0\" class=\"linked-sig-image\" /]