From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: register based calling Date: Mon, 10 Mar 1997 11:24:12 +0100 Organization: TU Chemnitz-Zwickau Lines: 18 Message-ID: <3323E14C.2070@Mathematik.tu-chemnitz.de> References: <01bc2c04$dcd88540$0cb0f8ce AT pquinney> NNTP-Posting-Host: daemon.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Ian Mausolus wrote: > > Does anyone know how to do register based calling under DJGPP? You should use '__attribute__ ((regparm(n)))' where n is the number of registers to be used. Example: static void __attribute__ ((regparm(1))) test_func(int a); Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************