Object file

Object file

In computer science, an object file is an organized collection of separate, named sequences of machine code[citation needed]. Each sequence, or object, typically contains instructions for the host machine to accomplish some task, possibly accompanied by related data and metadata (e.g. relocation information, stack unwinding information, comments, program symbols, debugging or profiling information). A linker is typically used to generate an executable or library by combining parts of object files.

Object file formats

An object file format is a computer file format used for the storage of object code and related data typically produced by a compiler or assembler.

There are many different object file formats; originally each type of computer had its own unique format, but with the advent of Unix and other portable operating systems, some formats, such as COFF and ELF, have been defined and used on different kinds of systems. It is common for the same file format to be used both as linker input and output, and thus as the library and executable file format[citation needed].

The design and/or choice of an object file format is a key part of overall system design. It affects the performance of the linker and thus programmer turnaround while developing. If the format is used for executables, the design also affects the time programs take to begin running, and thus the responsiveness for users. Most object file formats are structured as blocks of data, each block containing a certain type of data (see Memory segmentation). These blocks can be paged in as needed by the virtual memory system, needing no further processing to be ready to use.

One simple object file format is the DOS .COM format, which is simply a file of raw bytes that is always loaded at a fixed location. Other formats are an elaborate array of structures and substructures whose specification runs to many pages.

Debugging information may either be an integral part of the object file format, as in COFF, or a semi-independent format which may be used with several object formats, such as stabs or DWARF.

The GNU Project's Binary File Descriptor library (BFD library) provides a common API for the manipulation of object files in a variety of formats.

Types of data supported by typical object file formats:

See also


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • object file — ob ject file, object program ob ject program, n. (Computers) A computer program which has been translated into machine language by a compiler and assembler, but not yet linked into an executable program; sometimes called an {obj file}, because… …   The Collaborative International Dictionary of English

  • Object File Format — bezeichnet ein sehr einfaches Datenformat, das einen aus beliebigen Polygonen zusammengesetztes Polyeder beschreibt und häufig von wissenschaftlichen Programmen verwendet wird, die mit 3D Daten arbeiten. Die Namenserweiterung für diese Dateien… …   Deutsch Wikipedia

  • Common Object File Format — Das Common Object File Format (COFF) ist ein Binärformat für Programme und Objektdateien. Eingeführt wurde es für Unix System V Systeme und findet heutzutage vor allem für Windows Verwendung. Für Dateiendungen wird es gerne als COF oder auch OBJ… …   Deutsch Wikipedia

  • Video Recording Object file — Vro (Video Recording Object file) est un format de fichiers informatiques présent sur certains DVD utilisés pour de la vidéo : DVD RAM (qui ne peuvent être finalisés ), permettant notamment le time shifting lors de l enregistrement DVD RW… …   Wikipédia en Français

  • Object Action Interface — Object Action Interface, also abbreviated as OAI, is an extension to the Graphical User Interface, especially related to Direct Manipulation User Interface. It emphasises upon how Direct Manipulation User Interface (DMUI) can help to create… …   Wikipedia

  • object program — object file ob ject file, object program ob ject program, n. (Computers) A computer program which has been translated into machine language by a compiler and assembler, but not yet linked into an executable program; sometimes called an {obj file} …   The Collaborative International Dictionary of English

  • Object — may refer to: Object (philosophy), a thing, being or concept Entity, something that is tangible and within the grasp of the senses As used in object relations theories of psychoanalysis, that to which a subject relates. Object (grammar), a… …   Wikipedia

  • Object code — Object code, or sometimes object module, is what a computer compiler produces.[1] In a general sense object code is a sequence of statements in a computer language,[2] usually a machine code language.[3] See also Object file References …   Wikipedia

  • Object language — An object language is a language which is the object of study in various fields including logic, linguistics, mathematics and theoretical computer science. The language being used to talk about an object language is called a metalanguage. An… …   Wikipedia

  • File format — A file format is a particular way that information is encoded for storage in a computer file. Since a disk drive, or indeed any computer storage, can store only bits, the computer must have some way of converting information to 0s and 1s and vice …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”