home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2525 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: u-strasbg.fr!INDI1!papier
  2. From: papier@INDI1 (Laurent Papier)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: gcc & regargs
  5. Date: 1 Feb 1996 15:40:13 GMT
  6. Organization: CRC - Universite Louis Pasteur - Strasbourg France
  7. Message-ID: <4eqmst$hcb@apopi.u-strasbg.fr>
  8. References: <alex.04j6@warp.demon.co.uk>
  9. NNTP-Posting-Host: indi1.u-strasbg.fr
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Alex Tucker (alex@warp.demon.co.uk) wrote:
  13. : Is there an easy way to get gcc to pass function arguments into a function
  14. : call as registers instead of on the stack, for use with e.g. hook functions?
  15.  
  16. : As an example, can gcc do the equivalent of the following in SAS C:
  17.  
  18. :    ULONG __saveds __asm HookFunc(register __a0 struct Hook *hook,
  19. :                                  register __a2 APTR         object,
  20. :                                  register __a1 APTR         message);
  21. : ???
  22.  
  23. Yes, look in gcc-faq from gcc-270-readme.lha.
  24.  
  25. --
  26.                       \|/
  27.                       @ @
  28. ------------------oOO-(_)-OOo-----------------------------------------------
  29.  Laurent Papier - LSIIT - Universite Louis Pasteur - Strasbourg - FRANCE
  30.  E-Mail: papier@dpt-info.u-strasbg.fr
  31.  WWW: http://dpt-info.u-strasbg.fr/~papier
  32. ----------------------------------------------------------------------------
  33.