In the Delphi domain, `DCU` stands for Delphi Compiled Unit. A `DCU` is a persistent file used by the Delphi compiler.
In the Delphi domain, DCU
stands for Delphi Compiled Unit. A DCU
is a persistent file used by the Delphi compiler.
A DCU
file is an intermediate file format between the source code contained in a Delphi unit and the object files used during the linking of a program. It's automatically generated by the compiler.
As this file is persistent, it's one of the keys of the Delphi compiler speed. It avoids, during a simple compilation, to recompile all the units used by a project (including the packages). To force a full compilation, the user has rather, according to the Delphi IDE dialect, to build a project, which regenerates each DCU
even if they have already been precompiled in a DCU
.