Mail Archives: pgcc/1999/04/28/12:57:57
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 -