[fpc-pascal] Win64 → Win32 cross compilation

Thomas Kurz fpc.2021 at t-net.ruhr
Sun Nov 29 14:03:01 CET 2026


I'm surprised that a true Win64 (host) to Win32 (target) cross-compilation is working now with current FPC trunk, including the `extended` type.

Have I missed that?

I don't mean the Soft-x87-emulation here. I don't know why but it seems to be deliberately disabled:

```
f64:=floatx80_to_float64(floatx80_e);
result:=pentryreal(@f64)^;
```

I also don't mean using 32-bit binaries as the `lazarus-4.0-fpc-3.2.2-cross-i386-win32-win64.exe` cross-compiler seems to be using.

No, I mean a real `ppcross386.exe` as a Win64-PE+ binary.

This also simplifies cross-compiling from Win64 to Linux64 considerably. No mixtures of 
architectures anymore. It's a milestone!

Question: Will this officially be used to supply cross-compilers when realising the next major FPC version?

Thomas



More information about the fpc-pascal mailing list