Article View: comp.sys.amiga.tech
Article #5319SAS/C5.10 Runtime Stack allocation
From: Randy M. Roberts
Date: Mon, 17 Sep 1990 23:20
Date: Mon, 17 Sep 1990 23:20
33 lines
1451 bytes
1451 bytes
I have installed my new version of SAS/C version 5.10. The docs that
come with it contain the only reference I know of about runtime stack
allocation. I will list this reference without permission of SAS:
Minimum Stack 5.10 allows you to specify a minimum stack size by ini-
Size tializing the stack variable at compile time. If you do,
and your program is invoked with a smaller stack, the
startup code will allocate a new stack of the minimum
size.
I have tried the following to get it to work:
/* beginning of program file */
int stack = 1000000;
main ()
{
/* ... */
}
/* end of program file */
This didn't work. The SAS requester came up saying I didn't have enough
stack space. When I did a "stack 1000000" in my shell the program ran fine.
I then tried to make stack "static" but that didn't work either. I have
noticed a _stack listed in lib:lc.lib so it must be an external reference, but
I just can't get it to work. Any suggestions?
Regards,
Randy
Technical Details
Message-ID:
<37308@ut-emx>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!emx.utexas.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!emx.utexas.edu From: phao172@emx.utexas.edu (Randy M. Roberts) Newsgroups: comp.sys.amiga.tech Subject: SAS/C5.10 Runtime Stack allocation Keywords: SAS, stack Message-ID: <37308@ut-emx> Date: 17 Sep 90 23:20:58 GMT Sender: phao172@ut-emx Distribution: na Organization: The University of Texas at Austin; Austin, Texas Lines: 33