Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!fauern!csbrod From: csbrod@medusa.informatik.uni-erlangen.de (Claus Brod ) Newsgroups: comp.sys.atari.st.tech Subject: Re: How much stack space do system calls need Message-ID: <3204@medusa.informatik.uni-erlangen.de> Date: 31 Oct 90 17:47:34 GMT References: <1990Oct31.092645.28872@ioe.lon.ac.uk> Organization: CSD, University of Erlangen, W-Germany Lines: 18 teexand@ioe.lon.ac.uk (Andrew Dawson) writes: >Is there a defined figure somewhere that specifies how much stack space is >needed for TOS/GEM calls? When writing TSRs and Desk Accessories I don't want to >waste more space than is really necessary. Obviously I need enough to >stack the call arguments plus the SR and return address, but how much more As far as I know, there is no defined upper limit for the stack space needed. Note that there may be other TSRs installed and linked into several vectors. When you call Rwabs() for some hard disk partition, for example, the hard disk driver is invoked which might use lots of stack space. ---------------------------------------------------------------------- Claus Brod, Am Felsenkeller 2, Things. Take. Time. D-8772 Marktheidenfeld, West Germany (Piet Hein) csbrod@medusa.informatik.uni-erlangen.de ----------------------------------------------------------------------