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

Tom Verhoeff T.Verhoeff at tue.nl
Fri Apr 7 22:14:33 CEST 2006


On Fri, Apr 07, 2006 at 01:25:52PM +0200, Michael Van Canneyt wrote:
> 
> On Fri, 7 Apr 2006, Tom Verhoeff wrote:
> 
> >I just happened to be bitten by it in an unexpected way.  If it is
> >properly documented, then there is no issue.  I have tried to remedy
> >that by creating the wiki page on relasing units without source code.
> >It could be helpful if an FPC developer checks that page:
> >
> ><http://www.freepascal.org/wiki/index.php/Releasing_units_without_source_code>
> >It might be useful to include a bit in the User's Manual as well
> >(updated Section 3.3 on Compiling a unit).
> 
> You note somewhere that:
> 
> "(The User's Manual is not up to date on this topic, I believe.
>   If you know more details, e.g. from which version on this
>   changed, then please put it here.)"
> 
> Can you tell me what you mean by this ?

The current on-line User's Guide (HTML version), at the end of
Section 3.3 (Compiling a unit), contains the paragraph:

	The compiler produces lowercase files, so your unit will be found,
	even if your source file has uppercase letters in it.  Only when
	the compiler tries to recompile the unit, it will not find your
	source because of the uppercase letters.

I don't believe this is any longer the case.  But I don't know
for what version of the compiler this stopped to be a necessity.
At some version, the compiler started preserving the casing of
the source file in the generated *.ppu and *.o files.

It would be good to state explicitly in the User's Guide to what versions
of the compiler the paragraph applies, and to add an explanation of what
the situation is with newer versions.

It wouldn't hurt to point in Section 3.3 to the compiler option -Ur.

	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