www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/06/23/15:23:37.1

Date: Wed, 23 Jun 1999 15:09:56 +0200
To: pgcc AT delorie DOT com
Subject: Re: pgcc does better, reboot, then does terrible!(SOLVED)
Message-ID: <19990623150956.B9441@cerebro.laendle>
Mail-Followup-To: pgcc AT delorie DOT com
References: <19990617231401 DOT A968 AT cerebro DOT laendle> <199906190750 DOT CAA23996 AT ux12 DOT cso DOT uiuc DOT edu> <19990621230312 DOT Q25668 AT cerebro DOT laendle> <376F4526 DOT 676EC752 AT uiuc DOT edu>
Mime-Version: 1.0
In-Reply-To: <376F4526.676EC752@uiuc.edu>; from Jon on Tue, Jun 22, 1999 at 03:11:18AM -0500
X-Operating-System: Linux version 2.3.6 (root AT cerebro) (gcc driver version pgcc-2.95 19990524 (prerelease) executing gcc version 2.7.2.3)
From: Marc Lehmann <pcg AT goof DOT com>
Reply-To: pgcc AT delorie DOT com
X-Mailing-List: pgcc AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, Jun 22, 1999 at 03:11:18AM -0500, Jon wrote:
> CFLAGS = -Wall -mpentium -mcpu=pentiumpro -march=pentiumpro -O4
> -malign-loops=2 -malign-jumps=2 -malign-functions=2 -malign-double
> --fast-math -pg
> 
> WHY is pgcc so much slower?  I'm happy to give over my code in order for
> anyone(Marc?) to look at this.  pgcc is about 30% slower.  Shouldn't it
> be the other way around?? :)  That's one reason why I was also very
> confused.

Well, for one thing you are using profiling, don't do that if you want
performance ;) The other thing is that pgcc is sometimes slower, yes.
Usually its suboptimal use of the flags (you have to invest more work in
compiler flags with pgcc indeed..), and sometimes its just pgcc generating
slower code.

> I see another message about the k6 stuff actually being slower too. 
> Seems pgcc has a problem of sorts doing the opposite it intends!

Then you definitely shouldn't use it ;) pgcc does fine in most cases.
Profiling is not such a case, for example. If egc sis better with
profiling use that instead!

--  
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       pcg AT goof DOT com      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

- Raw text -


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