[osol-code] Re: [ksh93-integration-discuss]
Trouble with"ERROR:ctfconvert:pics/wordexp.o:
Couldn't parse stab "#vla0:(0, 14)" (sourcefile pics/wordexp.o)" ...
Garrett D'Amore
garrett_damore at tadpole.com
Tue Nov 14 07:35:15 PST 2006
Peter Memishian wrote:
> > In general |alloca()| should be avoided in portable code and for
> > perforamce reasons since some platforms implement |alloca()| via
> > |malloc()|
>
> What platform does that?
>
> --
> meem
> _______________________________________________
> opensolaris-code mailing list
> opensolaris-code at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>
Certainly not Solaris. Maybe some platform might choose to do it this
way if the compiler lacks a suitable builtin. I'm not aware of any
platform for which that is true. (malloc() would be particularly bad,
as well, since one of the things alloca() gives is automatic
destruction. Lacking compiler support, I'm not sure how you'd do that
with malloc().)
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191
More information about the ksh93-integration-discuss
mailing list