home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v1 / text0051.txt < prev    next >
Encoding:
Text File  |  1987-06-30  |  1.6 KB  |  41 lines

  1. ----------------------------------------------------------------------
  2.  
  3. Date: Tue, 6 Aug 85 01:11:53 PDT
  4. From: seismo!sun!guy (Guy Harris)
  5. To: cbosgd!std-c, ut-sally!std-unix
  6. Subject: Re: Storage allocators
  7.  
  8. > Unix has long had an undocumented routine alloca(), which allocates
  9. > storage off the stack.  This storage then goes away when the function
  10. > returns.
  11.  
  12. *Some* UNIXes have had it.  It was a PWB/UNIX invention, and wiggled its way
  13. into 4.xBSD; I don't remember it being in V7.
  14.  
  15. > ...since C supports variables on the stack, so I doubt that there are many
  16. > machines which can't do alloca(), and for Unix, it comes down to
  17. > documenting something that has been there for a long time.
  18.  
  19. If you said "I know that there are no machines which can't do 'alloca'", I'd
  20. be more in favor of this proposal.  C supports variables on the stack, but
  21. that merely requires that you can allocate a stack frame on procedure entry,
  22. not that you can extend a stack frame during the execution of a procedure.
  23. I would not be willing to say that all machines with C implementations can
  24. do that.
  25.  
  26. >From the standpoint of UNIX, it's not clear that it's something that's been
  27. there for a long time in *all* UNIXes.
  28.  
  29.     Guy Harris
  30.  
  31. ------------------------------
  32.  
  33. Discussions-Of: UNIX standards, particularly the IEEE P1003 draft standard.
  34. Submissions-To:    ut-sally!std-unix    or std-unix@ut-sally.ARPA
  35. Comments-To: ut-sally!std-unix-request    or std-unix-request@ut-sally.ARPA
  36. UUCP-Routes: {ihnp4,seismo,harvard,gatech}!ut-sally!std-unix
  37. Archives-In: ~ftp/pub/mod.std.unix on ut-sally.ARPA (soon sally.UTEXAS.EDU)
  38.  
  39. Volume-Number: Volume 1, Number 52
  40.  
  41.