From dmr@bell-lbs.com Wed Feb 2 00:02:18 2000 Path: news.eng.us.uu.net!uunet!ffx.uu.net!nntphub.cb.lucent.com!news From: Dennis Ritchie Newsgroups: comp.std.c Subject: Re: !alloca (was: Re: How's this: Where do I get a C99 compiler?) Date: Mon, 31 Jan 2000 19:08:12 +0000 Organization: Lucent Technologies, Columbus, Ohio Lines: 17 Message-ID: <3895DD9C.A1A791BB@bell-lbs.com> References: <86smkp$14cj$1@hardcore.ivn.net> <874ejd$rav$1@pegasus.csx.cam.ac.uk> <874sd5$b2o$1@pegasus.csx.cam.ac.uk> NNTP-Posting-Host: centaur.cs.bell-labs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (WinNT; U) Xref: news.eng.us.uu.net comp.std.c:32470 As a point of history, alloca was first done by Ken Thompson between the 6th and 7th edition PDP-11 systems. Because of the stack layout, this was trivial and robust against most of the obvious failures (not f(a, alloca(10), b) though.) When we started doing the Interdata port, alloca looked quite hard to do and much less robust. So I extirpated it; none of our distributions had it. Somehow, however, it had escaped, perhaps in a PWB distribution. Or perhaps it was reinvented. Dennis