[fpc-pascal] x64 compiler and Large Address Aware flag
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Jul 27 10:54:50 CEST 2016
OBones wrote on Wed, 27 Jul 2016:
> I don't see any issue with the command line and the number of files
> does not seem that high to me.
> As a workaround, I patched ppcrossx64.exe so that its PE header
> includes the Large Address Aware flag thus meaning it can now use up
> to about 3G of RAM instead of roughly 1.5
> Once patched, I removed all .ppu and .o files and reran the same
> command line. This time it finished successfully at first run and
> observing it, it used 1.4 G of RAM at most during its execution.
[snip]
>
> Do you think it is safe to use the patched ppcrossx64 compiler?
Normally, yes. We try to avoid casting pointers to signed integers,
and the compiler in fact warns if you do that. So pointers >=
pointer($80000000) should be handled correctly by both the compiler
and the RTL.
Jonas
More information about the fpc-pascal
mailing list