Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!aitken From: aitken@svax.cs.cornell.edu (William Aitken) Newsgroups: comp.lang.c Subject: Re: alloca Message-ID: <19895@cornell.UUCP> Date: 2 Aug 88 15:44:53 GMT References: <3950010@eecs.nwu.edu> <62170@sun.uucp> <62363@sun.uucp> <8293@smoke.ARPA> Sender: nobody@cornell.UUCP Reply-To: aitken@svax.cs.cornell.edu (William Aitken) Organization: Cornell Univ. CS Dept, Ithaca NY Lines: 18 In article <8293@smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: > >The C vendors aren't evil (?) either; requiring support for alloca() >does impose an undue burden on implementations on some architectures. > Could someone give a concrete example of an architecture on which alloca is difficult to implement, and explain what it is that makes automatic arrays possible, but alloca difficult? If C were to provide a means to declare an automatic array with size that depended on an integer valued argument, many of the uses of alloca would disappear; would this be any easier to implement than alloca? Why? ---- Bill. William E. Aitken (607)257-2542(h) {uw-beaver,ihnp4,vax135,decvax}!cornell!aitken (607)255-4222(o) aitken@crnlcs.BITNET 700 Warren Rd. #20-2A, Ithaca, NY 42 26'30" N 76 29'00" W 4148 Upson Hall