Mail Archives: djgpp/1998/04/03/21:36:52
In article <3524804D DOT 75E1 AT infi DOT net>, Joe Wright <conserv3 AT infi DOT net> writes:
>Subject: ! Optimization in Practice
>From: Joe Wright <conserv3 AT infi DOT net>
>Date: Fri, 03 Apr 1998 01:23:09 -0500
>
>What are the pros and cons of various optimization levels? Until now, I
>didn't bother using the -O options at all. Recently I have been playing
>with various sort algorithms, especially a quicksort of my own design.
[snip]
Yes, and I've noticed a huge increase in sound quality using -O3 -ffast-math to
compile a program that plays wav files.
There is lots of information on gcc's optimization options. There are pros and
cons for all of them. It's also important to have all the options available
for testing and debugging. Anyway, you can use the info viewer by typing this:
info gcc invok optim
...or just follow your nodes. (It always nodes.)
--Ed (Myknees)
- Raw text -