Implementation of alloca() ?

Eric Schnoebelen eric at egsner.UUCP
Thu Dec 29 00:08:16 AEST 1988


In article <10770010 at hpcupt1.HP.COM> vandys at hpcupt1.HP.COM (Andrew Valencia(Seattle)) writes:
>/ hpcupt1:comp.unix.microport / mdm at 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 at texbell.uucp			...!texbell!egsner!eric
egs at u-word.dallas.tx.us				...!killer!u-word!egs
		"We Apologize for the Inconvenience"



More information about the Comp.unix.microport mailing list