(1) A portion of a computer program sufficiently complete to be compiled correctly. IBM. (2) A single compiled file and all its associated include files. (3) An independently compilable sequence of high-level language statements. Each high-level language product has its own rules for what makes up a compilation unit.
A portion of a computer program sufficiently complete to be compiled correctly. IBM. See translation unit.
A program unit, displayed as a graphical icon in AdaVision, which is compiled as an independent text. It may be the specification or body of a subprogram or package, including generic units and subunits. ( See also Library unit.)
A compilation unit is the declaration or the body of a program unit, presented for compilation as an independent text. It is optionally preceded by a context clause, naming other compilation units upon which it depends by means of one more with clauses.
a file containing PL/SQL source code that is passed to the compiler
a Java class or interface
"The term compilation unit is used to refer to a compilation_unit. When the meaning is clear from context, the term is also used to refer to the library_item of a compilation_unit or to the proper_body of a subunit". [ISO/IEC 8652:1995, 10.1.1(9)]. ASIS says "ASIS compilation unit" when the intent is to stress, that the ASIS viewpoint on an Ada compilation unit is described in the ASIS standard. Note, that the term "compilation unit" can refer to either syntactical category "compilation_unit" or to the library_item of a compilation_unit or to the proper_body of a subunit (that is, the compilation_unit without the context_clause and the separate (parent_unit_name)).
The text of a program can be submitted to the compiler in one or more compilations. Each compilation is a succession of compilation_units. A compilation_unit contains either the declaration, the body, or a renaming of a program unit.
The smallest unit of source code that can be compiled. In the current implementation of the Java platform, the compilation unit is a file.
A portion of a program which can be submitted to the compiler independently; a package specification or body, a subprogram body or a generic instantiation.
The smallest element of an Ada program that may be independently compiled. Formally, a compilation unit may be one of seven syntactic entities: a package specification, a package body, a subprogram specification, a subprogram body, a generic specificationspeciosities and body together, a library unit that is a generic instantiation, or a subunit. Names of compilation units are either the Ada subprogram name of the unit or (for Ada subunits) the name of the unit's ultimate ancestor followed by a period, (.), followed by the Ada subprogram name of the subunit.
The source code for a Java class. A compilation unit normally contains a single class definition, and in most current development environments is just a file with a .java extension.
The source file or files that are compiled together to form a single object file, possibly using interprocedural optimization across source files. Only one f90 command is used for each compilation, but one f90 command can specify that multiple compilation units be used.