This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Suggested replacement for specs and switch handling
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: [RFC] Suggested replacement for specs and switch handling
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 02 Jul 2001 19:23:29 -0300
- Cc: Fergus Henderson <fjh at cs dot mu dot oz dot au>, gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010702231235.A16850@daikokuya.demon.co.uk>
On Jul 2, 2001, Neil Booth <neil@daikokuya.demon.co.uk> wrote:
> Alexandre Oliva wrote:-
>> How about multiple hash-tables, one per front-end? You could
>> pre-compile each one separately, and map them all in at run-time. We
>> could also provide a tool (optionally installed?) to de-compile such a
>> hash-table, and to re-compile it.
> That means searching N hash tables simultaneously and reading N files
> in - I'm not a big fan.
Well, N is generally going to be small, and, using a small set of
predetermined hashtable sizes, you can probably compute a single
hashcode for all of them. Unless you were thinking of global perfect
hashing.
I don't think the couple of nanoseconds you're going to save with a
single global hashtable are worth the loss of separate installation of
front-ends.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me