On Wed, 7 Dec 2005, Micha Nelissen wrote:

Michael Van Canneyt wrote:
- However, the compiler does always recompile and link the program
  itself. It has no way of knowing whether it needs to or not, because
  the source files are not stored in the compiled program.

This story is incomplete. Why does the compiler know it does not need to compile a used unit, but does not know whether to recompile the main program unit ? It could store the checksum or whatever of the source file, like for units, in a .ppu.

I was describing what the compiler does. Not what it could do :-)

If the compiler would write a .ppu for the main program, then the
compiler could check this as well, of course.

The point is that lazarus can already detect itself whether it should
call the compiler or not. If no project related files were changed in
the IDE since the last succesful compile, then it should not call the
compiler at all.

Michael.

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to