Lazarus: The Cross Platform Compiler (part I)

Get checked this out after friend of friend told me about the (very) multi platform compiler existed. It named Lazarus, an open source compiler project published at sourceforge.net. The developers are too serious to work on it since it released on 3 different OS platform simultaneously! Window$, Linux (RPM & Debian packages) & Mac OS.

The latest version are 0.9.2 & the whole stuffs is available to download. I tried to download the both version Window$ & Linux since it is important to support my incoming projects. I'd like to compared, make a short reviews & this is my first article.

Window$ setup file come in a single exe package. The size is quite small for ordinary compiler, it's only 49Mb. While Linux version are come in 2 packages. One package are the Lazarus RPM core with the size of 48Mb & the rest is the compiler source, nearly 18Mb.

Generally, I guessed that this product was designed on top of the Free Pascal Compiler (FPC) but it was true indeed. I had installed on both machine Window$ XP & Fedora Core 4 Linux (with custom kernel 2.6.17), there were no problem at all. The Lazarus splash shown continued by it IDE’s loading progress. The IDE's is similarly look like Delphi but it’s not compatible with the Delphi Projects DPR files. There are multiple window covered the monitor. The components tabs are arranged & so comprehensive included it’s native support with common database server such as Oracle, PostgreSQL & MySQL (version 4.0, 4.1, 5.x).



I tried to analyzed a default project loaded & I found that the source architectures was completely same as Delphi had. Off course there was a little bit differences with the initialization header & the compiler directives. I tried to put a button on the form and added a Delphi close application syntax. The compilation command are followed by a shortcut key Ctrl+F9, an usual way with Pascal.

The compilation result will created an EXE file on Window$, while Linux will created an ELF binary executable file. The next interesting part is the executable file size. It was 600% larger than an executable file created with Delphi. 6700Kb compared to 300Kb with it’s default form equipped a button & a close command. I though that the problem was related to the incomplete code optimization or something.

Tomorrow, I’ll post the next article regarding to database link within Lazarus native component

Sincerelly,

Eko Wahyudiharto
PS: If you've benefit from this blog,
you can support it by making a small contribution.

Enter your email address:

Delivered by FeedBurner

Post a Comment Bookmark and Share

 

  1. Anonymous Anonymous said,

    Friday, December 15, 2006 7:54:00 PM

    About executable size, see Lazarus FAQ.

  2. Blogger Eko Wahyudiharto said,

    Tuesday, December 19, 2006 8:20:00 AM

    Thanks for your comments. Anyway, I wonder that it would increasing the speed of database connection regarding to my benchmark test in my last articles of Lazarus. Would it be? (I'm not testing it yet already)

  3. Blogger DevRabbit IT Solutions Inc. said,

    Tuesday, December 27, 2016 7:07:00 PM

    Hello,
    The Article on The Cross Platform Compiler Lazarus is Nice.It Explain the process about the Compilier give detail information about it.Thanks for Sharing the information about it.Xamarin Consultant

Post a Comment

Leave comments here...