Path: utzoo!attcan!uunet!tank!uxc!uwmcsd1!ig!agate!pasteur!ames!amdahl!kevin From: kevin@amdahl.uts.amdahl.com (Kevin Clague) Newsgroups: comp.sys.amiga.tech Subject: Re: Large Program's Programming Problems (Manx Difficulties) Message-ID: Date: 15 Sep 88 13:51:42 GMT References: <5816@watcgl.waterloo.edu> <68270@sun.uucp> Reply-To: kevin@amdahl.uts.amdahl.com (Kevin Clague) Distribution: comp Organization: Amdahl Corporation, Sunnyvale, CA 94086 Lines: 31 In article <68270@sun.uucp> cmcmanis@sun.UUCP (Chuck McManis) writes: >In article <5816@watcgl.waterloo.edu> (Flynn D. Fishman) writes: >>The problem is not limited to variables either, sometimes it forgets where a >>routine is and jumps to the wrong location. I have noticed this problem on >>several programs, including a couple at work. >>So what am I doing wrong? >>FDFISHMAN (Flynn D. Fishman) @ WATCGL (but you can call me Flynn) > >This is sounds very suspiciously like a stack problem. Before running >your program type "Stack" to figure out the stack size, then make a rough >approximation of how much stack is being used in the routine in question. >Do this by adding up the sizes of all local variables in every routine >"above" and including the routine in question. Then add another 1K for >DOS kinds things. If that number is bigger than or even close to the >Stack number you got above then try doubling the stack size. > >--Chuck McManis >uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com >These opinions are my own and no one elses, but you knew that didn't you. Since Flynn uses Manx he can turn on automatic stack checking. It can be done with a compiler option, although I don't know which one offhand. -- UUCP: kevin@amdahl.uts.amdahl.com or: {sun,decwrl,hplabs,pyramid,seismo,oliveb}!amdahl!kevin DDD: 408-737-5481 USPS: Amdahl Corp. M/S 249, 1250 E. Arques Av, Sunnyvale, CA 94086 [ Any thoughts or opinions which may or may not have been expressed ] [ herein are my own. They are not necessarily those of my employer. ]