Mapping calls to declarations
James Montgomerie
jrmg@dcs.ed.ac.uk
Wed Aug 15 01:13:00 GMT 2001
on 15/8/01 1:09 am, Daniel Berlin at dan@cgsoftware.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.
Jamie.
More information about the Gcc
mailing list