* * *

Author Topic: Free Pascal IDE how to use 64bit Compiler  (Read 445 times)

alfware17

  • New member
  • *
  • Posts: 17
Free Pascal IDE how to use 64bit Compiler
« on: November 08, 2018, 07:05:14 pm »
Hallo,
I thought I would never in my live ask that question because I am rather fan of 16 bit (and 32  ::) )
But where can I call the 64bit compiler from the Free Pascal IDE?! :-*
I installed the Cross Compiler 64bit (3.0.4) for Windows and can call it at command line.
The program works fine, maybe have to do some modifications I dont see by now.
But in the IDE?   "Options, Compile" - "Compile, target" (only Win32 options)  I didnt find.
Who can help. thanks.

ASBzone

  • Jr. Member
  • **
  • Posts: 84
  • Automation leads to relaxation...
    • BrainWaveCC Utilities
Re: Free Pascal IDE how to use 64bit Compiler
« Reply #1 on: November 08, 2018, 07:49:50 pm »
I don't know the answer to that question if you're not using Lazarus as your IDE.

In Lazarus, from the menu, select the following:

Project --> Project Options --> Compiler Options --> Config and Target

-ASB: https://www.BrainWaveCC.com

Lazarus 1.8.4 + FPC 3.0.4 (32-bit w/64-bit cross-compile)
Occasional testing of NewPascal
Windows 10 Pro x64, Version 1803 (Build 17134.228)

(Technically, I logon to these forums from multiple versions of Windows Pro/Enterprise...)

lucamar

  • Sr. Member
  • ****
  • Posts: 325
Re: Free Pascal IDE how to use 64bit Compiler
« Reply #2 on: November 08, 2018, 08:38:37 pm »
The fp IDE uses its own internal compiler, not the installed command-line one, so it doesn't matter whether you install a cross-compiler.

If anything, you may try building a 64-bit IDE with it, but note that I'm not sure if it can be done. It it can be, it would be nice if you told us ;D

Best of lucks.
Been there, done that ... barely kept the timelines.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 1.8.4/fpc 3.0.4 - Ubuntu 10, Kubuntu 14, Windows XP SP3 (Home & Prof.) and various DOS incarnations.

Thaddy

  • Hero Member
  • *****
  • Posts: 7101
Re: Free Pascal IDE how to use 64bit Compiler
« Reply #3 on: November 09, 2018, 06:35:03 am »
The fp IDE uses its own internal compiler, not the installed command-line one, so it doesn't matter whether you install a cross-compiler.

If anything, you may try building a 64-bit IDE with it, but note that I'm not sure if it can be done. It it can be, it would be nice if you told us ;D

Best of lucks.
Yes that can be done. I am actually always using it both on Linux 64 and Windows 10 64.
Simply:
Code: Bash  [Select]
  1. make clean all install OS_TARGET=win64 CPU_TARGET=x86_64 IDE=1 GDBMI=1 PP=\the\path\to\bootstrap\ppcx64.exe
Given a 64 bit starting compiler or a 32 bit cross-compiler for win64 this will usually do the trick. The above compiles a full 64 bit FPC including a 64 bit textmode IDE fp.exe.
On Linux64 just change OS_TARGET=linux, change ppcx64.exe to just ppcx64 (and use a linux path /).
I am not quite sure if IDE=1 is actually still necessary, but it used to be and it doesn't harm to leave it in. This is a very old tried and tested recipe.
GDBMI=1 is the default in 3.2.0 so may also not be necessary. It requires a recent GDB, though. Higher than GDB 7.2. If for some reason you must use an older GDB, leave it out.

You can even build a 32 bit IDE that targets x86_64 (e.g. make crossall crossinstall IDE=1 PP=\a\32\bit\ppcrossx64) but it has been a long time ago I built such a beast. Not recommended.
« Last Edit: November 09, 2018, 06:59:24 am by Thaddy »
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

alfware17

  • New member
  • *
  • Posts: 17
Re: Free Pascal IDE how to use 64bit Compiler
« Reply #4 on: November 09, 2018, 02:44:54 pm »
Hey Thaddy,
I never built my own IDE ::)
But when it helps... Please tell me, where must I do (tried just the installed ..\bin\x86_64-win directory where I found the ppcx64.exe)
I got a message "no rule to make target 'clean' "
I do need the sources?! :) I guess you mean that by GDB?
I was just wondering why there wasn't any 64bit IDE for that. Nobody needs? I can compile my program with batch fpc, no problem.
I have no special code or functions I need the help of the IDE with, I only wanted to make effort of my ful computers memory with
compile 64bit because under 32bit the heap is smaller and then my program starts divide and rule ;D

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus