

Native code uses less memory, and is easier to Native code remains faster than interpreted and JIT languages,Įven when pre-compiled. Comparing the response of the popular Java IDEĮclipse with the response of Lazarus will quickly convince one of theĭifference. One can wonder whether the speed of benchmarks says anything about real Smaller, but these use 14 (PHP) to 17 (Java) times more memory than FPC Compared to interpreted languages, one sees that FPC codeĮxecutes 50 times faster than e.g. In contrast, FPC code uses less memory than GCC The speed of the generated code is comparable to the GCC compiler: according to the Shootout benchmarks, the FPC 2.0.4 code is 30% slower code than GCC. This may seem to be of little importance, but it cuts downĭevelopment time. list classes.įPC is a fast compiler: FPC compiles code roughly 7 times faster than for New in version 2.2 is the experimental support for generics (templates). In the past, the FPC added several new features to the pascal language, suchĪs operator overloading – later also implemented by commercial compilers. This makes FPC and Lazarus the first big open-source This enables theĬompiler to generate 64-bit Windows binaries, when the GNU utilities do not Produce windows binaries, FPC has an internal linker. Needs the GNU linker to compile ELF binaries, and it needs to have a copy ofĪll needed libraries available. All that is required for this is a standardĬompiling from Windows to Linux is slightly more difficult: the compiler Supplying a compiler option: A recompile will then produce a windowsĮxecutable that works directly on any Windows version – without the need for All that is needed to make a Windows version of this application is Using Lazarus, an application can be developed on Linux, and it will use On Linux GTK 1 or 2 is used, and both a Qt and Carbon native layer are nearing their completion. With the same principles in mind as when designing FPC: The LCL (LazarusĬlass Library) delivered with Lazarus makes it possible to develop desktopĪpplications that use the standard Windows 32 or 64 API. Problem: the IDE (Integrated Development Environment) Lazarus is designed Graphical (Desktop) applications are the norm these days. This almost completely removes the need for These operating system details: The FCL knows where and how each system Using the FPC routines (for instance the TRegistry class) will take care of Such as ‘c:\program files’ or a configuration file in ‘/etc/myprog.cfg’, It is self-evident that direct references to operating specific directories Linux, but also on Windows, Free BSD, Mac OS X, Windows CE and more. Refrains from using system-dependent APIs, his program will not only run on As long as a programmer uses these libraries and Takes care of XML, Web programming, database access, image manipulation or a test-unit framework. The FCL (Free Class Library) is an object oriented library that (Run-Time Library) provides basic functionality such as file-access,Ĭlasses, string manipulation and RTTI (Run-Time Type Information) for The Free Pascal compiler comes with a rich set of code libraries: The RTL Programs have a strange look-and-feel on the non-native platforms. Simulations require cumbersome libraries and installations, and often the While those can be simulated on other platforms, these The reason Free Pascal code is portable is simple: it offers a large set ofĬross-platform standard routines, bypassing the differences between PosixĪnd Windows API’s. Obviously,Ĭross compiling from one platform (say, Linux) to another (Windows is a To another platform is sufficient for porting to a new system. Tools like autoconf and configure: The programmer does not need to look forĪll kinds of libraries: copying the compiler and the sources of the project Makefiles, which differ per platform, and which need to be generated with This feature removes the need for laborious writing of complicated Of this compiler has been focused on this aspect ever since the start of the The biggest advantage of FPC is that it is cross-platform. Nevertheless, FPC has enough features to make it the language of choice for programmers. Think of Pascal as an old language, no longer used, which has lost the battle with C a long time ago. Specifically, the development of Lazarus has contributed to this phenomenon: Lazarus is a graphical open source IDE for FPC, with an extensive tool kit to design graphical (GUI) applications.įor many programmers, the renewed interest in Pascal is surprising. Daily, more programmers discover FPC and develop their applications in Object Pascal. This open source Pascal compiler has – since its initial release in 1993 – grown to be one of the most sophisticated open source compilers available today. Recently, Free Pascal (FPC) version 2.2.0 was released.
