Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!cs.utexas.edu!utastro!bigtex!texbell!egsner!eric From: eric@egsner.UUCP (Eric Schnoebelen) Newsgroups: comp.unix.microport Subject: Re: Implementation of alloca() ? Message-ID: <125@egsner.UUCP> Date: 28 Dec 88 14:08:16 GMT References: <357@cocktrice.UUCP> <10770010@hpcupt1.HP.COM> Reply-To: eric@egsner.UUCP (Eric Schnoebelen) Organization: Central Iowa (Model) Railroad, Lewisville, Tx. Lines: 21 In article <10770010@hpcupt1.HP.COM> vandys@hpcupt1.HP.COM (Andrew Valencia(Seattle)) writes: >/ hpcupt1:comp.unix.microport / mdm@cocktrice.UUCP (Mike Mitchell) / 9:03 am Dec 22, 1988 / >>Does any one have an implementation of alloca() which will allocate >>room on the stack and free it upon the return from a routine? > > The GNU Awk (gawk) distribution includes an assembly implementation >for the 386. Conversion to 286 is left as an excercise for the reader :->. > > Andy Try linking in libPW from /lib/{small|large}. It includes a working alloca. I have used it with gnu make, gnu diff, etc. Eric. -- Eric Schnoebelen egsner!eric@texbell.uucp ...!texbell!egsner!eric egs@u-word.dallas.tx.us ...!killer!u-word!egs "We Apologize for the Inconvenience"