[fpc-pascal] When are used units recompiled? (wiki page added)

Tom Verhoeff T.Verhoeff at tue.nl
Fri Apr 7 12:26:47 CEST 2006


On Thu, Apr 06, 2006 at 11:04:02PM +0200, Jonas Maebe wrote:
> 
> On 6 apr 2006, at 22:59, Tom Verhoeff wrote:
> 
> >This raises the concern that precompiled units become obsolete when
> >the user of such a unit upgrades the compiler.  The compiler  
> >apparently
> >requires that the System unit of the precompiled unit and of the using
> >program are IDENTICAL (which is enforced by the somewhat weaker check
> >of comparing their checksums; but in practice that will have the same
> >effect).
> 
> The checksum is only calculated on the interface (i.e. all exported  
> symbols), it's not a generic binary checksum of the entire unit.

OK.  I didn't know that, and haven't found it in the documentation
(or have I missed it?).  I have updated the wiki page accordingly.

	Tom
-- 
E-MAIL: T.Verhoeff @ TUE.NL     | Fac. of Math. & Computing Science
PHONE:  +31 40 247 41 25        | Eindhoven University of Technology
FAX:    +31 40 247 54 04        | PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/  | The Netherlands



More information about the fpc-pascal mailing list