[fpc-devel] assembler memory addressing in 64-bit mode

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Jan 6 11:26:42 CET 2012


On 06 Jan 2012, at 11:16, Torsten wrote:

> i don't understand the follow error message in 64-bit mode:
>
>
> assemblercode
>
> asm
> addpd xmm0, [EAX]
> end;
>
> fpc 2.7.1: not ok "16 or 32 Bit references not supported"

Are you 100% certain that your address lies in the first 4GB of  
memory? At least on Mac OS X, the above would always crash because it  
does not put any code/data within the first 4GB of memory on 64 bit  
systems (to make pointer truncation bugs as easy to spot as possible).


Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20120106/3f3013ed/attachment.html>


More information about the fpc-devel mailing list