Mail Archives: djgpp/1998/05/07/03:24:00
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;
- Raw text -