Mail Archives: djgpp/1999/02/04/02:14:35
Paul Derbyshire wrote:
>
> How does GCC on an intel arch (and therefore, DJGPP) manage long long
> arithmetic? Using software or hardware, and then, using the FPU directly,
> using MMX, or just using regular x86 instructions? Or a mixture?
Regular integer instructions. So `long long x,y; x += y' will look
something like:
movl y, %eax
addl %eax, x
movl y+4, %eax
adcl %eax, x+4
You could find out much more easily by writing a simple function and
compiling with `-S'.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -