Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!princeton!idacrd!mac From: mac@idacrd.UUCP (Bob McGwier) Newsgroups: comp.sys.ibm.pc Subject: Re: Stack overflow in MSC V3.0 Message-ID: <243@idacrd.UUCP> Date: Wed, 10-Jun-87 12:26:55 EDT Article-I.D.: idacrd.243 Posted: Wed Jun 10 12:26:55 1987 Date-Received: Sat, 20-Jun-87 03:53:57 EDT References: <719@cod.UUCP> Organization: idacrd, princeton, nj Lines: 21 > I am having troubles with C, MSC V3.0 to be exact. > > I have written a program on a pc to do some matrix operations and I had been using LINT on a main frame to help debug it. The problem is it compiles on the main frame with % cc filename -lm and runs, but on the pc I use: > > > msc /AL /FPi filename > > link /STACK:65000 filename > > and all I get is stack overflow. Any help with what I'm doing wrong would be greatly appreciated. > > > Murph, Check to see how much stack is available before each subroutine with a call to stackavail() (sp?). It's in my msc 4.0 library and it may be in yours. This should help you track down the offending routine. Bob .