On 19 Nov 2014, at 16:15, Kostas Michalopoulos wrote:

On Mon, Nov 10, 2014 at 4:07 PM, Michael Van Canneyt <[email protected]
wrote:


For a cross-compiler, sizeof(pointer) <> sizeof(pointer on target arch)


So wait, the following code:

{$if sizeof(pointer)=8} Code1 {$elseif sizeof(pointer)=4} Code2 {$endif}

will evaluate Code1 for a FPC compiler that is itself compiled as a x86_64
(64bit) linux program but itself targets Win32 (32bit)?

You cut away the important part of the original message: "I think he means in the compiler". I.e., this is inside the compiler source code itself.


Jonas

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to