Path: 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 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