Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!cg-atla!fredex From: fredex@cg-atla.UUCP (Fred Smith) Newsgroups: comp.sys.ibm.pc Subject: Re: Microsoft C Message-ID: <8162@cg-atla.UUCP> Date: 12 Dec 89 14:05:02 GMT References: <3436@ccncsu.ColoState.EDU> Reply-To: fredex@cg-atla.UUCP (Fred Smith) Organization: Agfa Compugraphic Division Lines: 22 In article <3436@ccncsu.ColoState.EDU> massey@typhoon.atmos.colostate.edu (Todd Massey) writes: >I need information on microsoft c... >I need to know the exact code that makes up __chkstk in the >libraries. The reason behind this is because everytime i make >my own stack within a isr and call a routine written in c i get >a runtime error caused by this routine that gives a stack overflow >error > >Thanks >Todd Todd: I would suggest that when compiling the module which contains your isr that you should use the -Gs switch on MSC. This removes the call to __chkstk in the generated code. This is also a good idea when doing TSRprograms, too, since they often run with no stack, or lean on DOS or their "host" program for stack space. Fred