[Lazarus] Large program size - 1.8 MB for empty GUI project

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Apr 8 00:12:58 CEST 2009


Marc Weustink schrieb:

> No, but the problem is caused by the way fpc stores info in the .ppu
> Somehow it is possible that the checksum of the interface part stored in 
> the .ppu is affected by the implementation section.

Just a note: some people think that units can be compiled in one pass - 
this is not true. The compiler must stop on every Uses clause, and 
compile at least the interface parts of all the used units. This is why 
circular unit references are disallowed in the interface section, they 
would block the compilation of the interface parts of all units in that 
loop.

IMO there exists a severe design flaw in FPC, when the compilation of 
the implementation part of some unit can change the checksum of its 
interface part.

DoDi




More information about the Lazarus mailing list