home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cbmvax!cbmehq!cbmger!peterk
- From: peterk@cbmger.de.so.commodore.com (Dr Peter Kittel Germany)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Hey Commodore types
- Message-ID: <9412@cbmger.de.so.commodore.com>
- Date: 23 Jul 92 06:46:11 GMT
- References: <paulk.0k1w@terapin.com> <1992Jul14.014115.6212@agora.uucp> <1992Jul14.182841.5792@ultb.isc.rit.edu> <1992Jul15.023355.1552@agora.uucp> <1992Jul15.114615.25849@mpifr-bonn.mpg.de> <1992Jul22.151307.1736@sagpd1>
- Reply-To: peterk@cbmger.de.so.commodore.com (Dr Peter Kittel Germany)
- Organization: Commodore Germany
- Lines: 22
-
- In article <1992Jul22.151307.1736@sagpd1> monty@sagpd1.UUCP (Monty Saine) writes:
- >>
- >>The autodocs specify the values the function expects/returns, the
- >>prototypes specify what the C-code has to pass to the function.
- >
- > I am confused???? You are saying that a function expects a UBYTE so the
- > complier passes an unsigned long???????? and this is correct ?????
- >
- > What am I overlooking here, do all amiga compliers always pass longs
- > on the stack???
-
- Yes, this seems to be the fact. On the stack, there are always longs.
- If you take a look at the .FD files, you'll find that every parameter
- of a function is always passed to one own processor register. So yes,
- on the stack these values have always the length of a full register,
- and this is 32 bits, a long. How they are interpreted by the real function
- is another story.
-
- --
- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions...
- Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk
- or peterk@public.sub.org
-