[Lazarus] Using Laz 32bits to compile 64bits

Sven Barth pascaldragon at googlemail.com
Sat Aug 20 10:51:41 CEST 2011


Am 20.08.2011 05:01, schrieb Hans-Peter Diettrich:
> Marcos Douglas schrieb:
>
>> Question:
>> I can compile a new fpc.exe to 64bit using a ppc386.exe 32bit version,
>> on a machine 64bit?
>
> Yes and no ;-)
>
> Yes, you can create an ppcrossx64.exe, along with the 64 bit libraries,
> using ppc386.exe.
>
> No, fpc.exe doesn't compile anything itself, it only calls the compiler
> for the selected target.

The point is that a fpc.exe compiled for 32bit will select the 32bit 
compiler (ppcx86) as default while the one compiled for 64bit will 
select the 64bit compiler as default (ppcx64). So it does matter what 
platform you compile fpc.exe for.

Regards,
Sven




More information about the Lazarus mailing list