use of alloca ?

Prashanth K.S. elxrgh!pks at elxsi.ernet.in
Sat Jan 30 16:10:51 PST 1999


Hi,

  Is alloca (in "virtualMachine") used only to get some memory that is 
freed automatically on function exit ? or to get memory only from the 
stack ? 

  can someone please explain the need for this call ?

  can alloca be replaced by malloc (& free before function exit). If not, 
can something else be used instead of it to achieve the same effect ?
 

TIA,
prash




More information about the kaffe mailing list