home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11566 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.6 KB  |  32 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!Germany.EU.net!mpifr-bonn.mpg.de!spckll!mlelstv
  3. From: mlelstv@spckll.mpifr-bonn.mpg.de (Michael van Elst)
  4. Subject: Re: Hey Commodore types
  5. Message-ID: <1992Jul23.202833.4068@mpifr-bonn.mpg.de>
  6. Sender: news@mpifr-bonn.mpg.de
  7. Nntp-Posting-Host: spckll
  8. Organization: Max-Planck-Institut f"ur Radioastronomie
  9. 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> <1992Jul23.103350.14923@mpifr-bonn.mpg.de> <mwm.1ah3@contessa.palo-alto.ca.us>
  10. Date: Thu, 23 Jul 1992 20:28:33 GMT
  11. Lines: 19
  12.  
  13. In <mwm.1ah3@contessa.palo-alto.ca.us> mwm@contessa.palo-alto.ca.us (Mike Meyer) writes:
  14. >In <1992Jul23.103350.14923@mpifr-bonn.mpg.de>, mlelstv@specklec.mpifr-bonn.mpg.de (Michael van Elst) wrote:
  15. >> Under K&R C every integer parameter was pushed as a LONG onto the stack
  16. >> anyway.
  17.  
  18. >It's INT, not long, that's pushed if the compiler doesn't have a known
  19. >type. Unless the type of the pushed object is larger than a long; for
  20. >instance, a pointer when you are compiling with 16-bit ints.
  21.  
  22. Sorry, Mike is of course right, chars and shorts are promoted to int.
  23. But 32bit ints are used most often so that it still matches the
  24. arguments that the stub routines await.
  25.  
  26. Regards,
  27. --
  28. Michael van Elst
  29. UUCP:     universe!local-cluster!milky-way!sol!earth!uunet!unido!mpirbn!p554mve
  30. Internet: p554mve@mpirbn.mpifr-bonn.mpg.de
  31.                                 "A potential Snark may lurk in every tree."
  32.