Date: Thu, 7 May 1998 10:23:48 +0300 (IDT) From: Eli Zaretskii To: Lars Andersson cc: djgpp AT delorie DOT com Subject: Re: Watcom->DJGPP inline ASM In-Reply-To: <3550BF8C.F9DD536D@algonet.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 6 May 1998, Lars Andersson wrote: > inline asm pragmas... The AT&T syntax should be no problem but > I don't know how to pass parameters and return values etc... This is described in the GCC documentation. From the DOS prompt type the following: info gcc "C Extensions" "Extended Asm" (the quotes are important!), and read there. The syntax is different, but the functionality is similar. > #pragma aux Fixed_Mul64=\ > #pragma aux Fixed_Div64=\ OTOH, you might reconsider why you at all need these in inline assembly. DJGPP supports a type long long which is 64 bits, so you could just use it here and let the compiler do the hard work. > #pragma aux Float2Int=\ Why isn't a simple assignment do here? For example: int i double d; .... i = d;