[osol-code] Re: [ksh93-integration-discuss] Trouble with "ERROR:ctfconvert:pics/wordexp.o: Couldn't parse stab "#vla0:(0,14)" (source file pics/wordexp.o)" ...
Ian Collins
ian at ianshome.com
Mon Nov 13 19:22:38 PST 2006
Alan Coopersmith wrote:
> 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.)
>
Just like C99 VLAs!
Ian
More information about the ksh93-integration-discuss
mailing list