Object file format

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(make it generic)
Line 7: Line 7:
 
There isn't one single "object file format", as the formats are platform and system architecture specific, though standards have sometimes emerged in families of operating systems (e.g., Unix-like systems). Object files of various formats frequently use .obj and .o file extensions.
 
There isn't one single "object file format", as the formats are platform and system architecture specific, though standards have sometimes emerged in families of operating systems (e.g., Unix-like systems). Object files of various formats frequently use .obj and .o file extensions.
  
On Intel chip architectures such as have been used for the PC-DOS/Windows platforms, a format called Relocatable Object Module Format is used. Unix-style systems typically use formats based on [[COFF]].
+
On Intel chip architectures such as have been used for the PC-DOS/Windows platforms, a format called [[Relocatable Object Module Format]] is used. Unix-style systems typically use formats based on [[COFF]] or [[ELF]].
  
 
This program/executable format should not be confused with other unrelated uses of the term "object file" for files containing representations of [[3D and CAD/CAM Models|3D objects]], some of which confusingly use .obj extensions also.
 
This program/executable format should not be confused with other unrelated uses of the term "object file" for files containing representations of [[3D and CAD/CAM Models|3D objects]], some of which confusingly use .obj extensions also.
Line 13: Line 13:
 
== Links ==
 
== Links ==
 
* [[Wikipedia:Object file|Wikipedia: Object file]]
 
* [[Wikipedia:Object file|Wikipedia: Object file]]
* [[Wikipedia:Relocatable Object Module Format|Wikipedia: Relocatable Object Module Format]]
 

Revision as of 15:21, 8 March 2015

File Format
Name Object file format
Ontology
Extension(s) .o, .obj

Object file format is the format of machine code produced by a compiler of a programming language prior to the final linking stage when are produced. The object file is not directly runnable, since it contains relocatable code which needs to be run through a linker to combine it with other object files and libraries that are part of a particular program package and convert the memory references to be consistent throughout the package.

There isn't one single "object file format", as the formats are platform and system architecture specific, though standards have sometimes emerged in families of operating systems (e.g., Unix-like systems). Object files of various formats frequently use .obj and .o file extensions.

On Intel chip architectures such as have been used for the PC-DOS/Windows platforms, a format called Relocatable Object Module Format is used. Unix-style systems typically use formats based on COFF or ELF.

This program/executable format should not be confused with other unrelated uses of the term "object file" for files containing representations of 3D objects, some of which confusingly use .obj extensions also.

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox