[fpc-devel] flaky Win64 support in FPC?
Joost van der Sluis
joost at cnoc.nl
Wed Oct 15 10:22:17 CEST 2008
Op woensdag 15-10-2008 om 09:50 uur [tijdzone +0200], schreef Graeme
> I know FPC has a win64 compiler. But it's not quite ready for
> primetime use. Just last month I had to cancel my Win64 VPS hosting
> after a frustrating struggle with FPC-Win64. FPC-64 compiler can do
> basic 64 bit stuffs, but anything more complicated and you'll have
> trouble. I was able to compile my IOCP-based server with FPC/64, but
> the app crashes soon after it starts. And I don't have the slightest
> idea where to start hunting for bugs. FPC does produce 64-bit apps,
> but it may not be the ideal solution fo
> r critical apps.
Most probably he thought that converting to 64-bit is done by just
switching to a 64-bit compiler. But his code has to be 64-bit safe. So
don't cast integers to pointers, but use PtrInt and such.
If he comes from a Delphi background, he may not to be used to this.
More information about the fpc-devel