home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / lisp / mcl / 2080 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.5 KB  |  49 lines

  1. Path: sparky!uunet!olivea!apple!cambridge.apple.com!bill@cambridge.apple.com
  2. From: bill@cambridge.apple.com (Bill St. Clair)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re: how to change stack size?
  5. Message-ID: <9301222207.AA19371@cambridge.apple.com>
  6. Date: 22 Jan 93 23:14:27 GMT
  7. Sender: owner-info-mcl@cambridge.apple.com
  8. Lines: 38
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10.  
  11. >Could you tell me how to change stack size of mcl2?
  12. >Looks like I have to do it, since I am now calculating integers
  13. >as big as (expt 10 300000).
  14.  
  15. Are you really running out of stack, or are you running out of
  16. heap? (expt 10 300000) requires about 
  17.  
  18. Stack overflow reports "Stack Overflow":
  19.  
  20. ? (defun foo (x)
  21.     (foo x)
  22.     nil)
  23. FOO
  24. ? (foo 1)
  25. > Error: Stack overflow.
  26. > While executing: FOO
  27. > Type Command-. to abort.
  28. See the Restarts  menu item for further choices.
  29. 1 > 
  30.  
  31. Out of heap reports "Memory allocation request failed":
  32.  
  33. ? (make-array (Expt 2 24))
  34. > Error: Memory allocation request failed.
  35. > While executing: %MAKE-UVECTOR
  36. > Type Command-. to abort.
  37. See the Restarts  menu item for further choices.
  38. 1 > 
  39.  
  40. If you're running out of heap, you can increase the size of MCL's partition
  41. by using the "Get Info" command on the Finder's "File" menu, or by
  42. specifying a :SIZE option to SAVE-APPLICATION.
  43.  
  44. If you're running out of stack, you can change MCL's LSIZ resource to
  45. allocate more stack either with ResEdit or with the :MEMORY-OPTIONS
  46. option to SAVE-APPLICATION. See the MCL 2.0 Release Notes for details
  47. on the :MEMORY-OPTIONS keyword.
  48.