Date: Thu, 2 May 1996 08:38:59 +0200 (IST) From: Eli Zaretskii To: "S. Mikecin" Cc: djgpp AT delorie DOT com Subject: Re: register calling convention In-Reply-To: <4m2kkv$h7p@bagan.srce.hr> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 29 Apr 1996, S. Mikecin wrote: > How to tell DJGPP to use "register calling convention"? > In Borland C++ it can be done for a particular user function using reserved > word _fastcall. In Watcom C/C++ it is by default (also works with standard > functions)! But what about DJGPP? Use the -mregparm=n (where n is a number [1..3]). Look it up in the GCC docs. Note that you will have to rebuild the libraries you use (including the libraries which come with DJGPP) with that same switch to be consistent with that parameter-passing mechanism.