[fpc-pascal] detect CPU cores
Xiangrong Fang
xrfang at gmail.com
Sat Sep 13 05:12:04 CEST 2014
2014-09-13 0:28 GMT+08:00 Dmitry Boyarintsev <skalogryz.lists at gmail.com>:
> You're compiling for x64, You need to replace "eax" and "edx" with "rax"
> and "rdx", since e?x are available for i386 only.
>
>
My situation is, I program and test on Ubuntu x64 on a i3-M390. Then
compile it to Windows 32bit on a VirtualBox on this machine, then run it on
a Windows 32bit running on a rather old pentium dual core (T-something, I
don't know if it is 32bit or 64bit processor).
regarding e?x vs. r?x, is it only related to the CPU, or also has something
to do with the OS (32bit or 64bit)? How to do "conditional compiling" for
assembly code?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140913/1e02618e/attachment.html>
More information about the fpc-pascal
mailing list