[fpc-pascal] Downloaded cross-compiler from Sourceforge - wiki incorrect?
Martin Frb
lazarus at mfriebe.de
Fri Mar 24 09:14:14 CET 2023
On 24/03/2023 07:38, Bo Berglund via fpc-pascal wrote:
> On Thu, 23 Mar 2023 09:47:36 +0100, Martin Frb via fpc-pascal
> <fpc-pascal at lists.freepascal.org> wrote:
>
>> You need to change the CPU to i386 too
> OK, I thought that the current processor could be used since it can run both
> types of programs...
Well no, and probably for several reasons.
1) The compiler only cares about the cpu, you have both, so that would
be ok.
2) the units (rtl/fcl) are only prebuild for the exact combination
3) I don't think a 64bit app can open the 32 bit dll/kernel.
One app has to be either all 64bit code. Or all 32 bit code. The CPU has
to run either in one or the other mode. The same byte sequence of code
has different meanings in either mode.
More information about the fpc-pascal
mailing list