Object file
An object file is a file that contains machine code or bytecode, as well as other data and metadata, generated by a compiler or assembler from source code during the compilation or assembly process. The machine code that is generated is known as object code. The object code is usually relocatable, and not usually directly executable. There are various formats for object files, and the same machine code can be packaged in different object file formats. An object file may also work like a shared library. The metadata that object files may include can be used for linking or debugging; it includes information to resolve symbolic cross-references between different modules, relocation information, stack unwinding information, comments, program symbols, and debugging or profiling information. Other metadata may include the date and time of compilation, the compiler name and version, and other identifying information. The term "object program" dates from at least the 1950s: A linker is...
An object file is a file that contains machine code or bytecode, as well as other data and metadata, generated by a compiler or assembler from source code during the compilation or assembly process. The machine code that is generated is known as object code. The object code is usually relocatable, and not usually directly executable. There are various formats for object files, and the same machine code can be packaged in different object file formats. An object file may also work like a shared library. The metadata that object files may include can be used for linking or debugging; it includes information to resolve symbolic cross-references between different modules, relocation information, stack unwinding information, comments, program symbols, and debugging or profiling information. Other metadata may include the date and time of compilation, the compiler name and version, and other identifying information. The term "object program" dates from at least the 1950s: A linker is used to combine the object code into one executable program or library pulling in precompiled system libraries as needed. ===Absolute files=== Many early computers, or small microcomputers, support only an absolute object format. Programs are not relocatable; they need to be assembled or compiled to execute at specific, predefined addresses. The file contains no relocation or linkage information. These files can be loaded into read/write memory, or stored in read-only memory. For example, the Motorola 6800 MIKBUG monitor contains a routine to read an absolute object file (SREC Format) from paper tape. DOS COM files are a more recent example of absolute object files. ==References== ==Further reading== Code: [ftp://ftp.iecc.com/pub/linker/] Errata: * (NB. Description of the Microsoft REL file format for relocatable objects, also used by Digital Research.) [https://www.seasip.info/Cpm/amsfid.html#PRL%20file%20format (16 pages) (1+23 pages) (1 page) (NB. Describes the history and relationship of IEEE 695 with CUFOM and MUFOM.) (NB. Supersedes IEEE 695-1985 (1985-09-09)).
References
- ^ "FatELF: Universal Binaries for Linux" . Retrieved 2020-08-02 . Wikipedia revision 1375395570, retrieved 2026-11-18 · 1596322800.0
- ^ Godse, Deepali A.; Godse, Atul P. (2008). Microprocessor (1 ed.). Pune, India: Technical Publications. pp. 3– 15. ISBN 978-81-8431-355-0 . Wikipedia revision 1375395570, retrieved 2026-11-18 · 1794956400.0
- ^ IBM OS Linkage Editor and Loader (PDF) . IBM Corporation . 1973. p. 16 . Retrieved 2012-08-06 . Wikipedia revision 1375395570, retrieved 2026-11-18 · 1344207600.0
- ^ Irvine, Kip R. (1993). Assembly language for the IBM-PC (2 ed.). New York, USA: Macmillan. ISBN 0-02-359651-1 . Wikipedia revision 1375395570, retrieved 2026-11-18 · 1794956400.0
- ^ Mauerer, Wolfgang (2010). "Appendix E. The ELF Binary Format" . Professional Linux Kernel Architecture . John Wiley & Sons . p. Appendix E. ISBN 978-0-470-34343-2 . Retrieved 2020-08-01 . Wikipedia revision 1375395570, retrieved 2026-11-18 · 1596236400.0
- ^ Wiles, Mike; Felix, Andre. MCM6830L7 MIKBUG/MINIBUG ROM (PDF) . Motorola Semiconductor Products, Inc . Retrieved 2020-07-31 . Wikipedia revision 1375395570, retrieved 2026-11-18 · 1596150000.0
- ^ Wrubel, Marshal H. (1959). A primer of programming for digital computers . New York, USA: McGraw-Hill . p. 222 . Retrieved 2020-07-31 . Wikipedia revision 1375395570, retrieved 2026-11-18 · 1596150000.0
- ^ "Universal Binaries and 32-bit/64-bit PowerPC Binaries" . OS X ABI Mach-O File Format Reference . Apple Inc. 2009-02-04 [2003]. Archived from the original on 2014-09-04. Wikipedia revision 1375395570, retrieved 2026-11-18 · 1794956400.0
Cite this
"Object file". 1789649904. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375395570 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy