home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5678 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: chang.unx.sas.com!walker
  3. From: walker@chang.unx.sas.com (Doug Walker)
  4. Subject: Re: Ceck out this bug. What the *** is SASC/6.56 doing?
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <DoGt57.IzK@unx.sas.com>
  7. Date: Mon, 18 Mar 1996 13:22:19 GMT
  8. X-Nntp-Posting-Host: chang.unx.sas.com
  9. References: <1120.6643T91T406@login.eunet.no> <885.6646T9T693@login.eunet.no> <Do9Fy0.HGp@unx.sas.com> <828.6649T501T491@login.eunet.no>
  10. Organization: SAS Institute Inc.
  11.  
  12. In article <828.6649T501T491@login.eunet.no>,
  13. Patrick Hanevold <patrick.hanevold@login.eunet.no> wrote:
  14. >
  15. >>Stack EXTENSION, on the other hand, allows for a "fudge factor".  If the
  16. >>remaining stack size at function entry time is less than the global long
  17. >>_STKNEED, a new stack extent is allocated.  The default _STKNEED value
  18. >>is 400 bytes.
  19. >    ^^^ This one is too little! It should be 4K by default. Like the OS.
  20.  
  21. I disagree.  It should be the maximum amount of stack that any system 
  22. function or SAS/C library function will use.  1k should be plenty.  You
  23. don't want to set _STKNEED too high, or you'll end up reallocating too
  24. often.
  25.  
  26. You should change the value in your code by adding the following line
  27. external to any function:
  28.  
  29.    long _STKNEED = 1024;
  30.  
  31. -- 
  32.   *****     
  33.  *|_o_o|\\     Doug Walker   walker@unx.sas.com  
  34.  *|. o.| ||                
  35.   | o  |//     Any opinions are mine, not those of SAS Institute, Inc.
  36.   ====== 
  37.