Instruction step

Instruction step

An instruction step is a method of executing a computer program one step at a time to determine how it is functioning. This might be to determine if the correct program flow is being followed in the program during the execution or to see if variables are set to their correct values after a single step has completed.

Hardware instruction step

On earlier computers, a knob on the computer console may have enabled step-by-step execution mode to be selected and execution would then proceed by pressing a "single step" or "single cycle" button. Program status word / Memory or general purpose register read-out could then be accomplished by observing and noting the console lights.

oftware instruction step

On later platforms with multiple users, this method was impractical and so single step execution had to be performed using software techniques.

Software techniques

* Instrumentation - requiring code to be added during compile or assembly to achieve statement stepping. Code can be added manually to achieve similar results in interpretive languages such as javascript.
* instruction set simulation - requiring no code modifications for instruction or statement stepping

In some software products which facilitate debugging of High level languages, it is possible to execute an entire HLL statement at a time. This frequently involves many machine instructions and execution pauses after the last instruction in the sequence, ready for the next 'instruction' step. This requires integration with the compilation output to determine the scope of each statement.

Full Instruction set simulators however could provide instruction stepping with or without any source, since they operate at machine code level, optionally providing full trace and debugging information to whatever higher level was available through such integration. In addition they may also optionally allow stepping through each assembly (machine) instruction generated by a HLL statement.

Programs comprised of multiple 'modules' complied from a mixture of compiled languages, and even instructions created "on-the-fly" in dynamically allocated memory, could be accomodated using this technique.

Examples of programs providing 'Software' instruction step

* OLIVER (CICS interactive test/debug) for IBM CICS, allowed both instruction and HLL statement stepping
* SIMON (Batch Interactive test/debug) for IBM batch programs, allowed both instruction and HLL statement stepping
* SIMMON an IBM internal test system which provided instruction stepping

References

ee also

* Instrumentation (computer programming)
* Instruction set simulator
* Program status word


Wikimedia Foundation. 2010.

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

Look at other dictionaries:

  • Instruction set simulator — An instruction set simulator (ISS) is a simulation model, usually coded in a high level programming language, which mimics the behavior of a mainframe or microprocessor by reading instructions and maintaining internal variables which represent… …   Wikipedia

  • Instruction cycle — An instruction cycle (sometimes called fetch and execute cycle, fetch decode execute cycle, or FDX) is the basic operation cycle of a computer. It is the process by which a computer retrieves a program instruction from its memory, determines what …   Wikipedia

  • instruction — {{Roman}}I.{{/Roman}} noun 1 instructions information on how to do sth ADJECTIVE ▪ comprehensive, full ▪ adequate ▪ clear, explicit ▪ …   Collocations dictionary

  • Instruction pipeline — Pipelining redirects here. For HTTP pipelining, see HTTP pipelining. Basic five stage pipeline in a RISC machine (IF = Instruction Fetch, ID = Instruction Decode, EX = Execute, MEM = Memory access, WB = Register write back). In the fourth clock… …   Wikipedia

  • instruction */*/*/ — UK [ɪnˈstrʌkʃ(ə)n] / US noun Word forms instruction : singular instruction plural instructions 1) a) [countable, usually plural] a statement or explanation of something that must be done, often given by someone in authority A detailed list of… …   English dictionary

  • instruction*/*/*/ — [ɪnˈstrʌkʃ(ə)n] noun 1) [C] a statement of something that must be done, or an explanation of how to do or use something Step by step instructions for assembling the workbench are included.[/ex] I tried to follow her instructions, but I got… …   Dictionary for writing and speaking English

  • instruction — in|struc|tion [ ın strʌkʃən ] noun *** 1. ) count usually plural a statement or explanation of something that must be done, often given by someone in authority: A detailed list of instructions was issued on what to do in an emergency.… …   Usage of the words and phrases in modern English

  • Instruction register — In computing, an instruction register is the part of a CPU s control unit that stores the instruction currently being executed. In simple processors each instruction to be executed is loaded into the instruction register which holds it while it… …   Wikipedia

  • Instruction selection — In computer programming, Instruction selection is a compiler optimization that transforms an intermediate representation of a program into the final compiled code, either in binary or assembly format. It works by covering the intermediate… …   Wikipedia

  • step-by-step — adj. Step by step is used with these nouns: ↑approach, ↑direction, ↑guide, ↑instruction, ↑tutorial …   Collocations dictionary

Share the article and excerpts

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