www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/04/28/14:14:58

Date: Wed, 28 Apr 1999 20:15:37 +0200
From: Ronald de Man <deman AT win DOT tue DOT nl>
To: pgcc AT delorie DOT com
Subject: Re: pgcc... Do I really got it ?
Message-ID: <19990428201537.A27287@win.tue.nl>
References: <37273E2A DOT A17219BF AT duboi DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.4i
In-Reply-To: <37273E2A.A17219BF@duboi.com>; from Olivier Tubach on Wed, Apr 28, 1999 at 06:58:18PM +0200
X-Operating-System: Linux localhost 2.2.6
Reply-To: pgcc AT delorie DOT com
X-Mailing-List: pgcc AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, Apr 28, 1999 at 06:58:18PM +0200, Olivier Tubach wrote:
> 
> the O0 runs in 1.22 secs, the -O3 and pgcc runs in 54 secs. No
> difference !
> When I file the executables, I get:
> O0:   ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
> linked (uses shared libs), stripped
> O3:   ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
> linked (uses shared libs), stripped
> pgcc: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
> linked (uses shared libs), stripped
> 
> So.... do I really got pentium optimized code ? How do I recognize
> pentium-specific code (with file?)

There is no easy way that I'm aware of.

> I didn't get a 'pgcc' executable. Should I use cc ? gcc ? (I used cc) ?
> Should I make a link for pgcc ?

If cc is linked to /usr/local/bin/gcc, then using cc is fine. If you use
gcc you will probably get your old /usr/bin/gcc.

> Can pgcc (and vanilla gcc?) can be more explicit when pentium
> acceleration is -silently- ignored ?
> Was my installation correct ?
> Should I recompile ALL my objects (including librairies) ?

You could try that. But be very careful if you want to compile
libc with -O6.

Depending on your program, optimizing your libraries will or will
not improve speed. If it's calling your libraries all the time,
it should help.

> One thing: old gcc refuse above pgcc options  cc1: Invalid option
> 'stack-align-double'. So I'm (99%) sure I compiled with pgcc.
> 

As far as I can tell, your installation is correct. To make sure the
executables generated by old gcc -O3, en pgcc -O6 are different, check
their sizes or do a diff.

Ronald

- Raw text -


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