delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/09/11:51:29

Date: Tue, 9 Jun 1998 18:50:58 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: brainpower <pcadavez AT mail DOT esoterica DOT pt>
cc: djgpp AT delorie DOT com
Subject: Re: Calling NASM-compiled functions
In-Reply-To: <357c22f5.911179@news.esoterica.pt>
Message-ID: <Pine.SUN.3.91.980609184912.16324S-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019