[comp.sys.apple] APW C Stack Space

jb10320@uxa.cso.uiuc.edu (02/16/89)

I'm trying to port ZOO over to the GS, and it basically works but whenever
it tries to return to the shell it crashes into the monitor.  I assume from
my experience with writing GScheme that it's stack problems  (the manual for
zoo says it needs at least 16K of stack, more is preferable.)

My question is this...

Can I "add up" the stack includes, i.e.

(this is a link-editor file)
LINK/ALL 2/STACK16K
LINK/ALL 2/STACK8K
etc...

To add up as much stack as I need?
I only have the Beta APW manuals and they're a mess...

Thanx in advance...

jawaid bazyar
jb10320@uxa.cso.uiuc.edu

"Old programmers don't die, they just re-format"

scott@claris.com (Scott Lindsey) (02/19/89)

From article <113300042@uxa.cso.uiuc.edu>, by jb10320@uxa.cso.uiuc.edu:
 
 
 
> Can I "add up" the stack includes, i.e.
> 
> (this is a link-editor file)
> LINK/ALL 2/STACK16K
> LINK/ALL 2/STACK8K
> etc...
> 
> To add up as much stack as I need?
> I only have the Beta APW manuals and they're a mess...


Yes, that should work fine.  I tried it with LinkEd 1.0B4 and got a 24K stack.

You need to be sure to put them in a direct-page segment, though:

SEGMENT/$12 stack
LINK/ALL 2/STACK16K ...

should do what you want.


-- 
Scott Lindsey, wombat    | UUCP: {ames,apple,portal,sun,voder}!claris!scott
Product Development      | Internet:  scott@claris.com  |  AppleLink: LINDSEY1
Claris Corp.             | Disclaimer: These are not the opinions of Claris,
(415) 960-4070           | Apple, the author, or anyone else living or dead.