[lazarus] Win32 Code Analysis

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sat Mar 31 07:55:18 EST 2001




On Sat, 31 Mar 2001, Florian Klaempfl wrote:

> 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

Resulting in internal error U701 or so...

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

It is. The IDE is written in Delphi, or C++ builder. Which is the same.

The compiler backend is written in C(++)

Michael.






More information about the Lazarus mailing list