From: myknees AT aol DOT com (Myknees) Newsgroups: comp.os.msdos.djgpp Subject: Re: ! Optimization in Practice Date: 3 Apr 1998 23:46:59 GMT Lines: 21 Message-ID: <1998040323465901.SAA15575@ladder01.news.aol.com> NNTP-Posting-Host: ladder01.news.aol.com References: <3524804D DOT 75E1 AT infi DOT net> Organization: AOL http://www.aol.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <3524804D DOT 75E1 AT infi DOT net>, Joe Wright writes: >Subject: ! Optimization in Practice >From: Joe Wright >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)