<p>Am 19.11.2014 16:15 schrieb "Kostas Michalopoulos" <<a href="mailto:badsectoracula@gmail.com">badsectoracula@gmail.com</a>>:<br>
><br>
><br>
> On Mon, Nov 10, 2014 at 4:07 PM, Michael Van Canneyt <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>> wrote:<br>
>><br>
>><br>
>> For a cross-compiler,  sizeof(pointer) <> sizeof(pointer on target arch)<br>
><br>
><br>
> So wait, the following code:<br>
><br>
> {$if sizeof(pointer)=8} Code1 {$elseif sizeof(pointer)=4} Code2 {$endif}</p>
<p>Michael's message wasn't meant as literal code. A compiler compiled for x86_64 will have sizeof(pointer)=8, but the pointer size of the target architecture (AFAIK called "aint" in the compiler, but I'm not sure currently) might be different from that, so inside the compiler One should know exactly which kind of Pointer one is talking about.</p>
<p>Regards,<br>
Sven</p>