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 > [email protected] > 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 _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
