www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/01/02:34:31

Date: Sun, 1 Sep 1996 09:30:18 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Luke Anthony Hutchinson <lhutchin AT ug DOT cs DOT su DOT oz DOT au>
Cc: djgpp AT delorie DOT com
Subject: Re: Register-based aruement passing
In-Reply-To: <3226554D.4815@ug.cs.su.oz.au>
Message-Id: <Pine.SUN.3.91.960901092514.21204M-100000@is>
Mime-Version: 1.0

On Fri, 30 Aug 1996, Luke Anthony Hutchinson wrote:

> I'm new to DJGPP, and was wondering if it supports a register based
> arguement passing convention (like Watcom does).  If this exists could
> someone tell me the specifics like the order the registers are used etc,
> or else point me in the right direction to where I may find this info.

From the GCC on-line docs:

	-mregparm=num
	  Control how many registers are used to pass integer arguments.  
	  By default, no registers are used to pass arguments, and at most 
	  3 registers can be used.  You can control this behavior for a 
	  specific function by using the function attribute `regparm'.   
	  See Function Attributes.

	  Warning: if you use this switch, and `num' is nonzero, then you 
	  must build all modules with the same value, including any 
	  libraries.   This includes the system libraries and startup 
	  modules. 

- Raw text -


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