Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!news.funet.fi!funic!nic!vinsci From: vinsci@nic.funet.fi (Leonard Norrgard) Newsgroups: comp.sys.amiga.programmer Subject: Re: fun device debugging Message-ID: Date: 1 Jun 91 01:19:12 GMT References: Sender: vinsci@nic.funet.fi (Leonard Norrgard) Distribution: comp Organization: Soft Service, Inc. Lines: 18 In-Reply-To: vinsci@nic.funet.fi's message of 31 May 91 22:03:28 In article vinsci@nic.funet.fi (Leonard Norrgard) writes: >The device being debugged is "localser.device" a little hack to __saveds is broken in SAS/C 5.10a. If you have problems using it, check out what assembly is generated. What happened to me was that it loaded the base register into A0, which is not exactly where it should be... Well, turned out __saveds wasn't need anyway... BTW, that was when combined with -b0. Also, I hear that if you begin your function declaration with __saveds rather than return type, you're likely to get bad code. While on the subject, void * __saveds is said to generate bad code as well. Or maybe it is the lc call from the shell? :-/ How was it, do they only read news over at SAS, or do they have access at all? Is anybody forwarding all these bugs that get reported in c.s.a.programmer? -- Leonard