[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using alloca

From: Akim Demaille
Subject: Re: Using alloca
Date: 18 Jan 2001 12:16:41 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)

>>>>> "Hans" == Hans Aberg <address@hidden> writes:

>> * If you try to allocate more memory than the machine can provide,
>> you don't get a clean error message.  Instead you get a fatal
>> signal like the one you would get from an infinite recursion;
>> probably a segmentation violation (*note Program Error Signals::).

Hans> I surmise that even if the OS knows how to enlarge the stack,
Hans> allocating large chunks with alloca might be slow, as the stack
Hans> then must be enlarged.

I know no system where `allocating stack' involves real work, it
usually just means increasing the frame pointer, i.e., it costs
peanuts, just an addition.

But end of the debate, this is not the place for it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]