delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/03/09:24:36

From: mdruiter AT cs DOT vu DOT nl (Ruiter de M)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [??] coaxing gcc into generating better code
Date: 3 Feb 1997 13:16:29 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 24
Message-ID: <5d4ofd$hv8@star.cs.vu.nl>
References: <5cicci$ljs AT news DOT service DOT uci DOT edu>
NNTP-Posting-Host: sloep28.cs.vu.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John Beppu (beppu AT rigel DOT oac DOT uci DOT edu) wrote:

[code + assembly output snipped]

:   /* How horrible the second assembly output is.  It's no good for
:      486 and terrible for P5.  (I don't know how P6 will feel about
:      it.)  The command line parameters I invoked gcc with were:
: 
:      -S			// assembly output
:      -O2		// optimizations
:      -fforce-addr	// put ptrs into registers?
:      -fomit-frame-pointer
: 			// uses esp for stackframe and frees ebp
: 
:   */ 

What you could try is to use the -m486 parameter, which will optimize
for 486's instead of 386's. There is NO way to get Pentium-optimizations
with your standard GCC.
-- 
Groeten, Michel.        http://www.cs.vu.nl/~mdruiter
 \----/==\----/
  \  /    \  /          "Life is cool.", Beavis.
   \/      \/

- Raw text -


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