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

Sender: tutu AT duboi DOT com
Message-ID: <37273E2A.A17219BF@duboi.com>
Date: Wed, 28 Apr 1999 18:58:18 +0200
From: Olivier Tubach <tutu AT duboi DOT com>
X-Mailer: Mozilla 4.51 [en] (X11; I; IRIX 6.3 IP32)
X-Accept-Language: fr-FR, en
MIME-Version: 1.0
Newsgroups: comp.os.linux.development.apps
To: pgcc AT delorie DOT com
Subject: pgcc... Do I really got it ?
Reply-To: pgcc AT delorie DOT com

Hi,
I'm looking for pgcc . I visited to http://goof.com/pcg

so, to get pgcc  1.1.3,   I downloaded  'egcs-1.1.2.tar.gz' and
applied the patch 'egcs-1.1.2-pgcc-1.1.3.diff'.  All went ok. I renamed
~/egcc-1.1.2 to ~/egcc-1.1.3
I'm running linux 2.2.0 (brand new, no hacking before :) on a pentiumII,

so I made a directory in ~/egcc-1.1.3/linux2.2.0
There, I entered  '~/egcs-1.1.3/configure' from that directory
(configure with no arguments).
I was told 'i686-pc-linux-gnu'
then I 'make bootstrap'.
All went fine. I make 'install'. I got /usr/local/bin/gcc, brand new,
among other things.
Correct ?

After, I made a link   /usr/bin/cc -> /usr/local/bin/gcc   instead of
former  /usr/bin/cc -> gcc
now,  cc --version  says:  pgcc-2.91.66     (before: egcs-2.91.60)
Cool.

Now I compiled my executable, in three versions: -O0,  -O3 (old gcc)
and new pgcc (-O6 -mcpu=pentiumpro -march=pentiumpro -ffast-math
-malign-double -mstack-align-double -funroll-all-loops -malign-loops=2
-malign-jumps=2 -malign-functions=2)

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?)
I didn't get a 'pgcc' executable. Should I use cc ? gcc ? (I used cc) ?
Should I make a link for pgcc ?
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) ?
One thing: old gcc refuse above pgcc options  cc1: Invalid option
'stack-align-double'. So I'm (99%) sure I compiled with pgcc.

Any hints... ?
thanks.
Olivier Tubach




- Raw text -


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