www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/02/01:58:52

Date: Thu, 2 May 1996 08:38:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "S. Mikecin" <sime AT fly DOT cc DOT fer DOT hr>
Cc: djgpp AT delorie DOT com
Subject: Re: register calling convention
In-Reply-To: <4m2kkv$h7p@bagan.srce.hr>
Message-Id: <Pine.SUN.3.91.960502083608.6400D-100000@is>
Mime-Version: 1.0

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. 

- Raw text -


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