64 bit assembler > 64 Bit Assembler

64 bit and REAL10 values

(1/2) > >>

Gunther:
At the moment I've only running a 64 bit Linux system. In a few weeks I'll buy a new machine with, at least, Windows 7 (64 bit). So, what's the question. Is it possible to work with REAL10 values (long double) under 64 bit Windows? The libc of Microsoft Visual C doesn't support that data type.

Gunther

jj2007:
AFAIK with 32-bit code, the FPU remains "as is", so no problem. With 64-bit code, no idea.
Attention with xmm regs: perfectly working 32-bit code with SSE2 may mysteriously fail on a 64-bit OS because some XMMs are being trashed by Win API calls.

qWord:
The FPU is still available for ring3 applications. As for x32, all FPU registers are volatile; the stack must be empty before calling functions.

Gunther:
Hi qword,


--- Quote from: qWord on September 24, 2012, 01:19:39 AM ---The FPU is still available for ring3 applications. As for x32, all FPU registers are volatile; the stack must be empty before calling functions.

--- End quote ---

that's clear. But how is, for example, to print such a REAL 10 value? The printf doesn't work, because it uses the Windows libc.

Gunther

qWord:

--- Quote from: Gunther on September 24, 2012, 07:41:35 AM ---But how is, for example, to print such a REAL 10 value? The printf doesn't work, because it uses the Windows libc.
--- End quote ---
You need to roll your own or translate existing code (e.g. fpulib) - but maybe some has already done this...

Navigation

[0] Message Index

[#] Next page

Go to full version