home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19148 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.6 KB

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