Everything about Translation unit (programming)
Input to a C or C++ compiler from which an object file is generated
In C and C++ programming language terminology, a translation unit is the ultimate input to a C or C++ compiler from which an object file is generated. A translation unit roughly consists of a source file after it has been processed by the C preprocessor, meaning that header files listed in #include directives are literally included, sections of code within #ifndef may be included, and macros have been expanded. A C++ module also comprises a single translation unit, though while in a module #include directives will be expanded, import statements do not undergo expansion and thus are not. Wikipedia →
đź§ Start here: a 6-step reading path
- Read the overview: Translation unit (programming)A 5-minute orientation
- Pick up a classic book: CTSA Program at NIHThe most-reprinted book on the subject
- Read the landmark paper: Address Translation in a Compositional Microprogram Control UnitCited 0 times
- Go sideways: C preprocessorA closely related topic
- Go sideways: Single compilation unitA closely related topic
đź“– Definitions
No dictionary entry for this exact phrase.
🗂️ The subject at a glance
🏆 Landmark papers (most cited)
📚 Books worth reading
- 📕CTSA Program at NIHNational Center for Advancing Translational Sciences Awards Program Committee, Institute of Medicine Staff Board on Health Sciences Policy · 2013
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
đź”— Related topics
- C preprocessor The C preprocessor (CPP) is a text file processor that is used with C, C++ and other programming tools. The preprocessor provides for file inclusion (often…
- Single compilation unit Single compilation unit (SCU) is a computer programming technique for the C and C++ languages, which reduces compilation time for programs spanning multiple…
- Include directive An include directive instructs a text file processor to replace the directive text with the content of a specified file. The act of including may be logical…
- Unity build In software engineering, a unity build (also known as unified build, jumbo build or blob build) is a method used in C and C++ software development to speed…
- Precompiled header In computer programming, a precompiled header (PCH) is a (C or C++) header file that is compiled into an intermediate form that is faster to process for…
- Directive (programming) In computer programming, a directive or pragma (from "pragmatic") is a language construct that specifies how a compiler (or other translator) should process…
- Linkage (software) In programming, linkage describes how names can or can not refer to the same entity throughout the whole program or one single translation unit. The static…
- Modules (C++) Modules in C++ are a feature added in C++20 implementing modular programming as a modern alternative to precompiled headers. A module in C++ comprises…