Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!cbmvax!cbmehq!cbmger!kbsaar!fjrei From: fjrei@kbsaar.UUCP (Franz-Josef Reichert) Newsgroups: comp.sys.amiga.programmer Subject: Re: fun device debugging Message-ID: Date: 3 Jun 91 15:14:59 GMT References: Organization: Private Amiga Site Lines: 25 In article vinsci@nic.funet.fi (Leonard Norrgard) writes: >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? :-/ Please, can you provide a small piece of sample code which shows this bug _reproducable_? >-- Leonard -- Best regards, Franz-Josef Reichert VOICE: +49 6805 7417 Kuchlingerstrasse 13 UUCP: ...uunet!cbmvax!cbmehq!cbmger!kbsaar!fjrei D-6601 Kleinblittersdorf GERMANY