Message-Id: <3.0.6.32.19990212210701.008bf8a0@pop.netaddress.com> X-Sender: pderbysh AT pop DOT netaddress DOT com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 12 Feb 1999 21:07:01 -0500 To: djgpp AT delorie DOT com From: Paul Derbyshire Subject: Re: register calling conventions In-Reply-To: <36C4AB34.E2F54246@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Reply-To: djgpp AT delorie DOT com At 11:29 PM 2/12/99 +0100, you wrote: >Hi there, > >I've written some assembler routines (in an external .asm file) which >are ment to be called using registers to pass the arguments. Currently, >I use Watcom C and the "#pragma aux parm [...] modify [...] value >[...]" directive in my header file to tell the compiler where to put the >arguments. How can I tell DJGPP where to put the arguments and how >should my function prototype in the header file look for DJGPP? Change it to inline asm in the source file. Then read about the GCC inline asm extensions, which include the exact same things: parameters, modify, and value! It just uses a different syntax. -- .*. "Clouds are not spheres, mountains are not cones, coastlines are not -() < circles, and bark is not smooth, nor does lightning travel in a `*' straight line." ------------------------------------------------- -- B. Mandelbrot |http://surf.to/pgd.net _____________________ ____|________ Paul Derbyshire pderbysh AT usa DOT net Programmer & Humanist|ICQ: 10423848|