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: Mapping calls to declarations


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.


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