This is the mail archive of the
mailing list for the GCC project.
Re: Mapping calls to declarations
- To: Daniel Berlin <dan at cgsoftware dot com>,Richard Henderson <rth at redhat dot com>
- Subject: Re: Mapping calls to declarations
- From: James Montgomerie <jrmg at dcs dot ed dot ac dot uk>
- Date: Wed, 15 Aug 2001 09:13:31 +0100
- CC: <gcc at gcc dot gnu dot org>
on 15/8/01 1:09 am, Daniel Berlin at email@example.com wrote:
> On Tue, 14 Aug 2001, Richard Henderson wrote:
>> On Tue, Aug 14, 2001 at 10:24:29PM +0100, James Montgomerie wrote:
>>> ... because it would mean imposing a hard limit on the number of
>>> function calls that can be made.
>> Uh, why do you say that? Ever heard of realloc?
Yes - that's a good point. I didn't think of it myself, however, and when
you said 'array', I assumed you meant a statically allocated one.
> And if you are really that worried, use a splay tree or hash table from
> libiberty, if only because they take care of the expanding for you.
I'll look into those too.
Thanks to both of you for the help, it's been extremely useful.