Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Object code

From Wikipedia, the free encyclopedia
Sequence of statements or instructions in a computer language
Not to be confused withObject-oriented programming.

Program execution
General concepts
Types of code
Compilation strategies
Notable runtimes
Notable compilers & toolchains

Incomputing,object code orobject module is the product of anassembler orcompiler.[1]

In a general sense, object code is a sequence ofstatements or instructions in a computer language,[2] usually amachine code language (i.e.,binary) or an intermediate language such asregister transfer language (RTL). The term indicates that the code is thegoal or result of the compiling process, with some early sources referring to source code as a "subject program".[3]

Details

[edit]

Object files can in turn belinked to form anexecutable file orlibrary file. In order to be used, object code must either be placed in an executable file, a library file, or an object file.

Object code is a portion of machine code that has not yet been linked into a complete program. It is the machine code for one particular library or module that will make up the completed product. It may also contain placeholders or offsets, not found in the machine code of a completed program, that the linker will use to connect everything together. Whereas machine code is binary code that can be executed directly by the CPU, object code has the jumps and inter-module references partially parametrized so that a linker can fill them in. An object file is assumed to begin at a specific location in memory, often zero. It contains information on instructions that reference memory, so that the linker canrelocate the code when combining multiple object files into a single program.

Anassembler is used to convertassembly code into machine code (object code). A linker links several object (and library) files to generate an executable. Assemblers (and some compilers) can also assemble directly to machine code to produce executable files without the object intermediary step.[4]

References

[edit]
  1. ^"Compiler". TechTarget. Archived fromthe original on 29 April 2012. Retrieved1 September 2011.Traditionally, the output of the compilation has been called object code or sometimes an object module.
  2. ^Aho, Alfred V.;Sethi, Ravi;Ullman, Jeffrey C. (1986)."10 Code Optimization".Compilers: principles, techniques, and tools. Computer Science. Mark S. Dalton. p. 704.ISBN 0-201-10194-7.
  3. ^Luebbert, William F.; Collom jr., Percy (February 1959)."Signal Corps Research and Development on Automatic Programming of Digital Computers".Communications of the ACM.2 (2):22–27. Retrieved20 July 2025.
  4. ^Fischer, Charles N."What do compilers produce?"(PDF). University of Wisconsin Madison. Retrieved2 April 2024.
Parts,
conventions
Related topics
Retrieved from "https://en.wikipedia.org/w/index.php?title=Object_code&oldid=1301668777"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp