COFF
COFF (Common Object File Format) is a widely used file format for executable, object code, and shared library files. It was originally developed by Unix System Laboratories (USL) and has since become a standard format for many operating systems, including Unix, Linux, and Windows.
Overview[edit | edit source]
COFF is designed to store various types of data related to executable and object code files. It provides a structured format that allows for efficient storage and retrieval of information. COFF files typically contain sections that store code, data, and other related information.
History[edit | edit source]
The development of COFF can be traced back to the early days of Unix. In the late 1980s, USL introduced COFF as a replacement for the older a.out format. COFF offered several advantages over its predecessor, including support for multiple sections, improved debugging capabilities, and better compatibility with different architectures.
Structure[edit | edit source]
A COFF file consists of several sections, each serving a specific purpose. The most common sections found in a COFF file include:
1. Text Section: This section contains the executable code of the program or library.
2. Data Section: This section stores initialized data, such as global variables and constants.
3. BSS Section: This section is used for uninitialized data. It reserves space for variables that will be initialized at runtime.
4. Symbol Table: The symbol table contains information about the symbols defined and used in the file. Symbols can include functions, variables, and other program elements.
5. Relocation Table: This table provides information about the locations in the code or data sections that need to be modified during the linking process.
Usage[edit | edit source]
COFF files are used in various stages of the software development process. During compilation, the compiler generates COFF object files that contain the compiled code and related information. These object files are then linked together to create the final executable or shared library.
COFF files are also used for debugging purposes. Debuggers can read the symbol and relocation tables in a COFF file to provide information about the program's execution and aid in troubleshooting.
Related Formats[edit | edit source]
COFF has influenced the development of other file formats, such as the Portable Executable (PE) format used by Windows. PE is an extension of COFF and includes additional features specific to the Windows operating system.
See Also[edit | edit source]
References[edit | edit source]
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD