* compaq cc / c++ or gcc?
@ 2002-01-12 17:28 bbmarkz
2002-01-12 17:52 ` John Beardmore
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: bbmarkz @ 2002-01-12 17:28 UTC (permalink / raw)
Would it be a good idea to replace gcc with the Compaq cc & c++ compilers:
http://www.compaq.com/products/software/compilers/candcxx.html
on my Alpha Linux box?
In other words, I'd keep gcc but use it only when the compaq compilers
fail....
-bb
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: compaq cc / c++ or gcc? 2002-01-12 17:28 compaq cc / c++ or gcc? bbmarkz @ 2002-01-12 17:52 ` John Beardmore 2002-01-12 20:54 ` bbmarkz 2002-01-13 10:12 ` Juhana Paavola 2002-01-13 23:42 ` Peter Mardahl 2 siblings, 1 reply; 10+ messages in thread From: John Beardmore @ 2002-01-12 17:52 UTC (permalink / raw) In article <3C407280.2030909@MAPSONnetscape.net>, bbmarkz <bbmarkz-NOSPAM@MAPSONnetscape.net> writes > >Would it be a good idea to replace gcc with the Compaq cc & c++ compilers: > > http://www.compaq.com/products/software/compilers/candcxx.html > >on my Alpha Linux box? > >In other words, I'd keep gcc but use it only when the compaq compilers >fail.... Two questions - how does it stack up against GCC 3, and do compaq have a better debugging environment ? Cheers, J/. -- John Beardmore ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compaq cc / c++ or gcc? 2002-01-12 17:52 ` John Beardmore @ 2002-01-12 20:54 ` bbmarkz 2002-01-12 21:39 ` Michael Schulz 0 siblings, 1 reply; 10+ messages in thread From: bbmarkz @ 2002-01-12 20:54 UTC (permalink / raw) John Beardmore wrote: > In article <3C407280.2030909@MAPSONnetscape.net>, bbmarkz > <bbmarkz-NOSPAM@MAPSONnetscape.net> writes > >> >> Would it be a good idea to replace gcc with the Compaq cc & c++ >> compilers: >> >> http://www.compaq.com/products/software/compilers/candcxx.html >> >> on my Alpha Linux box? >> >> In other words, I'd keep gcc but use it only when the compaq compilers >> fail.... > > > Two questions - how does it stack up against GCC 3, and do compaq have > a better debugging environment ? > > > Cheers, J/. My understanding from the Tru64 side is that Compaq C/C++ produce much faster code than gcc on Tru64....Perhaps someone can comment. -bb ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compaq cc / c++ or gcc? 2002-01-12 20:54 ` bbmarkz @ 2002-01-12 21:39 ` Michael Schulz 2002-01-13 11:47 ` John Beardmore 0 siblings, 1 reply; 10+ messages in thread From: Michael Schulz @ 2002-01-12 21:39 UTC (permalink / raw) bbmarkz <bbmarkz-NOSPAM@mapsonnetscape.net> wrote in <3C40A2BF.9080805@MAPSONnetscape.net> following: > My understanding from the Tru64 side is that Compaq C/C++ produce much > faster code than gcc on Tru64....Perhaps someone can comment. This is the reason why we contributed the c and c++ compilers to linux :) Performance. bye michael -- Michael Schulz - creative-chaos.com eMail: mschulz@creative-chaos.com Signature Device Error (SDE) - Please contact Systemadministrator ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compaq cc / c++ or gcc? 2002-01-12 21:39 ` Michael Schulz @ 2002-01-13 11:47 ` John Beardmore 2002-01-14 5:30 ` bbmarkz 0 siblings, 1 reply; 10+ messages in thread From: John Beardmore @ 2002-01-13 11:47 UTC (permalink / raw) In article <a1qaf2$idr$1@morpheus.creative-chaos.de>, Michael Schulz <mschulz@creative-chaos.com> writes >bbmarkz <bbmarkz-NOSPAM@mapsonnetscape.net> wrote in ><3C40A2BF.9080805@MAPSONnetscape.net> following: >> My understanding from the Tru64 side is that Compaq C/C++ produce much >> faster code than gcc on Tru64....Perhaps someone can comment. >This is the reason why we contributed the c and c++ compilers to linux >:) Performance. Yes, but how much more performance ? Are there any benchmarks out there ? I understood that gcc 3 would be a lot better than gcc2, but ideally I'd like to benchmarks of gcc 2, gcc3 and the compaq compiler. Cheers, J/. -- John Beardmore ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compaq cc / c++ or gcc? 2002-01-13 11:47 ` John Beardmore @ 2002-01-14 5:30 ` bbmarkz 2002-01-14 16:36 ` Falk Hueffner 0 siblings, 1 reply; 10+ messages in thread From: bbmarkz @ 2002-01-14 5:30 UTC (permalink / raw) Here's gcc-2.96 and Compaq CC 6.4.9 using nbench found here: http://www.tux.org/~mayer/linux/bmark.html. Summary Memory Integer Floating gcc 0.861 0.711 1.017 ccc 0.761 0.783 2.021 (I did not put much effort into this...And I know that posting benchmarks is like playing with matches.) Detail: Machine: Alphastation 250 4/266 OS: Redhat Linux for Alpha 7.1 gcc --version: 2.96 gcc CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -funroll-loops BYTEmark* Native Mode Benchmark ver. 2 (10/95) Index-split by Andrew D. Balsa (11/97) Linux/Unix* port by Uwe F. Mayer (12/96,11/97) TEST : Iterations/sec. : Old Index : New Index : : Pentium 90* : AMD K6/233* --------------------:------------------:-------------:------------ NUMERIC SORT : 86.205 : 2.21 : 0.73 STRING SORT : 11.429 : 5.11 : 0.79 BITFIELD : 2.3537e+07 : 4.04 : 0.84 FP EMULATION : 5.394 : 2.59 : 0.60 FOURIER : 732.74 : 0.83 : 0.47 ASSIGNMENT : 0.97129 : 3.70 : 0.96 IDEA : 164.14 : 2.51 : 0.75 HUFFMAN : 89.247 : 2.47 : 0.79 NEURAL NET : 1.6447 : 2.64 : 1.11 LU DECOMPOSITION : 54.136 : 2.80 : 2.03 ==========================ORIGINAL BYTEMARK RESULTS===================== INTEGER INDEX : 3.093 FLOATING-POINT INDEX: 1.835 Baseline (MSDOS*) : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0 ==============================LINUX DATA BELOW========================== C compiler : gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-87) libc : unknown version MEMORY INDEX : 0.861 INTEGER INDEX : 0.711 FLOATING-POINT INDEX: 1.017 Baseline (LINUX) : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38 * Trademarks are property of their respective holder. ccc CFLAGS = -tune host -arch host -fast BYTEmark* Native Mode Benchmark ver. 2 (10/95) Index-split by Andrew D. Balsa (11/97) Linux/Unix* port by Uwe F. Mayer (12/96,11/97) TEST : Iterations/sec. : Old Index : New Index : : Pentium 90* : AMD K6/233* --------------------:------------------:-------------:------------ NUMERIC SORT : 82.34 : 2.11 : 0.69 STRING SORT : 10.108 : 4.52 : 0.70 BITFIELD : 2.0414e+07 : 3.50 : 0.73 FP EMULATION : 6.913 : 3.32 : 0.77 FOURIER : 3965.1 : 4.51 : 2.53 ASSIGNMENT : 0.87238 : 3.32 : 0.86 IDEA : 154.73 : 2.37 : 0.70 HUFFMAN : 113.97 : 3.16 : 1.01 NEURAL NET : 2.4386 : 3.92 : 1.65 LU DECOMPOSITION : 52.858 : 2.74 : 1.98 ==========================ORIGINAL BYTEMARK RESULTS===================== INTEGER INDEX : 3.100 FLOATING-POINT INDEX: 3.644 Baseline (MSDOS*) : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0 ==============================LINUX DATA BELOW========================== C compiler : ccc (unknown version) libc : unknown version MEMORY INDEX : 0.761 INTEGER INDEX : 0.783 FLOATING-POINT INDEX: 2.021 Baseline (LINUX) : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38 * Trademarks are property of their respective holder. John Beardmore wrote: > In article <a1qaf2$idr$1@morpheus.creative-chaos.de>, Michael Schulz > <mschulz@creative-chaos.com> writes > >> bbmarkz <bbmarkz-NOSPAM@mapsonnetscape.net> wrote in >> <3C40A2BF.9080805@MAPSONnetscape.net> following: >> >>> My understanding from the Tru64 side is that Compaq C/C++ produce much >>> faster code than gcc on Tru64....Perhaps someone can comment. >> >> This is the reason why we contributed the c and c++ compilers to linux >> :) Performance. > > > Yes, but how much more performance ? > > Are there any benchmarks out there ? I understood that gcc 3 would be a > lot better than gcc2, but ideally I'd like to benchmarks of gcc 2, gcc3 > and the compaq compiler. > > > Cheers, J/. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compaq cc / c++ or gcc? 2002-01-14 5:30 ` bbmarkz @ 2002-01-14 16:36 ` Falk Hueffner 2002-01-15 13:46 ` Kenneth Block 0 siblings, 1 reply; 10+ messages in thread From: Falk Hueffner @ 2002-01-14 16:36 UTC (permalink / raw) Hi, here's another "benchmark", with a semi-real-world program that does IDA* searches: cxx 41.75s g++ 16.08s g++3.0 17.02s g++3.1 14.52s So cxx isn't always better than g++. I'd advise to install both, because cxx has better diagnostics, and do benchmarks to decide which one to take for the final version. Falk ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compaq cc / c++ or gcc? 2002-01-14 16:36 ` Falk Hueffner @ 2002-01-15 13:46 ` Kenneth Block 0 siblings, 0 replies; 10+ messages in thread From: Kenneth Block @ 2002-01-15 13:46 UTC (permalink / raw) Can you post or send me the source to this benchmark? "Falk Hueffner" <falk.hueffner@student.uni-tuebingen.de> wrote in message news:87vge4dh52.fsf@student.uni-tuebingen.de... > Hi, > > here's another "benchmark", with a semi-real-world program that does > IDA* searches: > > cxx 41.75s > g++ 16.08s > g++3.0 17.02s > g++3.1 14.52s > > So cxx isn't always better than g++. I'd advise to install both, > because cxx has better diagnostics, and do benchmarks to decide which > one to take for the final version. > > Falk > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compaq cc / c++ or gcc? 2002-01-12 17:28 compaq cc / c++ or gcc? bbmarkz 2002-01-12 17:52 ` John Beardmore @ 2002-01-13 10:12 ` Juhana Paavola 2002-01-13 23:42 ` Peter Mardahl 2 siblings, 0 replies; 10+ messages in thread From: Juhana Paavola @ 2002-01-13 10:12 UTC (permalink / raw) bbmarkz <bbmarkz-NOSPAM@mapsonnetscape.net> wrote: > Would it be a good idea to replace gcc with the Compaq cc & c++ compilers: > http://www.compaq.com/products/software/compilers/candcxx.html > on my Alpha Linux box? > In other words, I'd keep gcc but use it only when the compaq compilers > fail.... You don't have to replace gcc. They work together fine, just install RPM's what you find from Compaq's site. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compaq cc / c++ or gcc? 2002-01-12 17:28 compaq cc / c++ or gcc? bbmarkz 2002-01-12 17:52 ` John Beardmore 2002-01-13 10:12 ` Juhana Paavola @ 2002-01-13 23:42 ` Peter Mardahl 2 siblings, 0 replies; 10+ messages in thread From: Peter Mardahl @ 2002-01-13 23:42 UTC (permalink / raw) In article <3C407280.2030909@MAPSONnetscape.net>, bbmarkz <bbmarkz-NOSPAM@MAPSONnetscape.net> wrote: >Would it be a good idea to replace gcc with the Compaq cc & c++ compilers: Install and use Compaq cc and c++ (called ccc and cxx)? GOOD idea. Replace gcc? No, BAD idea. ccc and cxx from compaq are GOOD compilers. However, the Linux kernel, and possibly other programs, rely on features present only in gcc/g++. On my own benchmarks, cxx produces code which runs about 50% faster than gcc. My opinion is to use cxx and ccc whenever possible. PM > http://www.compaq.com/products/software/compilers/candcxx.html > >on my Alpha Linux box? > >In other words, I'd keep gcc but use it only when the compaq compilers >fail.... > >-bb > ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-01-15 13:46 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-01-12 17:28 compaq cc / c++ or gcc? bbmarkz 2002-01-12 17:52 ` John Beardmore 2002-01-12 20:54 ` bbmarkz 2002-01-12 21:39 ` Michael Schulz 2002-01-13 11:47 ` John Beardmore 2002-01-14 5:30 ` bbmarkz 2002-01-14 16:36 ` Falk Hueffner 2002-01-15 13:46 ` Kenneth Block 2002-01-13 10:12 ` Juhana Paavola 2002-01-13 23:42 ` Peter Mardahl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox