[ksh93-integration-discuss] Troublewith"ERROR:ctfconvert:pics/wordexp.o:Couldn't parse stab "#vla0:(0,14)"(source file pics/wordexp.o)" ...
Roland Mainz
roland.mainz at nrubsig.org
Mon Nov 13 19:12:25 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.)
This works on Solaris - but on other platforms the results of |alloca()|
appear to come from a random number generator or something worse. And
IMO it is not "clean" to use such an interface when the language spec
itself has better ways to do it...
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
More information about the ksh93-integration-discuss
mailing list