[ksh93-integration-discuss] Trouble with "ERROR:ctfconvert:pics/wordexp.o: Couldn't parse stab "#vla0:(0,14)" (source file pics/wordexp.o)" ...
Alan Coopersmith
alan.coopersmith at sun.com
Mon Nov 13 19:03:22 PST 2006
Roland Mainz wrote:
> Glenn Fowler wrote:
>> On Mon, 13 Nov 2006 09:39:28 +0100 Roland Mainz wrote:
>> note that this is a non-ast problem
>> no ast code uses
>>
>> int foo = some_size;
>> some_type bar[foo];
>
> Yes, I know... but remember the prototype code I send you...
> The idea is to use the stack for such temporary allocations since it has
> significant advantages over memory from the heap, including:
Isn't that what alloca() is for? (Ignoring the simple fact that alloca()
is actually horribly broken since it never tells you if it's failed, just
lets you corrupt your stack when you ask for too much memory.)
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
More information about the ksh93-integration-discuss
mailing list