Newsgroups: comp.sys.amiga.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!herald.usask.ca!ccu.umanitoba.ca!kaarts From: kaarts@ccu.umanitoba.ca (Kenneth John Aarts) Subject: Re: How to specify Stacksize in SAS/C ? Message-ID: <1991May2.142901.9289@ccu.umanitoba.ca> Organization: University of Manitoba, Winnipeg, Canada References: <11234.ANN@chumly.ka.sub.org> <1991Apr30.073651.3286@iesd.auc.dk> <1991May2.031850.20437@ccu.umanitoba.ca> Distribution: na Date: Thu, 2 May 91 14:29:01 GMT Lines: 26 >>In article <11234.ANN@chumly.ka.sub.org> wasp@chumly.ka.sub.org (Walter Mildenberger) writes: >>>Hello ! >>> Subject says all: How can I specify a minimal stacksize within >>>a program with SAS/C V5.10a ? The manual isn't very clear; all I've found >>>is, that I can do it (Preface xv), but how ??? >>> >>>Any pointers appreciated... >>> >>If anyone has an answer to this, please post it or E-Mail it to me >>too. >I posted the solution to this a day or two ago, I hope it didn't die! >Anyways, I wrote sas and they responded: >'Place the following statement in your code.' > long _stack = n; >'where n is the stack size in bytes. Link with cres.o or cback.o instead of c.c. >' >Not quite what they implied in the preface! Anyways I suggest using cres.o as >cback.o might like some other initializations as well. >Ken