Everything About ___
Live briefing

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

  1. Read the overview: Translation unit (programming)A 5-minute orientation
  2. Pick up a classic book: CTSA Program at NIHThe most-reprinted book on the subject
  3. Read the landmark paper: Address Translation in a Compositional Microprogram Control UnitCited 0 times
  4. Go sideways: C preprocessorA closely related topic
  5. Go sideways: Single compilation unitA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Context

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics