Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: profiles of gcc available
Date: Tue, 12 Nov 96 23:51:25 +0100	[thread overview]
Message-ID: <9611122251.AA10869@moene.indiv.nluug.nl> (raw)

Thanks, Jim

However, all this information rather overwhelms me - perhaps we can  
simplify things a bit.  A compiler is (roughly) some program that  
reads a text file (i.e. a stream of bytes), transforms that to an  
intermediate representation (tree structure, in gcc's case),  
manipulates that tree of structures (optimisation passes) and writes  
the assembler output (again a stream of bytes).  Now neither bytes,  
nor the members of the various structures used in gcc internally,  
are necessarily long- or quadwords (i.e. 32 or 64 bit quantities).   
Combine that with the knowledge that not many ALPHA implementations  
support the byte/word extension (BWX) that allows direct word and  
byte load/store, and you'll arrive at the conclusion that the ALPHA  
chips are not well suited for compilation in the way gcc (and most  
compilers) do it.  I must add to this that every day I am more and  
more amazed at the compile speeds that I get using *Digital* Fortran  
on our 21064's ...

A simple example suffices - compile the following on your x86 box  
and on an ALPHA, say with -O2:

void copy(char *s, char *d)
{
        while (*d++ = *s++)
                ;
}

This code uses three instructions in the loop on my m68k machine -  
including the jump (which is one more than necessary).  I would be  
surprised if the number of instructions on an ALPHA would be less  
than ten.  On the granddaddy of supercomputers, the Cray Y-MP, it  
takes over 80 instructions.

Cheers,
Toon.

--
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

             reply	other threads:[~1996-11-12 22:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-12 22:51 Toon Moene [this message]
1996-11-13  4:48 ` profiles of gcc available Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1996-11-13 22:40 Przemek Klosowski
1996-11-13 16:41 Toon Moene
1996-11-12 13:36 Jim Nance
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox