JPS59211152A - Branch source storage method for digital computers - Google Patents

Branch source storage method for digital computers

Info

Publication number
JPS59211152A
JPS59211152A JP58086823A JP8682383A JPS59211152A JP S59211152 A JPS59211152 A JP S59211152A JP 58086823 A JP58086823 A JP 58086823A JP 8682383 A JP8682383 A JP 8682383A JP S59211152 A JPS59211152 A JP S59211152A
Authority
JP
Japan
Prior art keywords
program
branch
memory
storing
source storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP58086823A
Other languages
Japanese (ja)
Inventor
Asao Yamanishi
山西 麻雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP58086823A priority Critical patent/JPS59211152A/en
Publication of JPS59211152A publication Critical patent/JPS59211152A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To facilitate an analysis of fault and a program test by storing an address where a branch instruction exists to a branching origin storing memory set immediately before an instruction serving as the branching destination an unconditional or conditional branch instruction within a program storing memory area. CONSTITUTION:When a program of a program storing memory 3 and a branch instruction 4 are executed, the branching origin address is stored in a branching storing origin memory 5 of the memory 3. If a problem such as a program fault, etc. occurs after execution of the program, the memory is traced reversely. Thus it is immediately understood which part the program is executing to reach the relevant faulty area.

Description

【発明の詳細な説明】 この発明はディジタル計算機における分岐命令の分岐元
記憶方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a branch source storage system for branch instructions in a digital computer.

第1図は従来のディジタル計算機の分岐元記憶方式を説
明するための分岐先アドレス記憶専用メモリ1の構成を
示す図である。同図において、2はこの分岐先アドレス
記憶専用メモリ1の記憶単位である。
FIG. 1 is a diagram showing the structure of a memory 1 dedicated to storing branch destination addresses, for explaining a conventional branch source storage method of a digital computer. In the figure, 2 is a storage unit of the memory 1 dedicated to storing branch destination addresses.

次に、上記構成のディジタル計算機の分岐先記憶方式の
動作について説明する。
Next, the operation of the branch destination storage method of the digital computer configured as described above will be explained.

まず、プログラムの実行過程において、分岐命令が実行
された場合、分岐先アドレス記憶専用メモリ1の最も古
い分岐先アドレスを格納している記憶単位2へ当該分岐
命令の分岐先アドレスが格納される。これにより、分岐
先アドレス記憶専用メモリ1には最も近い過去に実行さ
れた分岐命令のアドレスが常に格納されていることにな
る。したがって、障害発生時にはこの分岐先アドレス記
憶専用メモリ1の内容を参照することにより、障害発生
直前の分岐命令実行状態が判明する。
First, in the process of executing a program, when a branch instruction is executed, the branch destination address of the branch instruction is stored in the storage unit 2 that stores the oldest branch destination address of the memory 1 dedicated to storing branch destination addresses. As a result, the memory 1 dedicated to storing branch destination addresses always stores the address of the branch instruction executed most recently. Therefore, when a failure occurs, by referring to the contents of the branch destination address storage memory 1, the execution state of the branch instruction immediately before the failure occurs can be determined.

しかしながら、従来のディジタル計算機の分岐先記憶方
式は分岐先アドレス記憶専用メモリ1の記憶単位数によ
り、退避できる分岐先アドレスの個数が制限される。特
に障害検出直前にプログラムが暴走した場合などではこ
の分岐光アドレス記憶専用メモリ1に記憶された分岐先
アドレスのみでは解析不可能である欠点があった。
However, in the conventional branch destination storage method of a digital computer, the number of branch destination addresses that can be saved is limited by the number of storage units of the memory 1 dedicated to storing branch destination addresses. Particularly when a program goes out of control immediately before a fault is detected, there is a drawback that analysis cannot be performed using only the branch destination address stored in the branch optical address storage memory 1.

したがって、この発明の目的は障害発生時、動作中のプ
ログラムについて、すべての分岐命令の分岐元を記憶す
るようにし、障害検出直前にプログラムが暴走した場合
にも、有効に解析することができるディジタル計算機の
分岐元記憶方式を提供するものである。
Therefore, an object of the present invention is to memorize the branch sources of all branch instructions for a running program when a fault occurs, and to use a digital system that can effectively analyze even if the program goes out of control immediately before the fault is detected. This provides a branch source storage method for computers.

このような目的を達成するため、この発明はプログラム
記憶メモリの領域内に、無条件あるいは条件付分岐命令
と対に、その分岐元アドレスに分岐元アドレスを記憶す
るものであり、以下−実施例について詳細に説明する。
In order to achieve such an object, the present invention stores a branch source address in a program storage memory area in pairs with an unconditional or conditional branch instruction. will be explained in detail.

第2図はこの発明の一実施例に係るディジタル計算機の
分岐元記憶方式を示すプログラム記憶メモリの構成を示
す図である。同図において、3はプログラム記憶メモリ
、4は無条件あるいは条件付分岐命令、5は分岐命令の
分岐元アドレスを記憶する分岐元記憶メモリである。な
お、この分岐元記憶メモリ5は分岐命令により分岐され
る先の命令の直前に位置するよう配置する。
FIG. 2 is a diagram showing the configuration of a program storage memory showing a branch source storage method of a digital computer according to an embodiment of the present invention. In the figure, 3 is a program storage memory, 4 is an unconditional or conditional branch instruction, and 5 is a branch source storage memory that stores the branch source address of the branch instruction. Note that this branch source storage memory 5 is arranged so as to be located immediately before the instruction to which the branch instruction branches.

次に、上記構成に係るディジタル計算機の分岐元記憶方
式の動作について説明する。
Next, the operation of the branch source storage method of the digital computer according to the above configuration will be explained.

まず、プログラム記憶メモリ3のプログラムが実行され
、分岐命令4が実行された場合、その分岐元アドレスは
このプログラム記憶メモリ3の分岐元記憶メモリ5に記
憶される。このため、プログラム実行後にプログラム障
害等の問題があった場合、この分岐元記憶メモリ5を逆
にたどることによりプログラムがどの部分を実行しなが
ら問題の部分へ到達したかが直ちに判明する。
First, when the program in the program storage memory 3 is executed and the branch instruction 4 is executed, the branch source address is stored in the branch source storage memory 5 of the program storage memory 3. Therefore, if a problem such as a program failure occurs after program execution, by tracing back this branch source storage memory 5, it can be immediately determined which part the program was executing when reaching the problematic part.

以上のように、この発明のディジタル計算機の分岐元記
憶方式によれば、障害発生時に障害発生に至るまでのプ
ログラムの動作を分岐命令の個数に関係な(逆方向にた
どることができ、障害解析およびプログラムテストに有
効に利用することができる効果がある。
As described above, according to the branch source storage method of the digital computer of the present invention, when a fault occurs, the operation of the program leading up to the fault can be traced (in the reverse direction) regardless of the number of branch instructions. It also has the effect of being able to be effectively used for program testing.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来のディジタル計算機の分岐先記憶方式を説
明するための分岐先アドレス記憶専用メモリの構成を示
す図、第2図はこの発明の一実施例に係るディジタル計
算機の分岐元記憶方式のプログラム記憶メモリの構成を
示す図である。 (3) 1・・・分岐先アドレス記憶専用メモリ、2・・・記憶
単位、3・・・プログラム記憶メモリ、4・・・分岐命
令、5・・・分岐元記憶メモリ なお、図中、同一符号は同一または相当部分を示す。 代理人 大岩増雄 (4) 第  1  因 第2図
FIG. 1 is a diagram showing the configuration of a memory dedicated to storing branch destination addresses for explaining a conventional branch destination storage system in a digital computer, and FIG. 2 shows a branch source storage system in a digital computer according to an embodiment of the present invention. FIG. 3 is a diagram showing the configuration of a program storage memory. (3) 1...Memory dedicated to storing branch destination address, 2...Storage unit, 3...Program storage memory, 4...Branch instruction, 5...Branch source memory Codes indicate the same or equivalent parts. Agent Masuo Oiwa (4) 1st Cause Figure 2

Claims (1)

【特許請求の範囲】[Claims] 動作中のプログラムに関し障害発生時に該障害発生に至
るまでの障害解析又はプログラム試験を行い得るディジ
タル計算機の分岐元記憶方式において、プログラム記憶
メモリの所定領域内で、無条件又は条件付分岐命令の分
岐先となる命令の直前の分岐元記憶メモリに上記分岐命
令の存在するアドレスを記憶させたことを特徴とするデ
ィジタル計算機の分岐元記憶方式。
In a branch source storage system of a digital computer that allows fault analysis or program testing up to the occurrence of a fault in a running program when a fault occurs, branching of an unconditional or conditional branch instruction is performed within a predetermined area of the program storage memory. A branch source storage method for a digital computer, characterized in that an address where the branch instruction exists is stored in a branch source storage memory immediately before a previous instruction.
JP58086823A 1983-05-16 1983-05-16 Branch source storage method for digital computers Pending JPS59211152A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58086823A JPS59211152A (en) 1983-05-16 1983-05-16 Branch source storage method for digital computers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58086823A JPS59211152A (en) 1983-05-16 1983-05-16 Branch source storage method for digital computers

Publications (1)

Publication Number Publication Date
JPS59211152A true JPS59211152A (en) 1984-11-29

Family

ID=13897525

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58086823A Pending JPS59211152A (en) 1983-05-16 1983-05-16 Branch source storage method for digital computers

Country Status (1)

Country Link
JP (1) JPS59211152A (en)

Similar Documents

Publication Publication Date Title
JPS5886648A (en) Tracing device
JPS59211152A (en) Branch source storage method for digital computers
JPH0581070A (en) Programmable controller and user program execution method in programmable controller
JPH03158937A (en) Program execution control system
JPH03113646A (en) Trace circuit
JPS63116248A (en) Program testing device
JPS62271003A (en) Programmable controller
JPS59202546A (en) Debugging device
JPH03294934A (en) Debugger for high level program lenguage
JPS60549A (en) Memory testing system
JPS59103158A (en) Debug system of digital signal processing program
JPS59202550A (en) Debugging device
JPS59151250A (en) Debugging device
JPH02100146A (en) Trace decision system
JPS6385940A (en) Testing system for information processor
JPS63193235A (en) Inspecting method for condition code
JPH01274252A (en) Activity history memory
JPS63109549A (en) For finding system memory destruction of data processing system
JPS6326416B2 (en)
JPS63245737A (en) Microcomputer
JPH03263134A (en) Test processing system for test processor
JPS59206944A (en) Microprogram supervisory device
JPS6249454A (en) Debug supporting circuit for microprogram
JPS61109153A (en) Malfunction detector
JPS62145332A (en) Microprogram controller