Definition - What does Compilation Unit mean?
Definitions and declarations within the compilation unit establish the scope of data objects.
Techopedia explains Compilation Unit
Compilation units are crucial to identify the scope of identifiers, and to determine the linkage of identifiers with other external and internal identifiers.
A compilation unit may relate to functions or data in other compilation units in the below given means:
- A function in one compilation unit could very well call a function in a completely different compilation unit.
- External linkage can be assigned to data objects to ensure that other compilation units can access them.