Date: Tue, 23 Sep 1997 13:17:01 +0300 (IDT) From: Eli Zaretskii To: ludvig cc: djgpp AT delorie DOT com Subject: Re: Optimisations? In-Reply-To: <3427268E.59EB@club-internet.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 23 Sep 1997, ludvig wrote: > I'm trying(offcourse) to write as fast code as possible but I have seen > -O2 and stuff to add to tha commandline, how many are there and how do > they work? This is explained in the GCC documentation (type "info gcc invoking" from the DOS command line). Basically, -O2 should do well enough for most programs. > I have also read in a article that -O6 was for pentiom > optimisation but it was 'buggy'? Anything beyond -O3 is platform-dependent. For Intel CPUs and the current DJGPP version of GCC, everything beyond -O3 is just like -O3.