[lazarus] Win32 Code Analysis

Florian Klaempfl florian at klaempfl.de
Sat Mar 31 03:49:05 EST 2001


At 15:34 30.03.01 +0000, you wrote:
>After reading the discussion about the problems which occured in the Win32 
>code. I have decided to analysis the code and rewrite it in Delphi 5. I 
>believe that the development will be quicker and also produce faster and 
>smaller exe.

I doubt this :)
We tried to compile FPC itself with Delphi 4 and Delphi 5 and our experiences
were very bad:
First, it took a lot of time to work around the delphi compiler bugs, the
main problems were the unit interdependencies and the optimizer.

Secondly (if you get something running), the compiler compiled by delphi
is two times slower than a compiler compiled by FPC :).
Reasons:
- the Delphi heap manager is slow
- the optimizer was switched off for several units (see above)
- the Delphi register allocator is good when your using
   simple expressions while the FPC sources are full of
   rather complex expressions

So I don't think that it is easy to compile Lazarus with Delphi. Afaik
the Delphi IDE isn't written in Delphi either...






More information about the Lazarus mailing list