alloca

William Aitken aitken at svax.cs.cornell.edu
Wed Aug 3 01:44:53 AEST 1988


In article <8293 at smoke.ARPA> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) 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 <aitken at svax.cs.cornell.edu>        (607)257-2542(h)
  {uw-beaver,ihnp4,vax135,decvax}!cornell!aitken      (607)255-4222(o)
  aitken at crnlcs.BITNET               700 Warren Rd. #20-2A, Ithaca, NY
  42 26'30" N 76 29'00" W                              4148 Upson Hall



More information about the Comp.lang.c mailing list