[Lazarus] Using Laz 32bits to compile 64bits

Marcos Douglas md at delfire.net
Sat Aug 20 21:19:26 CEST 2011


On Sat, Aug 20, 2011 at 3:44 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
> Am 20.08.2011 20:05, schrieb Marcos Douglas:
>>
>> On Sat, Aug 20, 2011 at 5:51 AM, Sven Barth<pascaldragon at googlemail.com>
>>  wrote:
>>>
>>> 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.
>>
>> So, to compile the first version of FPC 64 I have to download a
>> ppcx64.exe and run make. Is that?
>
> fpc.exe is AFAIK only compiled if you run a "make install" or you run "make
> fpc" in the "compiler/utils" directory (not exactly sure about the last
> one).

I didn't know that. Well... I always ran 'make install'.

I know the fpc.exe just calls ppc386.exe but what advantages to do
this? Well, this is another thread...

Marcos Douglas




More information about the Lazarus mailing list