home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17861 < prev    next >
Encoding:
Text File  |  1992-12-28  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!gatech!concert!samba!usenet
  3. From: Todd_Lewis@unc.edu (Todd M. Lewis)
  4. Subject: Re: ASL and GadTools under 1.3 - can this work?
  5. Message-ID: <1992Dec28.144152.23802@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: guitar.oit.unc.edu
  8. Organization: UNC Office of Information Technology
  9. References: <1992Dec28.032315.6457@bilver.uucp>
  10. Date: Mon, 28 Dec 1992 14:41:52 GMT
  11. Lines: 20
  12.  
  13. In article <1992Dec28.032315.6457@bilver.uucp> alex@bilver.uucp (Alex Matulich)  
  14. writes:
  15. >I notice that if I use the pragma include files, the linker (SAS 5.10b)
  16. >will NEVER link amiga.lib.  If I leave out the pragmas, it gets linked in.
  17. >Upon using OML to list the contents of amiga.lib, I notice that it
  18. >contains all Amiga functions, including the gadtools.library functions!
  19. >
  20. >This would imply that amiga.lib contains duplicates of the 2.0 ROM
  21. >functions, [...]
  22.  
  23. C normally passes arguments on the stack.  The system libraries expect
  24. arguments in registers.  The pragmas enable the compiler to put
  25. arguments in registers for system functions.  The amiga.lib functions
  26. you found simple take arguments off the stack and put them into the
  27. proper registers before calling the real system functions.  They
  28. are not duplicates of the 2.0 ROM functions.
  29. --
  30.  _/_/_/  _/     Todd_Lewis@unc.edu          You can lead a horse to 
  31.   _/    _/     utoddl@guitar.oit.unc.edu   Mohammad, but you can't make
  32.  _/    _/_/_/                             a mountain drink a mole hill.
  33.