Mail Archives: djgpp/1996/09/01/02:34:31
On Fri, 30 Aug 1996, Luke Anthony Hutchinson wrote:
> I'm new to DJGPP, and was wondering if it supports a register based
> arguement passing convention (like Watcom does). If this exists could
> someone tell me the specifics like the order the registers are used etc,
> or else point me in the right direction to where I may find this info.
From the GCC on-line docs:
-mregparm=num
Control how many registers are used to pass integer arguments.
By default, no registers are used to pass arguments, and at most
3 registers can be used. You can control this behavior for a
specific function by using the function attribute `regparm'.
See Function Attributes.
Warning: if you use this switch, and `num' is nonzero, then you
must build all modules with the same value, including any
libraries. This includes the system libraries and startup
modules.
- Raw text -