Content deleted Content added
rm bad link. WP:NPOV. |
m Disambiguating links to Mix (link changed to MIX (abstract machine)) using DisamAssist. |
||
Line 42:
==Example==
The following example uses [[Donald Knuth]]'s [[MIX (abstract machine)|MIX]] architecture and MIXAL assembly language. The principles are the same for any architecture, though the details will change.
[[File:relocation example.tif|frameless|right|334px]]
* (A) Program ''SUBR'' is compiled to produce object file (B), shown as both machine code and assembler. The compiler may start the compiled code at an arbitrary ___location, often ___location 1 as shown. Location 13 contains the machine code for the jump instruction to statement ''ST'' in ___location 5.
|