[comp.os.msdos.programmer] alloca for MSDOS

randall@Virginia.EDU (Ran Atkinson) (11/27/90)

The alloca() function is not defined by ANSI C and is inherently non-portable
and potentially dangerous.  It cannot be implemented on some architectures 
and on others can only be implemented in a manner that is inefficient.  
It is unwise to use alloca() ever.  In the case of BISON, one would be 
better off to have it use variables off the stack or from malloc()/free() 
instead.  Such modifications have been done to BISON in the past 
with great success.

See the recent (recurring) discussion in comp.lang.c for details on why
one should avoid alloca() and pay particular attention to the postings 
by Chris Torek and Doug Gwyn.

( One wonders why yet another person is porting BISON to MSDOS when it was
  already successfully ported once and is available from the sources archives
  near you and from places like SIMTEL-20 in both source and binary form. )

Ran
randall@Virginia.EDU