[fpc-devel] assembler memory addressing in 64-bit mode
Florian Klämpfl
florian at freepascal.org
Fri Jan 6 11:53:48 CET 2012
Am 06.01.2012 11:16, schrieb Torsten:
> Hi,
>
> i don't understand the follow error message in 64-bit mode:
>
>
> assemblercode
>
> asm
> addpd xmm0, [EAX]
> end;
>
>
> I think this is a bug.
While in theory, it might be possible to write such code, I'am still
prefer the error of FPC: in 99.9% of the use cases using a 32 bit
reference in 64 bit mode is an error and crashes anyways on run time. If
such code is really needed, it still can be encoded manually using .byte
or if it's a bigger part, an external assembler can be used.
More information about the fpc-devel
mailing list