Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!wivax!decvax!genrad!mit-eddie!mit-vax!eagle!mhuxt!mhuxi!mhuxa!houxm!hocda!spanky!burl!duke!unc!gb From: gb@unc.UUCP Newsgroups: net.unix-wizards Subject: Re: stack memory allocation Message-ID: <5553@unc.UUCP> Date: Thu, 14-Jul-83 07:28:58 EDT Article-I.D.: unc.5553 Posted: Thu Jul 14 07:28:58 1983 Date-Received: Fri, 15-Jul-83 02:01:02 EDT Lines: 57 On our 4.1BSD system, the command find /usr/src/cmd -exec grep "\" "{}" \; -print locates the following references to alloca. ----------------------------------------------- * Note: because the routine "alloca" is not portable, TUBESIZE cmd/ex/ex_tune.h char *alloca(),*sp(); arglist = (int *) alloca((nargs + 1) * sizeof(int)); cmd/lisp/franz/eval2.c char ch, *strb, strbb[BUFSIZ], *alloca(); /* temporary string buffer */ strb = alloca(count); cmd/lisp/franz/lam5.c register char *string; char *alloca(); string = alloca(count); cmd/lisp/franz/lam6.c char *sp(), *alloca(); work = (int *)alloca((top-bot)*2*sizeof(int)); cmd/lisp/franz/pbignum.c int *sp(), *alloca(), d, negflag = 0, m, n, carry, rem, qhat, j; qbot = alloca(toint(utop) + toint(vbot) - 2 * toint(ubot)); cmd/lisp/franz/divbig.c char *strtbl,*alloca(); strtbl = alloca(strsize); strtbl = alloca(strsize); cmd/lisp/franz/ffasl.c char *alloca(); /* stack space allocator */ string_core_org = alloca(string_size - 4); binder_core_org = alloca(lit_end - bind_org); cmd/lisp/franz/nfasl.c char *alloca(); base = handy = (double *) alloca(count); cmd/lisp/franz/vax.c xcreat.c+s:char *alloca(); xcreat.c+s: d = alloca(size(name)); xmsg.c+s:char *alloca(); xmsg.c+s: str = alloca(size(file)); cmd/local/sccs/s4/FILES char *alloca(); d = alloca(size(name)); cmd/local/sccs/s4/xcreat.c+s char *alloca(); str = alloca(size(file)); cmd/local/sccs/s4/xmsg.c+s char *alloca(); /* forwar decl */ v = ip = alloca(BUFSIZ); v = ip = (int *) alloca(BUFSIZ); cmd/local/sccs/com/dodelt.c+s char *alloca(); /* forward */ xp = p = alloca(size(s)); cmd/local/sccs/com/pf_ab.c+s --------------------------------------------- Gary Bishop gb.unc@udel-relay unc!gb