Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2020-07

FPC for Win64

10 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Evert van Dijken

L.S.

I like to use the 64 bits FPC compiler, but I cannot find any documentation how to use it. I see a WIN32 compiler and a WIN64 cross compiler. How it works is a mystery for me. Can I still use the debugger and the development environment?

With kind regardst, Evert van Dijken De Hazelaar 5 6921XA Duiven (NL)
Graeme Geldenhuys
to Evert van Dijken
Evert van Dijken wrote
I see a WIN32 compiler and a WIN64 cross compiler. How it works is a mystery for me.

I never understood the choice FPC made to not create a native 64-bit compiler, but rather stay with a cross-compiler. *shrug* I've always simply downloaded the latest release source code, and built my own native 64-bit FPC with the previous FPC release.

I've done this for 10 years - simply because 10 years ago (there about) I had issues with the cross-compiler generating broken executables. Obviously that could have been a local problem, but either way, I didn't trust them since. So I compile my own native 64-bit version (just like I did for Linux and FreeBSD).

Regards,
Graeme

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp
Florian Klaempfl
to Graeme Geldenhuys
Graeme Geldenhuys wrote 6 lines
On 02/07/2020 9:30 pm, Evert van Dijken via fpc-pascal wrote: > I see a WIN32 compiler and a WIN64 cross > compiler. How it works is a mystery for me. I never understood the choice FPC made to not create a native 64-bit compiler, but rather stay with a cross-compiler. *shrug*

The main reason is: a win64 hosted compiler cannot cross compile properly to any other x86-64 target due to missing extended support.

Jonas Maebe
to Evert van Dijken: L.S. I like to use the 64 bits FPC compiler, but I cannot find any documentation how to…
Evert van Dijken wrote
I like to use the 64 bits FPC compiler, but I cannot find any documentation how to use it. I see a WIN32 compiler and a WIN64 cross compiler. How it works is a mystery for me. Can I still use the debugger and the development environment?

You should install both fpc-3.2.0.i386-win32.exe and fpc-3.2.0.i386-win32.cross.x86_64-win64.exe. The fact that that the Win64 compiler is a cross-compiler should not affect you at all in terms of using it. You can indeed still use the debugger. I don't know whether a version of the textmode IDE is included for targeting Win64.

Jonas

Florian Klämpfl
to Jonas Maebe
Jonas Maebe wrote 12 lines
On 2020-07-02 22:30, Evert van Dijken via fpc-pascal wrote: > I like to use the 64 bits FPC compiler, but I cannot find any > documentation how to use it. I see a WIN32 compiler and a WIN64 cross > compiler. How it works is a mystery for me. Can I still use the > debugger and the development environment? You should install both fpc-3.2.0.i386-win32.exe and fpc-3.2.0.i386-win32.cross.x86_64-win64.exe. The fact that that the Win64 compiler is a cross-compiler should not affect you at all in terms of using it. You can indeed still use the debugger. I don't know whether a version of the textmode IDE is included for targeting Win64.

No. But at least at libgdb I got the debugger never working, so it made no sense to me.

Sven Barth
to Florian Klämpfl

Florian Klämpfl schrieb am So., 5. Juli 2020,
09:22:

Show quoted text 17 lines
Am 05.07.20 um 09:04 schrieb Jonas Maebe: > On 2020-07-02 22:30, Evert van Dijken via fpc-pascal wrote: > >> I like to use the 64 bits FPC compiler, but I cannot find any >> documentation how to use it. I see a WIN32 compiler and a WIN64 cross >> compiler. How it works is a mystery for me. Can I still use the >> debugger and the development environment? > > You should install both fpc-3.2.0.i386-win32.exe and > fpc-3.2.0.i386-win32.cross.x86_64-win64.exe. The fact that that the > Win64 compiler is a cross-compiler should not affect you at all in terms > of using it. You can indeed still use the debugger. I don't know whether > a version of the textmode IDE is included for targeting Win64. No. But at least at libgdb I got the debugger never working, so it made no sense to me.

With the new MI based interface it might work however.

Regards,
Sven

Rainer Stratmann
to Graeme Geldenhuys: I never understood the choice FPC made to not create a native 64-bit compiler, but rather…
Graeme Geldenhuys wrote 14 lines
On 02/07/2020 9:30 pm, Evert van Dijken via fpc-pascal wrote: > I see a WIN32 compiler and a WIN64 cross > compiler. How it works is a mystery for me. I never understood the choice FPC made to not create a native 64-bit compiler, but rather stay with a cross-compiler. *shrug* I've always simply downloaded the latest release source code, and built my own native 64-bit FPC with the previous FPC release. I've done this for 10 years - simply because 10 years ago (there about) I had issues with the cross-compiler generating broken executables. Obviously that could have been a local problem, but either way, I didn't trust them since. So I compile my own native 64-bit version (just like I did for Linux and FreeBSD).

For Linux: Does that mean apt-get install lazarus is always the 32bit version? Regardless of the Linux Version (32bit or 64bit).

Regards, Graeme
Marco van de Voort
to Rainer Stratmann

Op 07/07/2020 om 09:14 schreef Rainer Stratmann:

For Linux: Does that mean apt-get install lazarus is always the 32bit version? Regardless of the Linux Version (32bit or 64bit).

No. The reason for no 64-bit compiler is specific to Windows 64-bit.

Rainer Stratmann
to Marco van de Voort
Marco van de Voort wrote 5 lines
Op 07/07/2020 om 09:14 schreef Rainer Stratmann: > For Linux: Does that mean apt-get install lazarus is always the 32bit > version? Regardless of the Linux Version (32bit or 64bit). No. The reason for no 64-bit compiler is specific to Windows 64-bit.

Then how to install a 32-bit Lazarus/FPC on a 64-bit Linux Debian System?

Tomas Hajny
to Rainer Stratmann
Rainer Stratmann wrote 9 lines
Am Dienstag, 7. Juli 2020, 09:42:54 CEST schrieb Marco van de Voort: > Op 07/07/2020 om 09:14 schreef Rainer Stratmann: > > For Linux: Does that mean apt-get install lazarus is always the 32bit > > version? Regardless of the Linux Version (32bit or 64bit). > > No. The reason for no 64-bit compiler is specific to Windows 64-bit. Then how to install a 32-bit Lazarus/FPC on a 64-bit Linux Debian System?

In general - talking about tools like apt, these provide means for selecting the requested architecture (32-bit or 64-bit). Whether the respective packages are ready for such tools is another question and more appropriate for people responsible for packages in the individual Linux distributions.

As far as FPC is concerned, there's nothing preventing you to install the 32-bit version on a 64-bit Linux Debian system. I believe that there's no ready-made package providing a 32-bit hosted 64-bit cross-compiler for Linux in our builds at the moment, because it's easier to install both 32-bit and 64-bit versions side by side in cases like this (i.e. the cross-compiler would be really needed only for users interested in building 64-bit applications on a 32-bit machine, but there probably aren't too many people with such a need and they can always build it for themselves). I can't talk about Lazarus.

Tomas