Mail Archives: djgpp/1998/06/09/11:51:29
On Mon, 8 Jun 1998, brainpower wrote:
> void func(long a, long b);
> #pragma aux func "*" parm [esi] [edi]
>
> this means a goes into the ESI register and b goes into EDI, and i can
> use them in the assembly code.
>
> Is there a way to do this in DJGPP without having to resort to
> externally-declared variables, such as i'm doing now?
Read the GCC docs about the compiler switch -mregparm. This is the GCC
functionality equivalent to Watcom's "pragma aux".
- Raw text -