Date: Sun, 1 Sep 1996 09:30:18 +0200 (IST) From: Eli Zaretskii To: Luke Anthony Hutchinson Cc: djgpp AT delorie DOT com Subject: Re: Register-based aruement passing In-Reply-To: <3226554D.4815@ug.cs.su.oz.au> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.