Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!seismo!cmcl2!rna!rocky2!datagen!boykin From: boykin@datagen.UUCP Newsgroups: net.micro.pc Subject: Re: Interrupts with Microsoft C Message-ID: <30@datagen.UUCP> Date: Thu, 5-Jun-86 15:05:30 EDT Article-I.D.: datagen.30 Posted: Thu Jun 5 15:05:30 1986 Date-Received: Sun, 8-Jun-86 04:41:00 EDT Organization: Data General Distributed Systems, Westborough, MA Lines: 31 >I have an interrupt service routine which is linked with >my Microsoft 'C' application program. When the program is started >it installs the pointer to the service routine in the vector table. >As soon as the first interrupt is generated I get a stack overflow >message on the screen and the system hangs. If I disable the external >interrupt source everything works fine. Sounds like a problem in the >interrupt service routine. > > Thank You, > > John Antrosiglio > ATT-Bell Labs > ihnp4!hou2f!jca Unfortunately, you didn't provide all the information necessary to diagnose the problem, however, it sounds like the problem may be due to your interrupt service routine calling a C function. Unless you purposely disable it, MSC puts a call to a function called _chkstk at the beginning of each function. If you've run out of stack space, the program terminates. This isn't a good thing to do if you're at interrupt level! I don't remember what compiler option gets rid of this test, but it is in the MSC manual. If your assembler routine is NOT calling an MSC function, I have no idea what your problem is! Joe Boykin Data General Corp. {allegra, ihnp4, decvax}!datagen!boykin