[fpc-pascal] getting cross with the cross compiler
florian at freepascal.org
Sat Oct 7 20:55:35 CEST 2017
Am 07.10.2017 um 12:14 schrieb Sven Barth via fpc-pascal:
> Am 07.10.2017 11:11 schrieb "Karoly Balogh (Charlie/SGR)" <charlie at scenergy.dfmk.hu
> <mailto:charlie at scenergy.dfmk.hu>>:
>> On Sat, 7 Oct 2017, Sven Barth via fpc-pascal wrote:
>> > > So where is my cross compiler ??
>> > >
>> > > Thanks for any help and suggestions.
>> > A single compiler binary can always compile for all supported targets of
>> > that processor. So as long as all the units are available you simply
>> > need to pass "-Twin64" as additional parameter to compile for
>> > x86_64-win64.
>> Sigh. :) Any reason why Windows is different? No other OS has different
>> target arguments for different CPUs, because the CPU type already
>> specifies if its for 32 or 64bit... (fix me?)
Because MS called the apis win32/win64.
> I had asked the same some time ago and the historic reason was that especially the system unit was
> considered too different to have both of them be the same target... I don't agree either, but that's
> how it is... :/
Well, this is another story, win32/win64 can easily share as much as possible
More information about the fpc-pascal