Glenn McGrath wrote:

A program that is CPU bound will benefit from compiler optimisations.

Define "compiler optimisations".

The teoretical "compiler optimisations" would "run" your programs faster, but... too much people spoke about optimisation without knowing what it means.

Do you think -O3 would run code faster that -O2? If not: you will think is it a bug of gcc?

Anyway:

"optimize the programmer time, not the code" [1]: a less confuse code
(thus less optimized) will help to write, maintain and debug better programs, so at the long run will run faster and better that an program written with all kind of optimisations.


ciao
        giacomo


[1] Unix philosophy or maybe only a ESR citation





Reply via email to