www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/23/06:19:50

Date: Tue, 23 Sep 1997 13:17:01 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: ludvig <ludvig AT club-internet DOT fr>
cc: djgpp AT delorie DOT com
Subject: Re: Optimisations?
In-Reply-To: <3427268E.59EB@club-internet.fr>
Message-ID: <Pine.SUN.3.91.970923131406.14928P-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019