This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFC] Suggested replacement for specs and switch handling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]