Date: Tue, 9 Jun 1998 18:50:58 +0300 (IDT) From: Eli Zaretskii To: brainpower cc: djgpp AT delorie DOT com Subject: Re: Calling NASM-compiled functions In-Reply-To: <357c22f5.911179@news.esoterica.pt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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".