home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / dec / 7038 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.sys.dec
  2. Path: sparky!uunet!news.uiowa.edu!ccad.uiowa.edu!timv
  3. From: timv@ccad.uiowa.edu (Timothy VanFosson)
  4. Subject: Re: Need alloca which allocates storage IN the stack frame (Ultrix)
  5. Message-ID: <1993Jan21.163051.6773@ccad.uiowa.edu>
  6. Organization: CAD-Research, U. of Iowa, Iowa City, Iowa
  7. References: <9915020@zl2tnm.gen.nz>
  8. Date: Thu, 21 Jan 1993 16:30:51 GMT
  9. Lines: 31
  10.  
  11. From article <9915020@zl2tnm.gen.nz>, by don@zl2tnm.gen.nz (Don Stokes):
  12. > timv@ccad.uiowa.edu (Timothy VanFosson) writes:
  13. >> Does anyone have an implementation of alloca() which actually
  14. >> sets aside storage in the stack frame?  I'm trying to port
  15. >> the NIH Class Library and have everything working except the
  16. >> process classes, and I've narrowed it down to the DEC implementation
  17. >> of alloca() not being what NIH expects.
  18. > You don't say what system you want this for.  It kinda matters, since you
  19. > can't really do an alloca() in C.
  20. > Anyway, since it's short, here's a VAX MACRO alloca() (code filched from GCC,
  21. > comments by me):
  22.  
  23. Thanks for the response, but (as you point out) I neglected to mention
  24. that this is for a DECStation 5000/200.  Thanks also to those who
  25. have suggested GNU Emacs/GCC alloca(), but it works (doesn't work :-)
  26. in the same manner as the DEC alloca() -- the storage allocated is
  27. not IN the stack.  I had already tried it before I posted.
  28.  
  29. I am still looking for an (assembly) version of alloca() which
  30. does manipulate the stack to allocate storage.
  31.  
  32.  
  33. --tv
  34. -- 
  35. Timothy VanFosson                             E-mail   : timv@ccad.uiowa.edu
  36. Senior Systems Analyst                        US Mail  : CAD-Research
  37. University of Iowa                                       228 ERF
  38. Phone: (319) 335-5728   FAX: (319) 335-6061              Iowa City, Iowa 52242
  39.