[comp.sys.mac] Space on stack

jmm@thoth8.berkeley.edu.BERKELEY.EDU (11/18/87)

IM vol. 1 says that when using Copybits, you should make sure that you
don't use more than half the available stack space, and says that a good
"rule of thumb" is to not copy more than 3K.  How can I find out from
Lightspeed Pascal what the actual space remaining on the stack is, so I don't
have to worry about my thumb being wrong?

James Moore
..!ucbvax!leggatt!jmm

lippin@spam.UUCP (11/19/87)

Recently jmm@thoth8.berkeley.edu () said:
>IM vol. 1 says that when using Copybits, you should make sure that you
>don't use more than half the available stack space, and says that a good
>"rule of thumb" is to not copy more than 3K.  How can I find out from
>Lightspeed Pascal what the actual space remaining on the stack is, so I don't
>have to worry about my thumb being wrong?

I think that one of the changes made with system 4.1(?) was to fix
CopyBits so it wouldn't assume the stack was infinite, and now it takes
appropriate steps to copy without writing into the heap.  So you
likely don't need to worry about it.

					--Tom Lippincott
					..ucbvax!bosco!lippin

	This posting is being sent to thousands of machines,
		throughout the civilized world!