* Re: Your UDB Questions (new)
[not found] <199701010746.CAA15837@mailhost.intac.com>
@ 1997-01-01 12:48 ` Jim Nance
1997-01-01 16:46 ` Michal Jaegermann
0 siblings, 1 reply; 3+ messages in thread
From: Jim Nance @ 1997-01-01 12:48 UTC (permalink / raw)
> > Once the compiler is
> >optimized will the Alpha be faster or is the 32/64 bit difference still
> >going to be a problem?
> >
> I'm probably not the best person to ask this question of, but I think the
> answer
> lies in the speed of the Digital Unix compiler. I think it is reasonable
> to
> assume that it is pretty well optimized (for the price it ought to be) and
> that with the best possible optimization GCC will run at this speed.
>
> I have only read that the DU C compiler is faster, and I have no hard data
> on its speed.
OK, this is a good idea. I just ran a test compiling the gnuplot 3.5
sources on an alphastation 500/500 under Digital Unix 4.0. My installation
of gcc uses the DU assembler and (probably) their linker. I hacked the
Makefile so the autoconf script would not run each time. It looks like
the Digital Unix compiler runs in about 1/2 the time of gcc:
gcc:
43.239u 3.444s 1:02.81 74.3% 1+21k 289+1744io 81pf+0w
43.304u 3.481s 0:57.48 81.3% 1+21k 1+1760io 0pf+0w
cc:
21.356u 1.841s 0:26.18 88.5% 0+56k 1+351io 1pf+0w
21.338u 1.920s 0:27.27 85.2% 0+56k 1+371io 0pf+0w
Jim
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Your UDB Questions (new)
1997-01-01 12:48 ` Your UDB Questions (new) Jim Nance
@ 1997-01-01 16:46 ` Michal Jaegermann
1997-01-01 20:51 ` Jim Nance
0 siblings, 1 reply; 3+ messages in thread
From: Michal Jaegermann @ 1997-01-01 16:46 UTC (permalink / raw)
>
> It looks like
> the Digital Unix compiler runs in about 1/2 the time of gcc:
>
> gcc:
> 43.239u 3.444s 1:02.81 74.3% 1+21k 289+1744io 81pf+0w
^^^^^^^^^^^
> cc:
> 21.356u 1.841s 0:26.18 88.5% 0+56k 1+351io 1pf+0w
^^^^^^^^^^
Hm, these numbers are highly significant, especially if you have
a slower controller/disk combo. Your disk speed will affect
timings to a great degree. I wonder why so many page faults
with gcc and so much of IO. gcc is known to eat any amount of
memory in its optimizer :-), but these look high.
Were these tests run on a similarly loaded machine? Multiple
times (caching may affect results)? Did you try to use --pipe
option with gcc? Does it has any effect? How cc reacts if you
try deeper optimizations with it ('-O3 -tune host', say)?
Michal
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Your UDB Questions (new)
1997-01-01 16:46 ` Michal Jaegermann
@ 1997-01-01 20:51 ` Jim Nance
0 siblings, 0 replies; 3+ messages in thread
From: Jim Nance @ 1997-01-01 20:51 UTC (permalink / raw)
> > gcc:
> > 43.239u 3.444s 1:02.81 74.3% 1+21k 289+1744io 81pf+0w
> ^^^^^^^^^^^
> > cc:
> > 21.356u 1.841s 0:26.18 88.5% 0+56k 1+351io 1pf+0w
> Hm, these numbers are highly significant, especially if you have
> a slower controller/disk combo. Your disk speed will affect
> timings to a great degree. I wonder why so many page faults
> with gcc and so much of IO. gcc is known to eat any amount of
> memory in its optimizer :-), but these look high.
OK, I should have been more explicit. The these numbers come from
running the command:
time make
and
time make 'CC=cc -std1 -newc'
With the gnuplot-3.5 source and an empty autoconfg file.
I ran each test twice, and included both sets of numbers. The one you
are refering to was the first run so the caches were cold. The line
right under it was the next run which should have warm caches, and
these numbers are lower. I don't have my original post in front
of me, but I think that it only ran 4 seconds faster the second time.
> Were these tests run on a similarly loaded machine? Multiple
> times (caching may affect results)? Did you try to use --pipe
> option with gcc? Does it has any effect? How cc reacts if you
> try deeper optimizations with it ('-O3 -tune host', say)?
Yes, they were both run on the same machine in the same directory.
Its running Digital Unix 4.0, 384 MB ram, fast/wide SCSI, 500 MHz
processor. I was the only person on the machine. Unfortunatly I
am using the Digital Unix assembler so I can't use -pipe.
Here are some more results, all with warm caches:
time make (defaults to gcc -O2):
43.898u 3.504s 0:58.88 80.4% 1+21k 239+1752io 0pf+0w
43.913u 3.531s 1:03.62 74.5% 1+21k 247+1767io 0pf+0w
time make CC=cc CFLAGS='-std1 -newc -O3 -tune host':
21.221u 2.007s 0:29.05 79.9% 0+56k 192+364io 0pf+0w
21.192u 2.012s 0:29.15 79.5% 0+56k 192+364io 0pf+0w
time make CC=gcc CFLAGS='':
19.194u 3.801s 0:37.21 61.7% 1+15k 219+2180io 0pf+0w
19.148u 3.815s 0:35.92 63.8% 1+15k 229+2179io 0pf+0w
time make CC=cc CFLAGS='-std1 -newc -O0':
11.483u 1.973s 0:18.75 71.7% 0+44k 221+424io 0pf+0w
11.384u 2.047s 0:17.37 77.2% 0+44k 196+406io 0pf+0w
I wish I had some suggestions for making gcc better. Unfortunatly
all I can do is provide information.
Let me know if you want me to time anything else.
Jim
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-01-01 20:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199701010746.CAA15837@mailhost.intac.com>
1997-01-01 12:48 ` Your UDB Questions (new) Jim Nance
1997-01-01 16:46 ` Michal Jaegermann
1997-01-01 20:51 ` Jim Nance
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox