From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: profiles of gcc available
Date: Tue, 12 Nov 1996 22:48:38 -0600 (CST) [thread overview]
Message-ID: <199611130448.WAA15376@atheist.tamu.edu> (raw)
In-Reply-To: <9611122251.AA10869@moene.indiv.nluug.nl>
> 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).
The thing is, see, is gcc really doesn't spend that much time playing
with the bytes. According to Jim's profiles, 4.5% of the time is spent
playing with incoming bytes (yylex); after that we always play with
tokens (ints). Unfortunately there is no single output function making
it hard to say exactly how much time is spent that way, but I don't think
I'm off in saying it isn't much.
> 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).
I suppose they needn't have been but they are. Virtually everything
done inside of gcc once things are parsed are with pointers and longs.
No, the thing to do to make gcc faster is not to worry about the I/O,
but to improve the algorithms used in the optimization phases.
r~
--
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
next prev parent reply other threads:[~1996-11-13 4:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-12 22:51 profiles of gcc available Toon Moene
1996-11-13 4:48 ` Richard Henderson [this message]
-- 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