Here, for example, in one dcu directory, a file formed from pas (ibid), in which part of the procedures and functions are compiled (included \ not included) depending on different DEFINEs in the my.inc file (ibid).

Question: if I remove the pas file, and I specify this dcu in the project, will it affect the compilation of the change in inc?

Those. if there is no source, will the project recompile take into account changes in the code (on / off function) depending on the settings in the inc file?

  • 2
    Do you know that dcu is the abbreviation " delphi compiled unit "? It is already compiled, then its linker connects it. With what settings (inclusion) compiled, with those and there. - teran
  • one
    if you have 100 different dcu at the output, then, of course, a dubious move, but there is no other like :) - teran
  • one
    to send a request about "reducing the size of the application" at the mercy of the linker with optimization enabled - Igor
  • 3
    @Gu. Savings on matches some kind of customer .. if this is the true reason, of course. - Kromster
  • 2
    With such a TK, there should be written application writing on Delphi 2 in order to reduce the size of the application ... And, by the way, if the unit is written in the directive {$ RTTI ... [] ... [] ... []} (see help), then it seems like the linker automatically and will connect "only the necessary \ used procedures". This can be checked by collecting in debug mode and looking at unused procedures - there should not be "points" for debugging next to them. - Alekcvp

0