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

Marco van de Voort marcov at stack.nl
Wed Apr 8 13:54:23 CEST 2009


On Wed, Apr 08, 2009 at 12:12:58AM +0200, Hans-Peter Diettrich wrote:
> 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

/load/

> 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.

Why are you so sure it is design, and not merely implementation?



More information about the Lazarus mailing list