Difference between revisions of "Object code"

From Computer History Wiki
Jump to: navigation, search
(Add links, make more explicit)
m (Add links)
Line 1: Line 1:
'''Object code''', or '''executable binary''' (sometimes shortened to plain 'binary') is a program in the low-level form which a computer's [[Central Processing Unit|CPU]] hardware can execute directly; i.e. [[instruction]]s for the CPU to execute.
+
'''Object code''', or '''executable binary''' (sometimes shortened to plain 'binary') is a [[program]] in the low-level form which a computer's [[Central Processing Unit|CPU]] [[hardware]] can execute directly; i.e. [[instruction]]s for the CPU to [[execute]].
  
 
To run it, all that need be done is read the [[program]]'s instructions into [[main memory]] from wherever it is stored, and tell the CPU to start executing it.
 
To run it, all that need be done is read the [[program]]'s instructions into [[main memory]] from wherever it is stored, and tell the CPU to start executing it.
Line 5: Line 5:
 
A given program's object code is usually set up to be loaded in main memory at a given location; if it is loaded elsewhere, it usually cannot function - although this depends on the details of a particular CPU, as some supported '''location-independent code''', which could be loaded and run at any address.
 
A given program's object code is usually set up to be loaded in main memory at a given location; if it is loaded elsewhere, it usually cannot function - although this depends on the details of a particular CPU, as some supported '''location-independent code''', which could be loaded and run at any address.
  
It is now usually stored on [[disk]], although historically it was stored on a long list of types of media, including [[magnetic tape]] and [[paper tape]]),
+
It is now usually stored on [[disk]], although historically it was stored on a long list of types of media, including [[paper tape]], [[punched card]]s, and [[magnetic tape]].
  
On older computers with front panels, it was possible to 'toggle in' progams (i.e. deposit the [[word]]s of the program directly into main memory, using the switches on the front console).
+
On older computers with [[front panel]]s, it was possible to 'toggle in' progams (i.e. deposit the [[word]]s of the program directly into main memory, using the switches on the front console).
  
 
==See also==
 
==See also==
  
 
* [[Relocatable binary]]
 
* [[Relocatable binary]]

Revision as of 14:32, 2 December 2018

Object code, or executable binary (sometimes shortened to plain 'binary') is a program in the low-level form which a computer's CPU hardware can execute directly; i.e. instructions for the CPU to execute.

To run it, all that need be done is read the program's instructions into main memory from wherever it is stored, and tell the CPU to start executing it.

A given program's object code is usually set up to be loaded in main memory at a given location; if it is loaded elsewhere, it usually cannot function - although this depends on the details of a particular CPU, as some supported location-independent code, which could be loaded and run at any address.

It is now usually stored on disk, although historically it was stored on a long list of types of media, including paper tape, punched cards, and magnetic tape.

On older computers with front panels, it was possible to 'toggle in' progams (i.e. deposit the words of the program directly into main memory, using the switches on the front console).

See also