<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 10, 2014 at 4:07 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
For a cross-compiler, sizeof(pointer) <> sizeof(pointer on target arch)<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote><div><br></div><div>So wait, the following code:<br><br></div><div>{$if sizeof(pointer)=8} Code1 {$elseif sizeof(pointer)=4} Code2 {$endif}<br><br>will evaluate Code1 for a FPC compiler that is itself compiled as a x86_64 (64bit) linux program but itself targets Win32 (32bit)? If so, this is highly counterintuitive (and i don't see the usefulness of it).<br></div></div></div></div>