Recent

Author Topic: Is this Pascal Compiler the same as Embarcadero's?  (Read 457 times)

HKPhysicist

  • New member
  • *
  • Posts: 8
Is this Pascal Compiler the same as Embarcadero's?
« on: January 18, 2026, 10:32:34 am »
Hello Friends,
I am new to Pascal.  Here is my first question:

Is this Lazarus Pascal Compiler the same as Embarcadero Delphi's?


Yours faithfully.

cdbc

  • Hero Member
  • *****
  • Posts: 2600
    • http://www.cdbc.dk
Re: Is this Pascal Compiler the same as Embarcadero's?
« Reply #1 on: January 18, 2026, 10:41:46 am »
Hi
Nope!
This one is FPC - (F)ree (P)ascal (C)ompiler and it tries very hard to be Delphi compatible, so much so, that in most situations you _can_ use it as a direct plugin-replacement...  8)
It is however its own, e.g.: it had Generics before Delphi did.
In other words, It's a very good compiler!
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12087
  • Debugger - SynEdit - and more
    • wiki
Re: Is this Pascal Compiler the same as Embarcadero's?
« Reply #2 on: January 18, 2026, 10:52:50 am »
FPC is a compiler of its own.

But it compiles the same language, and it has a compatibility mode, that can compile many (but not all) Delphi projects just as they are.

Similar if you have a Delphi project, and it uses the "VCL" then you need the LCL as replacement, which in some case can be a one to one replacement, but other times needs some changes.

It is possible and some people have done it, to write code that can be compiled in Delphi and Lazarus/FPC without need of changes. Though often small details need IFDEF.



It also depends which version of Delphi you compare with. If you are comparing to the latest Delphi, then there are differences.

Details like dotted unit names, and widestring RTL are only available in the development branch of FPC. They haven't yet been released.

HKPhysicist

  • New member
  • *
  • Posts: 8
Re: Is this Pascal Compiler the same as Embarcadero's?
« Reply #3 on: January 18, 2026, 11:11:59 am »
I am planning to develop applications with Pascal on ARM64 SoC such as BeaglePlay or BeagleY-AI.

Their hardware are very tough and cool, but I hate to develop with C++.  I find it very hard to read.

 

TinyPortal © 2005-2018