> > But for allocations of "small" sizes alloca() is not more dangerous than > > calling another function. > > How do you decide what a small size is?
How do you decide when it's reasonable to allocate a structure or fixed-sized buffer on the stack? It's really the same problem, and judgement and common-sense apply (e.g., a recursively called function needs to minimize stack allocations). -- meem _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
