This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: interned representation of identifiers
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: cpplib: interned representation of identifiers
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Sat, 08 Jul 2000 22:16:34 +0200
- CC: gcc-patches at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20000708115821.B264@wolery.cumb.org>
Zack Weinberg wrote:
> cpplib already creates a hash table entry for every identifier seen in
> the program. This patch goes one step further, and stores pointers to
> those entries in identifier tokens instead of their text. This
> reduces memory consumption and simplifies some interface bits
> considerably.
Perhaps I'm missing something here. In ye Ole Days the maximum length
of an identifier was 8 characters - certainly not many of them exceed
that length nowadays. Might that explain why I do not see any speedup
on alphaev6-unknown-linux-gnu, a thoroughly 8-byte pointer beast ;-)
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)