* gcc versus compaq compiler performance
@ 2002-07-02 16:49 mitusra
2002-07-02 20:16 ` Albert Chin-A-Young
2002-07-03 5:12 ` Paul Pluzhnikov
0 siblings, 2 replies; 10+ messages in thread
From: mitusra @ 2002-07-02 16:49 UTC (permalink / raw)
Hi,
does anybody have any experience with the same program compiled with GNU gcc
and the Compaq compiler?
We app that needs to run very fast (really really fast) and it is currently
compiled with gcc.
The app runs on a GS with multiple CPUs
I am not convinced that this is a good thing because I think that the same
app compiled with official Compaq compiler should run faster.
I have not found any benchmarks so I turn to the specialist in this group to
get your opinion.
Any help much appreciated.
Kris
Ps.: is gcc optimized for an EV6?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
2002-07-02 16:49 gcc versus compaq compiler performance mitusra
@ 2002-07-02 20:16 ` Albert Chin-A-Young
2002-07-03 5:41 ` Nikola Milutinovic
[not found] ` <afu40b$r1l$1@mercury.ev.co.yu>
2002-07-03 5:12 ` Paul Pluzhnikov
1 sibling, 2 replies; 10+ messages in thread
From: Albert Chin-A-Young @ 2002-07-02 20:16 UTC (permalink / raw)
mitusra <mitsura@mits.mit> wrote:
> does anybody have any experience with the same program compiled with GNU gcc
> and the Compaq compiler?
>
> We app that needs to run very fast (really really fast) and it is currently
> compiled with gcc.
> The app runs on a GS with multiple CPUs
> I am not convinced that this is a good thing because I think that the same
> app compiled with official Compaq compiler should run faster.
> I have not found any benchmarks so I turn to the specialist in this group to
> get your opinion.
Why not use the Compaq compiler? The C compiler is free and you can get
an eval license for the C++ compiler.
> Kris
>
> Ps.: is gcc optimized for an EV6?
Doesn't matter. What matter is if the *code* GCC generated has been
compiled for EV6.
--
albert chin
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
2002-07-02 16:49 gcc versus compaq compiler performance mitusra
2002-07-02 20:16 ` Albert Chin-A-Young
@ 2002-07-03 5:12 ` Paul Pluzhnikov
2002-07-03 7:26 ` Lucas Carey
2002-07-03 8:30 ` Hans Schwengeler
1 sibling, 2 replies; 10+ messages in thread
From: Paul Pluzhnikov @ 2002-07-03 5:12 UTC (permalink / raw)
"mitusra" <mitsura@mits.mit> writes:
> does anybody have any experience with the same program compiled with GNU gcc
> and the Compaq compiler?
I have a friend who is running some numerical simulations
(Fortran) on Alpha/Linux. He got a 100% speedup *on his code*
by recompiling with Compaq's f77 instead of g77 ...
The results you'll get will depend on your code.
Are you even getting close to a 100% CPU, and close to
a 100% user time? Little point in recompiling I/O-bound
program(s) ;-)
Cheers,
--
In order to understand recursion you must first understand recursion.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
2002-07-02 20:16 ` Albert Chin-A-Young
@ 2002-07-03 5:41 ` Nikola Milutinovic
2002-07-03 12:59 ` Paul A Sand
[not found] ` <afu40b$r1l$1@mercury.ev.co.yu>
1 sibling, 1 reply; 10+ messages in thread
From: Nikola Milutinovic @ 2002-07-03 5:41 UTC (permalink / raw)
> Why not use the Compaq compiler? The C compiler is free and you can get
> an eval license for the C++ compiler.
Have you ever tried to compile Apache 2.0 using Compaq's CC? They have
poluted the source with "GCC-isms" to such an extent, that I've given up on
trying to "ANSI-aze" it. I installed GCC 3.0.4 and managed to compile Apache
2.0.36 without a hickup.
Nix.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
2002-07-03 5:12 ` Paul Pluzhnikov
@ 2002-07-03 7:26 ` Lucas Carey
2002-07-03 8:30 ` Hans Schwengeler
1 sibling, 0 replies; 10+ messages in thread
From: Lucas Carey @ 2002-07-03 7:26 UTC (permalink / raw)
On Wed, 03 Jul 2002 01:12:48 -0400, Paul Pluzhnikov wrote:
> "mitusra" <mitsura@mits.mit> writes:
>
>> does anybody have any experience with the same program compiled with
>> GNU gcc and the Compaq compiler?
>
> I have a friend who is running some numerical simulations (Fortran) on
> Alpha/Linux. He got a 100% speedup *on his code* by recompiling with
> Compaq's f77 instead of g77 ...
>
> The results you'll get will depend on your code.
As always, YMMV, but here are my results for STREAMS benchmarks
an XP1000 (666mhz EV6) running Tru64 v5.1a
better speedup would probably be obtained with -arch=ev6 or whever the correct
syntax is.
runt: cc -fast
-------------------------------------------------------------
Function Rate (MB/s) RMS time Min time Max time
Copy: 780.1859 0.0272 0.0205 0.0352
Scale: 744.7066 0.0268 0.0215 0.0293
Add: 768.0000 0.0400 0.0312 0.0430
Triad: 767.9736 0.0414 0.0313 0.0469
runt: gcc (v3.0.3) -O3 -DU_ALPHA
-------------------------------------------------------------
Function Rate (MB/s) RMS time Min time Max time
Copy: 399.6014 0.0587 0.0400 0.0898
Scale: 381.0157 0.0602 0.0420 0.0986
Add: 431.1505 0.1496 0.0557 0.4150
Triad: 372.3588 0.0711 0.0645 0.0781
as you can see, cc is much faster for streams, if your app is memory
bound, this will be a great help.
My particular app is a C prog that spends ~50% of its time doing
1/sqrt(), and the majority of the other 50% doing other misc floating
point operations. for this gcc and cc are approx equal. (I lost my
benchmarks to a failed disk.) This is a bit of
a suprise, but I don't think that cc is as well optimized for the ev6 as
it was for ev5, based on the lack of work compaq seems to have put into
everything they inherited from DEC. gcc-2.9x was blown away by cc, but
3.0 seems to have closed the gap quite a bit. Make sure to use the
CXML/DXML libraries when you compile.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
2002-07-03 5:12 ` Paul Pluzhnikov
2002-07-03 7:26 ` Lucas Carey
@ 2002-07-03 8:30 ` Hans Schwengeler
1 sibling, 0 replies; 10+ messages in thread
From: Hans Schwengeler @ 2002-07-03 8:30 UTC (permalink / raw)
In article <m3fzz1tmwc.fsf@salmon.parasoft.com>,
Paul Pluzhnikov <ppluzhnikov@earthlink.net> writes:
> "mitusra" <mitsura@mits.mit> writes:
>
>> does anybody have any experience with the same program compiled with GNU gcc
>> and the Compaq compiler?
>
> I have a friend who is running some numerical simulations
> (Fortran) on Alpha/Linux. He got a 100% speedup *on his code*
> by recompiling with Compaq's f77 instead of g77 ...
>
> The results you'll get will depend on your code.
>
> Are you even getting close to a 100% CPU, and close to
> a 100% user time? Little point in recompiling I/O-bound
> program(s) ;-)
>
> Cheers,
Hello,
well, generally I get speed improvements of 300% to 1000% (!)
with cc over gcc (2.95.2 or 3.0). I think I never encountered a program
which ran faster with gcc.
It is true though that many programs cannot be compiled with cc easily,
sometimes gcc seems to be required.
Yours, Hans.
--
===============================================================================
Hans Schwengeler
Astronomical Institute INTERNET: schweng@astro.unibas.ch
University of Basel Hans.Schwengeler@unibas.ch
Venusstrasse 7
CH-4102 Binningen PHONE: +41 61 20 55 422
Switzerland FAX: +41 61 20 55 455
===============================================================================
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
[not found] ` <afu40b$r1l$1@mercury.ev.co.yu>
@ 2002-07-03 12:26 ` Peter da Silva
2002-07-04 7:00 ` Allen M. Cohen
0 siblings, 1 reply; 10+ messages in thread
From: Peter da Silva @ 2002-07-03 12:26 UTC (permalink / raw)
In article <afu40b$r1l$1@mercury.ev.co.yu>,
Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu> wrote:
> > Why not use the Compaq compiler? The C compiler is free and you can get
> > an eval license for the C++ compiler.
> Have you ever tried to compile Apache 2.0 using Compaq's CC?
I'm sticking with Apache 1.3.x for the time being myself.
--
I've seen things you people can't imagine. Chimneysweeps on fire over the roofs
of London. I've watched kite-strings glitter in the sun at Hyde Park Gate. All
these things will be lost in time, like chalk-paintings in the rain. `-_-'
Time for your nap. | Peter da Silva | Har du kramat din varg, idag? 'U`
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
2002-07-03 5:41 ` Nikola Milutinovic
@ 2002-07-03 12:59 ` Paul A Sand
0 siblings, 0 replies; 10+ messages in thread
From: Paul A Sand @ 2002-07-03 12:59 UTC (permalink / raw)
In article <afu40b$r1l$1@Mercury.ev.co.yu>, Nikola Milutinovic wrote:
>> Why not use the Compaq compiler? The C compiler is free and you can get
>> an eval license for the C++ compiler.
> Have you ever tried to compile Apache 2.0 using Compaq's CC? They have
> poluted the source with "GCC-isms" to such an extent, that I've given up on
> trying to "ANSI-aze" it. I installed GCC 3.0.4 and managed to compile Apache
> 2.0.36 without a hickup.
To leap to the defense of both Compaq and Apache: as near as I can tell,
Apache 2.0.39 configures and compiles cleanly using cc (Compaq C V6.4-014)
on our Tru64 5.1A systems. (Although I haven't tried all combinations
of httpd's --with-X and --enable-X configuration options. No idea either
on older OS/compiler versions.)
I use cc and cxx for compiling everything on Tru64. I've never had
to resort to gcc/g++. In my experience, compilation problems can be
tricked out with appropriate CFLAGS settings, or (rarely) with small
Tru64-specific patches. (Example of the latter: the latest few versions
of rsync. The patch is included in the distribution.)
Not that I'm generally pro-Compaq/anti-GNU software. Using GNU's make
over Compaq's is often a must.
--
-- Paul A. Sand | If you'd learn about dithering,
-- University of New Hampshire | then perhaps you'd stop blithering.
-- pas@unh.edu | (Tim Smith, comp.org.eff.talk)
-- http://pubpages.unh.edu/~pas |
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
2002-07-03 12:26 ` Peter da Silva
@ 2002-07-04 7:00 ` Allen M. Cohen
2002-08-12 2:42 ` Nico Kadel-Garcia
0 siblings, 1 reply; 10+ messages in thread
From: Allen M. Cohen @ 2002-07-04 7:00 UTC (permalink / raw)
I had to build XEmacs 21.1.14 (and its ancillary libraries, such as GIF,
TIFF, ZLIB, PNG, etc.) with gcc.
"Peter da Silva" <peter@abbnm.com> wrote in message
news:afuqgv$ctg@web.eng.baileynm.com...
> In article <afu40b$r1l$1@mercury.ev.co.yu>,
> Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu> wrote:
> > > Why not use the Compaq compiler? The C compiler is free and you can
get
> > > an eval license for the C++ compiler.
>
> > Have you ever tried to compile Apache 2.0 using Compaq's CC?
>
> I'm sticking with Apache 1.3.x for the time being myself.
>
> --
> I've seen things you people can't imagine. Chimneysweeps on fire over the
roofs
> of London. I've watched kite-strings glitter in the sun at Hyde Park Gate.
All
> these things will be lost in time, like chalk-paintings in the rain.
`-_-'
> Time for your nap. | Peter da Silva | Har du kramat din varg, idag?
'U`
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gcc versus compaq compiler performance
2002-07-04 7:00 ` Allen M. Cohen
@ 2002-08-12 2:42 ` Nico Kadel-Garcia
0 siblings, 0 replies; 10+ messages in thread
From: Nico Kadel-Garcia @ 2002-08-12 2:42 UTC (permalink / raw)
"Allen M. Cohen" <amc@to.gd-es.com> wrote in message
news:Gypq13.JG8@wlbr.to.gd-es.com...
> I had to build XEmacs 21.1.14 (and its ancillary libraries, such as GIF,
> TIFF, ZLIB, PNG, etc.) with gcc.
OpenSSH and OpenSSL and gdb. Now *that* was an adventure....
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-08-12 2:42 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-02 16:49 gcc versus compaq compiler performance mitusra
2002-07-02 20:16 ` Albert Chin-A-Young
2002-07-03 5:41 ` Nikola Milutinovic
2002-07-03 12:59 ` Paul A Sand
[not found] ` <afu40b$r1l$1@mercury.ev.co.yu>
2002-07-03 12:26 ` Peter da Silva
2002-07-04 7:00 ` Allen M. Cohen
2002-08-12 2:42 ` Nico Kadel-Garcia
2002-07-03 5:12 ` Paul Pluzhnikov
2002-07-03 7:26 ` Lucas Carey
2002-07-03 8:30 ` Hans Schwengeler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox