* Compaq C compiler
@ 2002-03-07 19:42 Ted Goodridge, Jr
2002-03-07 19:53 ` Ross A Knepper
2002-03-07 21:56 ` Michal Jaegermann
0 siblings, 2 replies; 19+ messages in thread
From: Ted Goodridge, Jr @ 2002-03-07 19:42 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 173 bytes --]
I want to compile X and my kernel with CCC, how do I go about doing
this? This has been discussed in the list before, and I was hoping I
might start compiling a FAQ.
Ted
[-- Attachment #2: Type: text/html, Size: 3136 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C compiler
2002-03-07 19:42 Compaq C compiler Ted Goodridge, Jr
@ 2002-03-07 19:53 ` Ross A Knepper
2002-03-07 21:56 ` Michal Jaegermann
1 sibling, 0 replies; 19+ messages in thread
From: Ross A Knepper @ 2002-03-07 19:53 UTC (permalink / raw)
To: axp-list
you dont. at least not with the kernel. the kernel uses the
asm() command supported by gcc rather than the incompatible one supported
by ccc. so it wouldn't compile without a fair amount of work.
X might compile cleanly. i've never tried it. just set your CC
environment variable to ccc.
-ross
On Thu, 7 Mar 2002, Ted Goodridge, Jr wrote:
> I want to compile X and my kernel with CCC, how do I go about doing
> this? This has been discussed in the list before, and I was hoping I
> might start compiling a FAQ.
>
> Ted
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C compiler
2002-03-07 19:42 Compaq C compiler Ted Goodridge, Jr
2002-03-07 19:53 ` Ross A Knepper
@ 2002-03-07 21:56 ` Michal Jaegermann
2002-03-08 3:38 ` Ted Goodridge, Jr
1 sibling, 1 reply; 19+ messages in thread
From: Michal Jaegermann @ 2002-03-07 21:56 UTC (permalink / raw)
To: axp-list
On Thu, Mar 07, 2002 at 01:42:53PM -0600, Ted Goodridge, Jr wrote:
> I want to compile X and my kernel with CCC, how do I go about doing
> this? This has been discussed in the list before, and I was hoping I
> might start compiling a FAQ.
First you are getting an access to CCC sources (good luck with this).
Next you are implemeting all gcc extensions which are used by kernel and
you also modify a parser, while you are at it, to accept an assembler
syntax as used by gcc. After you did all of that, and thorougly
debugged it and made sure that all silent expectations about generated
code are met, you compile your kernel to find out that results of all
this exercise are likely slower (there are good reasons for that
prognosis) although you probably hope that differences are not really
measurable. If the later is the case you did _really_ well.
Congratulations!
As for X server most likely just change make sure that CC variable in
all Makefiles is set to 'ccc' instead of 'gcc'. There is a top
configuration file which should be enough. Maybe you need adjust a bit
option strings. If you will see any overall performance gains from that
then please let us know. I mean for the system and not some well chosen
program or benchmark.
Michal
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Compaq C compiler
2002-03-07 21:56 ` Michal Jaegermann
@ 2002-03-08 3:38 ` Ted Goodridge, Jr
0 siblings, 0 replies; 19+ messages in thread
From: Ted Goodridge, Jr @ 2002-03-08 3:38 UTC (permalink / raw)
To: axp-list
X wont compile with CCC, at least as far as I have tried. Even changing
GCC to CCC doesn't work. Any ideas? For kicks, I made gcc a symbolic
link to CCC, and the program won't compile. And I'm not sure how to
change it in the makefile. I don't know if X is using some specific GCC
compilation options or not.
Ted
-----Original Message-----
From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
Behalf Of Michal Jaegermann
Sent: Thursday, March 07, 2002 3:56 PM
To: axp-list@redhat.com
Subject: Re: Compaq C compiler
On Thu, Mar 07, 2002 at 01:42:53PM -0600, Ted Goodridge, Jr wrote:
> I want to compile X and my kernel with CCC, how do I go about doing
> this? This has been discussed in the list before, and I was hoping I
> might start compiling a FAQ.
First you are getting an access to CCC sources (good luck with this).
Next you are implemeting all gcc extensions which are used by kernel and
you also modify a parser, while you are at it, to accept an assembler
syntax as used by gcc. After you did all of that, and thorougly
debugged it and made sure that all silent expectations about generated
code are met, you compile your kernel to find out that results of all
this exercise are likely slower (there are good reasons for that
prognosis) although you probably hope that differences are not really
measurable. If the later is the case you did _really_ well.
Congratulations!
As for X server most likely just change make sure that CC variable in
all Makefiles is set to 'ccc' instead of 'gcc'. There is a top
configuration file which should be enough. Maybe you need adjust a bit
option strings. If you will see any overall performance gains from that
then please let us know. I mean for the system and not some well chosen
program or benchmark.
Michal
_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 19+ messages in thread
[parent not found: <20020308060803.4DB073F764@listman.redhat.com>]
* Re: Compaq C compiler
[not found] <20020308060803.4DB073F764@listman.redhat.com>
@ 2002-03-08 19:01 ` Stephen Lewis
0 siblings, 0 replies; 19+ messages in thread
From: Stephen Lewis @ 2002-03-08 19:01 UTC (permalink / raw)
To: axp-list
Should not need source to compile stuff,
can get asm functionality with
#pragma intrinsic (asm)
and maybe
#define __asm__ asm
see hints in 'c_asm.h' that comes with ccc
"most" gcc options are recognised by ccc,
don't need to change the makefiles use
CC=ccc make -e
however, if you want to try this I would NOT begin with 'X'
or the kernel, try something smaller,
just turn on all the warnings and read the log files :-)
Stephen Lewis
>
> Re: Compaq C compiler
> Date:
> Thu, 7 Mar 2002 14:56:12 -0700
> From:
> Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
> Reply-To:
> axp-list@redhat.com
> To:
> axp-list@redhat.com
> References:
> 1
>
>
>
> On Thu, Mar 07, 2002 at 01:42:53PM -0600, Ted Goodridge, Jr wrote:
> > I want to compile X and my kernel with CCC, how do I go about doing
> > this? This has been discussed in the list before, and I was hoping
> I
> > might start compiling a FAQ.
>
> First you are getting an access to CCC sources (good luck with this).
> Next you are implemeting all gcc extensions which are used by kernel
> and
> you also modify a parser, while you are at it, to accept an assembler
> syntax as used by gcc. After you did all of that, and thorougly
> debugged it and made sure that all silent expectations about
> generated
> code are met, you compile your kernel to find out that results of all
> this exercise are likely slower (there are good reasons for that
> prognosis) although you probably hope that differences are not really
> measurable. If the later is the case you did _really_ well.
> Congratulations!
>
> As for X server most likely just change make sure that CC variable in
> all Makefiles is set to 'ccc' instead of 'gcc'. There is a top
> configuration file which should be enough. Maybe you need adjust a
> bit
> option strings. If you will see any overall performance gains from
> that
> then please let us know. I mean for the system and not some well
> chosen
> program or benchmark.
>
> Michal
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Compaq C Compiler
@ 2002-03-08 22:30 Ted Goodridge
2002-03-08 23:56 ` David Woodhouse
2002-03-09 1:07 ` W Bauske
0 siblings, 2 replies; 19+ messages in thread
From: Ted Goodridge @ 2002-03-08 22:30 UTC (permalink / raw)
To: axp-list
Again this is my frustration with the linux community. As for help, get
RTFM, RTFM, RTFM. I was asking for people with _real_ experiences with CC,
and actual assistance.
>>> > X wont compile with CCC,
>>>
>>> Hard to believe as X sources are fairly portable across different
>>> platforms and compilers. This is in a marked contrast to a Linux kernel
>>> which was never written in a portable C, and there were never claims of
>>> that sort, but in a dialect supported by gcc.
>>>
Have *YOU* actually tried to compile it with CCC? How do you know how
portable something is without trying it.
>>> OTOH it is higly doubtful that it is worth to bother unless you consider
>>> that learning experience in portable programming and in how XFree86
>>> sources are put together. This is a floting point, and a floating point
>>> _libraries_, which make the biggest difference between ccc and gcc. In
>>> other situations differences are rather small and not that infrequently
>>> gcc comes ahead.
>>>
GCC coming out ahead? Compaq states that CCC gets up to a 30% bonus for non
floating point programs. 30% is well worth the effort. Again, actual help
with my question might be more appreciated than telling me my attempts are
misguided.
This is what turns new people off to linux. Elitism telling people to RTFM
and "you obviously don't know what you are doing".
Ted
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C Compiler
2002-03-08 22:30 Compaq C Compiler Ted Goodridge
@ 2002-03-08 23:56 ` David Woodhouse
2002-03-09 0:42 ` Ted Goodridge, Jr
2002-03-09 1:07 ` W Bauske
1 sibling, 1 reply; 19+ messages in thread
From: David Woodhouse @ 2002-03-08 23:56 UTC (permalink / raw)
To: axp-list
tedgoodridgejr@acm.org said:
> Again this is my frustration with the linux community. As for help,
> get RTFM, RTFM, RTFM. I was asking for people with _real_ experiences
> with CC, and actual assistance.
Who do you think _wrote_ the aforementioned F. Manual? Someone with
real experience perhaps? And what do you think they wrote it for?
> Have *YOU* actually tried to compile it with CCC? How do you know
> how portable something is without trying it.
I tried it. It exceeded my boredom threshold - to be honest, X code makes
me queasy and I couldn't be bothered to find and read the Compaq manuals
to work out what their compiler was whinging about.
> GCC coming out ahead? Compaq states that CCC gets up to a 30% bonus
> for non floating point programs. 30% is well worth the effort.
> Again, actual help with my question might be more appreciated than
> telling me my attempts are misguided.
Your attempt isn't misguided. Compiling X with CCC would be interesting. But
you do need to give reports that people can at least _attempt_ to help you
with - don't just report 'it didn't work'. Quote the command line it used
and the _precise_ error(s).
--
dwmw2
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Compaq C Compiler
2002-03-08 23:56 ` David Woodhouse
@ 2002-03-09 0:42 ` Ted Goodridge, Jr
2002-03-09 1:04 ` Uncle George
0 siblings, 1 reply; 19+ messages in thread
From: Ted Goodridge, Jr @ 2002-03-09 0:42 UTC (permalink / raw)
To: axp-list
I'm sorry about my outburst, it came after a long frustrating day.
About the RTFM, see the point is, I usually already have read the manual
before I ask for help. That's why hearing 'read the manual' on these
lists was touched off a nerve.
This evening/tomorrow/weekend I'm going to make another attempt to
compile X with ccc. Someone suggested I edit the top level makefile?
Changing the environment variable "CC" to ccc didn't affect the build
process, which is the normal step the Compaq faq suggests.
The first way I attempted to build X with ccc was to just create a
symbolic link called gcc and point that to ccc. (This was the only way
I could get other programs to compile which would not accept ccc as the
compiler.) The build failed rather early. I'll get the exact error to
those who are interested. (Please email me directly if you are willing
to help with this, that was the original attempt of my first email on
this subject.)
Ted
-----Original Message-----
From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
Behalf Of David Woodhouse
Sent: Friday, March 08, 2002 5:57 PM
To: axp-list@redhat.com
Subject: Re: Compaq C Compiler
tedgoodridgejr@acm.org said:
> Again this is my frustration with the linux community. As for help,
> get RTFM, RTFM, RTFM. I was asking for people with _real_ experiences
> with CC, and actual assistance.
Who do you think _wrote_ the aforementioned F. Manual? Someone with
real experience perhaps? And what do you think they wrote it for?
> Have *YOU* actually tried to compile it with CCC? How do you know
> how portable something is without trying it.
I tried it. It exceeded my boredom threshold - to be honest, X code
makes
me queasy and I couldn't be bothered to find and read the Compaq manuals
to work out what their compiler was whinging about.
> GCC coming out ahead? Compaq states that CCC gets up to a 30% bonus
> for non floating point programs. 30% is well worth the effort.
> Again, actual help with my question might be more appreciated than
> telling me my attempts are misguided.
Your attempt isn't misguided. Compiling X with CCC would be interesting.
But
you do need to give reports that people can at least _attempt_ to help
you
with - don't just report 'it didn't work'. Quote the command line it
used
and the _precise_ error(s).
--
dwmw2
_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C Compiler
2002-03-09 0:42 ` Ted Goodridge, Jr
@ 2002-03-09 1:04 ` Uncle George
0 siblings, 0 replies; 19+ messages in thread
From: Uncle George @ 2002-03-09 1:04 UTC (permalink / raw)
To: axp-list
I, myself would:
1) Take the src RPM from redhat, install the source, and rpm -bc on the
.spec file in redhat/SPEC
2) Once you know that you have the X/spec/rpm file working ( i think you
will need some 500meg for it all ), you can edit the spec file. Your
would in essence add in the makefile build flags "CC=ccc CFLAGS=-O2 --
and whatever other ccc flags ) in the build section . Hopefully that
will build all the makefiles ( via ./configure ) with ccc as the c
compiler, and your CFLAGS as your options.
3) do again the rpm -bc for the altered spec file.
4) Somewhere along the way, there is going to be some 'link'ing, which
may not be what ccc needs to get it going. So I suspect its going to
bomb.
5) repeat steps 3,4,5 as often as necessary to make it go the way you
want. You might also want to look at the src's for a Digital Unix port
-- maybe the flags, and linkages will be of help there.
goo luck, its going to be time consuming, so see ya in april :-}
/gat
"Ted Goodridge, Jr" wrote:
>
> I'm sorry about my outburst, it came after a long frustrating day.
> About the RTFM, see the point is, I usually already have read the manual
> before I ask for help. That's why hearing 'read the manual' on these
> lists was touched off a nerve.
>
> This evening/tomorrow/weekend I'm going to make another attempt to
> compile X with ccc. Someone suggested I edit the top level makefile?
> Changing the environment variable "CC" to ccc didn't affect the build
> process, which is the normal step the Compaq faq suggests.
>
> The first way I attempted to build X with ccc was to just create a
> symbolic link called gcc and point that to ccc. (This was the only way
> I could get other programs to compile which would not accept ccc as the
> compiler.) The build failed rather early. I'll get the exact error to
> those who are interested. (Please email me directly if you are willing
> to help with this, that was the original attempt of my first email on
> this subject.)
>
> Ted
> -----Original Message-----
> From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
> Behalf Of David Woodhouse
> Sent: Friday, March 08, 2002 5:57 PM
> To: axp-list@redhat.com
> Subject: Re: Compaq C Compiler
>
> tedgoodridgejr@acm.org said:
> > Again this is my frustration with the linux community. As for help,
> > get RTFM, RTFM, RTFM. I was asking for people with _real_ experiences
> > with CC, and actual assistance.
>
> Who do you think _wrote_ the aforementioned F. Manual? Someone with
> real experience perhaps? And what do you think they wrote it for?
>
> > Have *YOU* actually tried to compile it with CCC? How do you know
> > how portable something is without trying it.
>
> I tried it. It exceeded my boredom threshold - to be honest, X code
> makes
> me queasy and I couldn't be bothered to find and read the Compaq manuals
> to work out what their compiler was whinging about.
>
> > GCC coming out ahead? Compaq states that CCC gets up to a 30% bonus
> > for non floating point programs. 30% is well worth the effort.
> > Again, actual help with my question might be more appreciated than
> > telling me my attempts are misguided.
>
> Your attempt isn't misguided. Compiling X with CCC would be interesting.
> But
> you do need to give reports that people can at least _attempt_ to help
> you
> with - don't just report 'it didn't work'. Quote the command line it
> used
> and the _precise_ error(s).
>
> --
> dwmw2
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C Compiler
2002-03-08 22:30 Compaq C Compiler Ted Goodridge
2002-03-08 23:56 ` David Woodhouse
@ 2002-03-09 1:07 ` W Bauske
2002-03-10 4:50 ` George France
1 sibling, 1 reply; 19+ messages in thread
From: W Bauske @ 2002-03-09 1:07 UTC (permalink / raw)
To: axp-list
Ted Goodridge wrote:
>
> Again this is my frustration with the linux community. As for help, get
> RTFM, RTFM, RTFM. I was asking for people with _real_ experiences with CC,
> and actual assistance.
>
Best to ask a proper question. Saying it doesn't work is useless.
Grab the output from your test compile and post the relevant portion
where it failed. Without it, you get generic comments. With a specific
question, you're more likely to get an answer.
>
> >>> OTOH it is higly doubtful that it is worth to bother unless you consider
> >>> that learning experience in portable programming and in how XFree86
> >>> sources are put together. This is a floting point, and a floating point
> >>> _libraries_, which make the biggest difference between ccc and gcc. In
> >>> other situations differences are rather small and not that infrequently
> >>> gcc comes ahead.
> >>>
> GCC coming out ahead? Compaq states that CCC gets up to a 30% bonus for non
> floating point programs. 30% is well worth the effort. Again, actual help
> with my question might be more appreciated than telling me my attempts are
> misguided.
>
gcc is better than you think. I've never seen the level of performance
improvements Compaq quote except with FP codes. The key is "UP TO 30%".
ccc can in fact be slower than gcc. He's just warning you not to get your
hopes up. They also are comparing against an older version of gcc.
Wes
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C Compiler
2002-03-09 1:07 ` W Bauske
@ 2002-03-10 4:50 ` George France
2002-03-10 7:00 ` W Bauske
0 siblings, 1 reply; 19+ messages in thread
From: George France @ 2002-03-10 4:50 UTC (permalink / raw)
To: axp-list, W Bauske
On Friday 08 March 2002 20:07, W Bauske wrote:
>
> gcc is better than you think. I've never seen the level of performance
> improvements Compaq quote except with FP codes. The key is "UP TO 30%".
> ccc can in fact be slower than gcc. He's just warning you not to get your
> hopes up. They also are comparing against an older version of gcc.
>
It has been my experience that ccc performs much better than gcc. It has also
been my experience that the people that do not see an improvements in levels
of performance with ccc are probably not using the correct switches with ccc.
Best Regards,
--George
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C Compiler
2002-03-10 4:50 ` George France
@ 2002-03-10 7:00 ` W Bauske
2002-03-11 18:33 ` George France
0 siblings, 1 reply; 19+ messages in thread
From: W Bauske @ 2002-03-10 7:00 UTC (permalink / raw)
To: axp-list
George France wrote:
>
> On Friday 08 March 2002 20:07, W Bauske wrote:
> >
> > gcc is better than you think. I've never seen the level of performance
> > improvements Compaq quote except with FP codes. The key is "UP TO 30%".
> > ccc can in fact be slower than gcc. He's just warning you not to get your
> > hopes up. They also are comparing against an older version of gcc.
> >
>
> It has been my experience that ccc performs much better than gcc. It has also
> been my experience that the people that do not see an improvements in levels
> of performance with ccc are probably not using the correct switches with ccc.
>
And how much of your code's time is spent doing FP work? If it's not
FP, I'd be curious what you're doing with Alphas and gaining lots
of performance over gcc.
Wes
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C Compiler
2002-03-10 7:00 ` W Bauske
@ 2002-03-11 18:33 ` George France
2002-03-11 21:42 ` W Bauske
0 siblings, 1 reply; 19+ messages in thread
From: George France @ 2002-03-11 18:33 UTC (permalink / raw)
To: axp-list, W Bauske
On Sunday 10 March 2002 02:00, W Bauske wrote:
> And how much of your code's time is spent doing FP work? If it's not
> FP, I'd be curious what you're doing with Alphas and gaining lots
> of performance over gcc.
>
Hello Wes,
On Alpha systems most of my applications are cluster related and customer
specific, so I can not really chat about them. Overall, I do see about a 20%
integer performance improvement with ccc over gcc 2.96.x. I believe that gcc
3.1.x when released may have improved integer performance on Alpha.
I usually use:
ccc -arch ev6 -fast -O4 ONESTEP
-arch ev6
I do not want to use the ev4/5 instruction set nor scheduling.
-fast
Make certain that ccc is using the byte/word instructions.
As an example, I downloaded nbench 2.1 from
http://www.tux.org/~mayer/linux/bmark.html and tried it against gcc 2.96 on a
RH 7.0 system running on a Digital Personal Workstation 500a (EV5/6 500).
Using the ccc compiler, but adding -fast, and using gcc with -O5 I get:
------------
ccc -fast -noifo -lm -DLINUX emfloat.c misc.c nbench0.c nbench1.c
sysspec.c emfloat.c:
misc.c:
nbench0.c:
nbench1.c:
sysspec.c:
../a.out | tee -a stdout.log
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 : 283.94 : 7.28 : 2.39
STRING SORT : 23.912 : 10.68 : 1.65
BITFIELD : 5.5362e+07 : 9.50 : 1.98
FP EMULATION : 21.819 : 10.47 : 2.42
FOURIER : 12810 : 14.57 : 8.18
ASSIGNMENT : 2.4346 : 9.26 : 2.40
IDEA : 479.47 : 7.33 : 2.18
HUFFMAN : 355.02 : 9.84 : 3.14
NEURAL NET : 7.5143 : 12.07 : 5.08
LU DECOMPOSITION : 182.77 : 9.47 : 6.84
==========================ORIGINAL BYTEMARK
RESULTS========================== INTEGER INDEX : 9.102
FLOATING-POINT INDEX: 11.852
Baseline (MSDOS*) : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA
BELOW=============================== C compiler : ccc-6.2.9.505-1
Red Hat Linux release 7.0 (Guinness) libc : glibc-2.1.95-2
MEMORY INDEX : 1.990
INTEGER INDEX : 2.508
FLOATING-POINT INDEX: 6.574
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.
------------
gcc -O5 -lm -DLINUX emfloat.c misc.c nbench0.c nbench1.c sysspec.c
../a.out | tee -a stdout.log
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 : 260.13 : 6.67 : 2.19
STRING SORT : 23.436 : 10.47 : 1.62
BITFIELD : 5.8679e+07 : 10.07 : 2.10
FP EMULATION : 12.505 : 6.00 : 1.38
FOURIER : 2004 : 2.28 : 1.28
ASSIGNMENT : 2.4413 : 9.29 : 2.41
IDEA : 530.37 : 8.11 : 2.41
HUFFMAN : 224.51 : 6.23 : 1.99
NEURAL NET : 1.751 : 2.81 : 1.18
LU DECOMPOSITION : 111.54 : 5.78 : 4.17
==========================ORIGINAL BYTEMARK
RESULTS========================== INTEGER INDEX : 7.934
FLOATING-POINT INDEX: 3.334
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.0) libc : glibc-2.1.95-2
MEMORY INDEX : 2.017
INTEGER INDEX : 1.952
FLOATING-POINT INDEX: 1.849
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.
This shows ccc to be about 20% faster integer and more than 300% faster
float, very slightly slower in memory (by less than the claimed accuracy
of the tests).
I did not verify whether or not the results were correct...
BTW, I did not use the Makefile, as that was the reason it didn't
show useful information about the compiler and libc versions.
Instead, I wrote a little sh script to compile/link/run using
a specified compile/link command line in a fresh directory that
it creates.
Every day I build the alpha toolchains (binutils, gcc (c, c++, etc...),
glibc, gdb, etc...) from the head 2.95.x, 3.0.x and main gcc cvs trees. If I
get some time this week maybe I should write a script to run benchmarks on
the results and compare them to ccc. Does any body have some suggestions as
to what would make good compiler benchmarks?
I hope this helps.
Best Regards,
--George
^ permalink raw reply [flat|nested] 19+ messages in thread* Re: Compaq C Compiler
2002-03-11 18:33 ` George France
@ 2002-03-11 21:42 ` W Bauske
2002-03-11 22:51 ` Peter Petrakis
0 siblings, 1 reply; 19+ messages in thread
From: W Bauske @ 2002-03-11 21:42 UTC (permalink / raw)
To: axp-list
George France wrote:
>
> On Sunday 10 March 2002 02:00, W Bauske wrote:
> > And how much of your code's time is spent doing FP work? If it's not
> > FP, I'd be curious what you're doing with Alphas and gaining lots
> > of performance over gcc.
> >
>
> Hello Wes,
>
> On Alpha systems most of my applications are cluster related and customer
> specific, so I can not really chat about them. Overall, I do see about a 20%
> integer performance improvement with ccc over gcc 2.96.x. I believe that gcc
> 3.1.x when released may have improved integer performance on Alpha.
>
> I usually use:
>
> ccc -arch ev6 -fast -O4 ONESTEP
>
> -arch ev6
> I do not want to use the ev4/5 instruction set nor scheduling.
>
> -fast
> Make certain that ccc is using the byte/word instructions.
>
>
No surprises.
> As an example, I downloaded nbench 2.1 from
> http://www.tux.org/~mayer/linux/bmark.html and tried it against gcc 2.96 on a
> RH 7.0 system running on a Digital Personal Workstation 500a (EV5/6 500).
> Using the ccc compiler, but adding -fast, and using gcc with -O5 I get:
>
All I'll say about this benchmark is it's not what I run in production
and is not the most well tuned code around.
Everything I build has been tuned against a minimum of 4 computer architectures.
Ultrasparc/Alpha/POWER3+/P4/Athlon XP are used currently. I do mean heavily checked
and rechecked with a bias toward the machine that currently dominates my production
environment. I'll recode an algorithm if I have to to make it run well.
X is sufficiently mature to have gone through as much tuning as I normally do
on my codes so I expect X's performance characteristics to be similar to my
observations, not nbench's behavior.
What I mean by that is that I've incorporated tricks the compiler would use
into the source so it leaves little left for the compiler to do. The main things
I expect a compiler to do are instruction scheduling and efficient memory access.
A good math lib is nice too.
Things like common sub-expression elimination, loop reordering, constants moved
out of loops, loop unrolling, etc., are already in the source code.
Wes
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Compaq C Compiler
2002-03-11 21:42 ` W Bauske
@ 2002-03-11 22:51 ` Peter Petrakis
2002-03-12 0:54 ` W Bauske
0 siblings, 1 reply; 19+ messages in thread
From: Peter Petrakis @ 2002-03-11 22:51 UTC (permalink / raw)
To: axp-list
> X is sufficiently mature to have gone through as much tuning as I
> normally do
> on my codes so I expect X's performance characteristics to be
> similar to my
> observations, not nbench's behavior.
If that is true then from my experience with X, gcc must be doing
a horrible job of optimizing on Alpha. 2D performance (nevermind 3D) is
abysmal
compared to the intel processors of 2 years ago nevermind today.
I'm using a 600Mhz LX as my baseline. It's one more reason to
get X to compile with ccc.
Peter
--
www.linuxalpha.org www.alphadriven.org
Peter Petrakis Warrior/Engineer voodoo@alphadriven.org
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C Compiler
2002-03-11 22:51 ` Peter Petrakis
@ 2002-03-12 0:54 ` W Bauske
2002-03-13 4:30 ` Peter Petrakis
0 siblings, 1 reply; 19+ messages in thread
From: W Bauske @ 2002-03-12 0:54 UTC (permalink / raw)
To: axp-list
Peter Petrakis wrote:
>
> > X is sufficiently mature to have gone through as much tuning as I
> > normally do
> > on my codes so I expect X's performance characteristics to be
> > similar to my
> > observations, not nbench's behavior.
>
> If that is true then from my experience with X, gcc must be doing
> a horrible job of optimizing on Alpha. 2D performance (nevermind 3D) is
> abysmal
> compared to the intel processors of 2 years ago nevermind today.
> I'm using a 600Mhz LX as my baseline. It's one more reason to
> get X to compile with ccc.
>
Until you run a profile against X and Xlibs, it would be hard to say
what's really wrong. Unfortunately, I think the current architecture
of X makes profiling hard to do because it does dynamic linking of
modules. Anyone ever try turn on "-pg" and see what's up? Could also
try attaching gdb to X and starting up the offending program and see
where X is at by interrupting and looking at what routines it's
spending time in. Have to have non-stripped binaries though and those
dynamic links may still be hard to track. Also, you probably want to
login from another system and do the gdb since the screen will be
non-responsive when you interrupt X.
As to comparing an Alpha to x86, Couple possible reasons. First,
I'd bet there is some asm floating around for x86. Second, whether you
like it or not, Mhz do matter. Have you compared the performance of a
PIII 600Mhz to your 600Mhz Alpha and it still loses badly? I would expect
a P4 or Athlon with clock rates in excess of a Ghz to have no problem
beating your Alpha or my XP1000's for that matter.
Wes
^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: Compaq C Compiler
2002-03-12 0:54 ` W Bauske
@ 2002-03-13 4:30 ` Peter Petrakis
0 siblings, 0 replies; 19+ messages in thread
From: Peter Petrakis @ 2002-03-13 4:30 UTC (permalink / raw)
To: axp-list
> Until you run a profile against X and Xlibs, it would be hard to say
That is going to be alot work in just getting the backstory on well
those things 'should' work. Unless you're an Xfree developer.
> what's really wrong. Unfortunately, I think the current architecture
> of X makes profiling hard to do because it does dynamic linking of
> modules. Anyone ever try turn on "-pg" and see what's up? Could also
Nope, not yet.
> try attaching gdb to X and starting up the offending program and see
> where X is at by interrupting and looking at what routines it's
> spending time in. Have to have non-stripped binaries though and those
> dynamic links may still be hard to track. Also, you probably want to
> login from another system and do the gdb since the screen will be
> non-responsive when you interrupt X.
I'm familiar with these techniuqes from work with E.
> As to comparing an Alpha to x86, Couple possible reasons. First,
> I'd bet there is some asm floating around for x86. Second, whether you
Yes definiatly and next to none on the Alpha side. Probably not even MVI.
There's no good reason why someone (I guess me since I'm sooooo interested)
couldnt write a set of MVI macros for pre EV6 machines. They're matrix
operations for the most part and as long as the macros are schedualed for
their respective processors there will be a performance gain. Actually,
one could implement that in the kernel like the EV5* compat patch
(to run Civ CTP :-)) that implemented MVI for all Alphas.
> like it or not, Mhz do matter. Have you compared the performance of a
> PIII 600Mhz to your 600Mhz Alpha and it still loses badly? I would expect
I'm losing against my P "II" 400 (no katmai) both with identical video
cards,
voodoo3s. The 2D performance is night and day. Atleast I notice it.
> a P4 or Athlon with clock rates in excess of a Ghz to have no problem
> beating your Alpha or my XP1000's for that matter.
Agreed though I think a properly profiled and optimized X on EV6
that is leveraging MVI will eat thier lunch and then some.
Peter
--
www.linuxalpha.org www.alphadriven.org
Peter Petrakis Warrior/Engineer voodoo@alphadriven.org
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."
^ permalink raw reply [flat|nested] 19+ messages in thread
[parent not found: <20020309170102.1A3BF3EF4F@listman.redhat.com>]
* Re: Compaq C Compiler
[not found] <20020309170102.1A3BF3EF4F@listman.redhat.com>
@ 2002-03-09 17:53 ` Stephen Lewis
0 siblings, 0 replies; 19+ messages in thread
From: Stephen Lewis @ 2002-03-09 17:53 UTC (permalink / raw)
To: axp-list
Ted,
I concur with George, this is no small project.
The X4.2 sources took me 3.6 hours to compile when everything
was setup correctly. (PWS 500au) The log file (and you will need
to look through this) is over 54,000 lines.
The directory holding source AND .o files
will expand beyond 680 megs! I only compiled the code for the
cards I have and this does not include the fonts. Some of this may
go well but expect to spend a lot of time on the modules that
don't compile. 'make' won't use environment vars unless you ask it
to (make -e) and will stop at the first error unless you tell it
not to (make -k) Try something smaller first then when you understand
the issues and the process then come back to X,
Stephen Lewis
>
> Re: Compaq C Compiler
> Date:
> Fri, 08 Mar 2002 20:04:43 -0500
> From:
> Uncle George <gatgul@voicenet.com>
> Reply-To:
> axp-list@redhat.com
> Organization:
> GatWorks.com
> To:
> axp-list@redhat.com
> References:
> 1
>
>
>
> I, myself would:
>
> 1) Take the src RPM from redhat, install the source, and rpm -bc on
> the
> .spec file in redhat/SPEC
> 2) Once you know that you have the X/spec/rpm file working ( i
> think you
> will need some 500meg for it all ), you can edit the spec file. Your
> would in essence add in the makefile build flags "CC=ccc CFLAGS=-O2 --
> and whatever other ccc flags ) in the build section . Hopefully that
> will build all the makefiles ( via ./configure ) with ccc as the c
> compiler, and your CFLAGS as your options.
> 3) do again the rpm -bc for the altered spec file.
> 4) Somewhere along the way, there is going to be some 'link'ing,
> which
> may not be what ccc needs to get it going. So I suspect its going to
> bomb.
> 5) repeat steps 3,4,5 as often as necessary to make it go
> the way you
> want. You might also want to look at the src's for a Digital Unix port
> -- maybe the flags, and linkages will be of help there.
>
> goo luck, its going to be time consuming, so see ya in april :-}
> /gat
>
>
> "Ted Goodridge, Jr" wrote:
> >
> > I'm sorry about my outburst, it came after a long frustrating day.
> > About the RTFM, see the point is, I usually already have read the
> manual
> > before I ask for help. That's why hearing 'read the manual' on these
> > lists was touched off a nerve.
> >
> > This evening/tomorrow/weekend I'm going to make another attempt to
> > compile X with ccc. Someone suggested I edit the top level makefile?
> > Changing the environment variable "CC" to ccc didn't affect the build
> > process, which is the normal step the Compaq faq suggests.
> >
> > The first way I attempted to build X with ccc was to just create a
> > symbolic link called gcc and point that to ccc. (This was the only
> way
> > I could get other programs to compile which would not accept ccc as
> the
> > compiler.) The build failed rather early. I'll get the exact error
> to
> > those who are interested. (Please email me directly if you are
> willing
> > to help with this, that was the original attempt of my first email on
> > this subject.)
> >
> > Ted
> > -----Original Message-----
> > From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com] On
> > Behalf Of David Woodhouse
> > Sent: Friday, March 08, 2002 5:57 PM
> > To: axp-list@redhat.com
> > Subject: Re: Compaq C Compiler
> >
> > tedgoodridgejr@acm.org said:
> > > Again this is my frustration with the linux community. As for help,
> > > get RTFM, RTFM, RTFM. I was asking for people with _real_
> experiences
> > > with CC, and actual assistance.
> >
> > Who do you think _wrote_ the aforementioned F. Manual? Someone with
> > real experience perhaps? And what do you think they wrote it for?
> >
> > > Have *YOU* actually tried to compile it with CCC? How do you know
> > > how portable something is without trying it.
> >
> > I tried it. It exceeded my boredom threshold - to be honest, X code
> > makes
> > me queasy and I couldn't be bothered to find and read the Compaq
> manuals
> > to work out what their compiler was whinging about.
> >
> > > GCC coming out ahead? Compaq states that CCC gets up to a 30% bonus
> > > for non floating point programs. 30% is well worth the effort.
> > > Again, actual help with my question might be more appreciated than
> > > telling me my attempts are misguided.
> >
> > Your attempt isn't misguided. Compiling X with CCC would be
> interesting.
> > But
> > you do need to give reports that people can at least _attempt_ to help
> > you
> > with - don't just report 'it didn't work'. Quote the command line it
> > used
> > and the _precise_ error(s).
> >
> > --
> > dwmw2
> >
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
> >
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
>
>
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Compaq C Compiler
@ 2002-03-11 18:22 William H. Magill
0 siblings, 0 replies; 19+ messages in thread
From: William H. Magill @ 2002-03-11 18:22 UTC (permalink / raw)
To: axp-list
> > >>> OTOH it is higly doubtful that it is worth to bother unless you consider
> > >>> that learning experience in portable programming and in how XFree86
> > >>> sources are put together. This is a floting point, and a floating point
> > >>> _libraries_, which make the biggest difference between ccc and gcc. In
> > >>> other situations differences are rather small and not that infrequently
> > >>> gcc comes ahead.
> > >>>
> > GCC coming out ahead? Compaq states that CCC gets up to a 30% bonus for non
> > floating point programs. 30% is well worth the effort. Again, actual help
> > with my question might be more appreciated than telling me my attempts are
> > misguided.
>
> gcc is better than you think. I've never seen the level of performance
> improvements Compaq quote except with FP codes. The key is "UP TO 30%".
> ccc can in fact be slower than gcc. He's just warning you not to get your
> hopes up. They also are comparing against an older version of gcc.
>
Ok... here's a different take on the question/answer - -
Why bother expending efforts on converting software to compile under CCC
now that the ccc complier technology has been sold to Intel, and (I assume)
that there will never be another rev of the compilers made available to the
Alpha Linux folks.
At one time the explanation was - "Gcc has a poor Alpha code generator."
Back then, people wanted Compaq to expend energy getting gcc to generate
better Alpha code, rather than making their own proprietary compiler - ccc,
available to Linux. But now it appears that the ccc availability was simply
a flash-in-the-pan. It is no longer Compaq's technology to "relase" to
the world.
--
www.tru64unix.compaq.com
www.tru64.org
T.T.F.N.
William H. Magill Senior Systems Administrator
Information Services and Computing (ISC) Networking & Telecommunications
University of Pennsylvania Internet: magill@isc.upenn.edu
http://www.isc-net.upenn.edu/~magill/ magill@acm.org
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2002-03-13 4:36 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-07 19:42 Compaq C compiler Ted Goodridge, Jr
2002-03-07 19:53 ` Ross A Knepper
2002-03-07 21:56 ` Michal Jaegermann
2002-03-08 3:38 ` Ted Goodridge, Jr
[not found] <20020308060803.4DB073F764@listman.redhat.com>
2002-03-08 19:01 ` Stephen Lewis
-- strict thread matches above, loose matches on Subject: below --
2002-03-08 22:30 Compaq C Compiler Ted Goodridge
2002-03-08 23:56 ` David Woodhouse
2002-03-09 0:42 ` Ted Goodridge, Jr
2002-03-09 1:04 ` Uncle George
2002-03-09 1:07 ` W Bauske
2002-03-10 4:50 ` George France
2002-03-10 7:00 ` W Bauske
2002-03-11 18:33 ` George France
2002-03-11 21:42 ` W Bauske
2002-03-11 22:51 ` Peter Petrakis
2002-03-12 0:54 ` W Bauske
2002-03-13 4:30 ` Peter Petrakis
[not found] <20020309170102.1A3BF3EF4F@listman.redhat.com>
2002-03-09 17:53 ` Stephen Lewis
2002-03-11 18:22 William H. Magill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox