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