From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Buettner To: gdb@sources.redhat.com Subject: Re: [RFA] alloca coding standard Date: Mon, 13 Nov 2000 12:58:00 -0000 Message-id: <1001113205812.ZM8470@ocotillo.lan> References: <200011130654.eAD6sjV16467@rtl.cygnus.com> <200011132036.eADKaev16965@rtl.cygnus.com> X-SW-Source: 2000-11/msg00134.html On Nov 13, 3:36pm, Nick Duffek wrote: > >I'd suggest to say how much is a "page", at least for a couple of > >popular architectures. > > I changed it to "1 page or 512 bytes, whichever is larger" so that > developers needn't know the page size. I think we ought to just pick a number (in bytes) and not mention pages at all. The last time I checked, the default page size on Linux/IA-64 was 16KB. It's possible to recompile the kernel to use 64KB pages. My point is that it would be possible for someone to submit patch using alloca() which meets your proposed guidelines (on the architecture upon which the patch was developed), but which aren't reasonable for generic code. Kevin