home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!uni-paderborn.de!tron
- From: tron@uni-paderborn.de (Matthias Scheler)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS/C 6.1 + __saveds + cres.o == crash ?
- Date: 25 Jan 1993 12:20:02 GMT
- Organization: Uni-GH Paderborn, Germany
- Lines: 30
- Distribution: world
- Message-ID: <1k0ltiINNgst@news.uni-paderborn.de>
- References: <1jgn2sINN35s@tom.rz.uni-passau.de>
- NNTP-Posting-Host: wembley.uni-paderborn.de
-
- In article <1jgn2sINN35s@tom.rz.uni-passau.de>, hessmann@unipas.fmi.uni-passau.de (Georg Hessmann) writes:
- |> Hello,
- |>
- |> I've a problem using own boopsi gadgets together with
- |> SAS/C 6.1 lib:cres.o.
- |>
- |> I've compiled my dispatcher function with __saveds and
- |> compiled all with smallcode/data and c.o --> all works fine.
- |>
- |> But if I link with cres.o I get a warning from the linker
- |> (about _LinkerDB or so) and the program will crash the first
- |> time intuition calls my dispatcher function.
-
- Hey Georg ??? Think of it ! How shell that work in heaven's name ?
-
- |> I've looked into the assembler code and it seems, that a4
- |> will be loaded from a fixed (in case of cres.o wrong) address.
-
- Where should this part of code now where the actual data segment is located ?
- You should store a4 somewhere in your Hook structure (You use one, don't you ?).
-
- |> How can I make a program resident, if I use __saveds?
-
- There's no way to do that. DICE e.g. creates an error message if geta4() is
- used inside resident programs (Stefan Becker had to try that at a DICE
- demonstration an Cologne last year :-).
-
- --
- Matthias Scheler tron@uni-paderborn.de
- University of Paderborn (Germany)
-