[fpc-devel] Address size compiler

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Nov 19 16:20:17 CET 2014


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

> On Mon, Nov 10, 2014 at 4:07 PM, Michael Van Canneyt <michael at freepascal.org
>> 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




More information about the fpc-devel mailing list