[comp.sys.mac.programmer] heap and zone sizes

mikeoro@hubcap.clemson.edu (Michael K O'Rourke) (08/07/89)

What is the proper way to determine the minimum stack and zone sizes that
your program will be able to function with?  I am using LSP and i want to
know what values to set under 'Run Options' and also what values to put in
my 'SIZE' -1 resource.  I was having troubles with my program crashing and
then i increased the stack size and everything was fine.  However, i don't
know if i expanded it way beyond what it really needed.


Michael O'Rourke
Clemson Unversity 


=========================================================================
| Disclaimer:  I don't need one. Who'd sue a poor college student?      |
|-----------------------------------------------------------------------|
| "If you're doing business with a religious son-of-a-bitch, get it in  |
|  writing.  His word ain't worth shit.  Not with the good lord telling |
|  him how to fuck you on the deal." -- William S. Burroughs            |
=========================================================================

siegel@endor.harvard.edu (Rich Siegel) (08/07/89)

In article <6181@hubcap.clemson.edu> mikeoro@hubcap.clemson.edu (Michael K O'Rourke) writes:
>What is the proper way to determine the minimum stack and zone sizes that
>your program will be able to function with?  I am using LSP and i want to

	Unless your program is very heavily recursive, or has routines
that declare huge amounts of local storage, the default 16K stack allocation
is probably sufficient.

	Most programs will like 256K of zone, perhaps more; it depends very
heavily on what the program is doing.

	When configuring the SIZE resource, the number you give it should
be the sum of the stack and zone sizes.

		-_Rich

~~~~~~~~~~~~~~~
 Rich Siegel
 Staff Software Developer
 Symantec Corporation, Language Products Group
 Internet: siegel@endor.harvard.edu
 UUCP: ..harvard!endor!siegel

"When it comes to my health, I think of my body as a temple - or at least
a moderately well-managed Presbyterian youth center." - Emo Phillips

~~~~~~~~~~~~~~~