JPS6011944A - Program analyzer - Google Patents

Program analyzer

Info

Publication number
JPS6011944A
JPS6011944A JP58120114A JP12011483A JPS6011944A JP S6011944 A JPS6011944 A JP S6011944A JP 58120114 A JP58120114 A JP 58120114A JP 12011483 A JP12011483 A JP 12011483A JP S6011944 A JPS6011944 A JP S6011944A
Authority
JP
Japan
Prior art keywords
data
module
address
memory
program
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
JP58120114A
Other languages
Japanese (ja)
Inventor
Haruo Takagi
高木 治夫
Yoshinori Takahashi
義則 高橋
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP58120114A priority Critical patent/JPS6011944A/en
Publication of JPS6011944A publication Critical patent/JPS6011944A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

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

Abstract

PURPOSE:To check the working of a computer in terms of data by tracing an execution locus of each module, and collecting the check information. CONSTITUTION:At first, the register procesing is executed to a bit map memory 5. Then a multiplexer 12 is switched to a real device 1, and the operation of the device 1 is started to decode successively the instructions of programs to be checked and stored in a memory 3. The address of a module with which the instruction is executed is stored to a history memory 6 in the form of data. Then the similar address data are successively collected in accordance with the progress of the program. When the collection is through with data, the data are analized to obtain a hierarchical diagram.

Description

【発明の詳細な説明】 〈発明の技術分野〉 本発明は、コンピュータプログラムの実行軌跡を追跡し
て、機械動作を解析する技術に関連し、殊に本発明は、
被検査プログラムが複数のモジュールを結合して成る場
合、各モジュールの実行軌跡を情報収集するプログラム
・アナライザを提供するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a technique for tracking the execution trajectory of a computer program and analyzing machine operation.
When a program to be inspected is made up of a plurality of modules combined, a program analyzer is provided that collects information on the execution trajectory of each module.

〈発明の背景〉 近年、コンピュータシステムの動作プログラムは、仕事
内容等に応じて適当な大きさのモジュールに分割し、実
行時、各モジュールを呼出し命令を介し結合して、一連
のものに4A a化している。この種構造化プログラム
の場合、システムの出荷に際しては、全てのモジュール
か設計した組合せどおりに実行されるか否かを461斤
する必要がある。ところが各モジュールの実行軌跡をデ
ータ的に確認する方法か未だbYli立されておらす、
これがシステムチェックを不完全なものとしている。
<Background of the Invention> In recent years, operating programs for computer systems are divided into modules of appropriate size according to the content of the work, etc., and when executed, each module is connected via a call instruction to form a series of 4A a. It has become In the case of this type of structured program, when shipping the system, it is necessary to conduct 461 tests to determine whether all modules are executed in accordance with the designed combinations. However, there is still no way to check the execution trajectory of each module using data.
This makes the system check incomplete.

〈発明の目的〉 本発明は、複数のモジュールを結合してプログラムが構
成されたものにつき、各七ンユールの実行軌跡を追跡し
、検査情報を収1jすることによって、コンピュータ動
作をデータ的にチェックできる新規なプログラム・アナ
ライザを114供することを目的とする。
<Objective of the Invention> The present invention is a program configured by combining a plurality of modules, and the computer operation can be checked data-wise by tracking the execution locus of each module and collecting inspection information. The purpose is to provide a new program analyzer that can perform 114 functions.

〈発明の構成および効果〉 上記目的を達成するため、本発明では、各モジュールに
おける先頭アドレスとリターン命令の設定アドレスとを
予め登録手段に登録しておき、然る後プログラムを実行
して機械を運転し、各モジュールにつき命令実行された
アドレスをデータとして取り込んで登録データとを比較
し、両データの一致があったとき、実行された命令のア
ドレスをデータ格納手段へ順次格納して、情報収集する
こととした。
<Structure and Effects of the Invention> In order to achieve the above object, the present invention registers the start address of each module and the set address of the return command in advance in the registration means, and then executes the program to start the machine. The controller operates the module, reads the addresses of commands executed for each module as data, compares them with the registered data, and when there is a match between the two data, sequentially stores the addresses of the commands executed in the data storage means to collect information. It was decided to.

本発明によれば、データ格納手段よりアドレスデータを
取り出すことにより、各モジュールの実行軌跡を容易に
把握できる。史に読み出したデータに基つき各モジュー
ルの結合構造を示す階層図を作成し、設計時の階層図と
比較することにより、設計でおりに各モジュールが実行
されたか否かを確認でき、コンピュータ動作のデータチ
ェックが可能かつ容易となる等、発明目的を達成した優
れた効果を奏する。
According to the present invention, by retrieving address data from the data storage means, the execution locus of each module can be easily grasped. By creating a hierarchical diagram showing the combined structure of each module based on the data read out in the history, and comparing it with the hierarchical diagram at the time of design, it is possible to check whether each module has been executed as designed and to improve computer operation. The present invention has excellent effects that achieve the purpose of the invention, such as making it possible and easy to check data.

〈実施例の説明〉 第1図はコンピュータシステムを1采川した機械1(以
下実機という)に木イー明のプログラム・アナライザ2
を接続j7た状況を示ず。
<Explanation of Examples> Figure 1 shows a machine 1 (hereinafter referred to as the actual machine), which is a computer system, and a program analyzer 2 by Akira Kiyoshi.
The connection status is not shown.

実機1は、被検査ブロクラムが格納されたメモリ3と、
このプログラムを解読実行して入出力機器(図示ぜす゛
)の動作を一連に制御する実機CP U 4 (Cen
tral Processing Llnit )とを
含む。
The actual device 1 includes a memory 3 in which a block diagram to be inspected is stored;
The actual CPU 4 (Cen.
tral Processing Llnit).

前記被検査プログラムはtす数のモジュールを結合して
構成され、その−傍点しで、弔2図に各モジュールの階
層図を示しである。c132図において、各ブロックは
モジュールを示し、モジュールPには3個のモジュール
”I 9 P2 + I’3が結合され、史にモジュー
ルl11にはモジュールPl+か、モジュールP2には
モジュール” 211 ”22 +P23が夫々結合さ
れ、更にまたモジュール’22には2個のモジュール”
22−1 、 I”、、2−2が結合されている。前記
モジュールPの先頭アドレスは、第3図に、おいて、A
で示されており、また最終アドレスaにはリターン命令
が設カーされている。
The program to be tested is constructed by combining t modules, and a hierarchical diagram of each module is shown in Figure 2, with dots on the sides. In the c132 diagram, each block represents a module, three modules "I 9 P2 + I'3 are connected to the module P, and the module I11 is either the module Pl+ or the module P2 is the module "211 "22 +P23 are connected to each other, and furthermore, two modules are connected to module '22.''
22-1, I", 2-2 are combined. The start address of the module P is A in FIG.
A return instruction is provided at the final address a.

同様に第3図には、モジュール” l + ” 2 +
 ” 3は光面アドレスがAI + A2+ A3、リ
ターン命令の設定アドレスがaII A2 、 A3、
モジ:L−ルP 11 、 P21 +’22 + ”
23 は先頭アドレスがAII + A21 HA22
 +A23、リターン命令の設定アドレスがaII +
 ”21+a22+a23、モジュ/L/ I’ 22
−1 、 P22−2 は先頭アドレスかA22−1 
、 A22−2、リターン命令の設定アドレスが122
−1.a2□−2で夫々示されている。またモジュール
1′におけるアドレス1)1゜1+2.b3にはモジュ
ール11.、 I)、、 、 P3の先頭を呼び出すた
めの呼出し命令が設定され、同様にモジュールpl に
おけるアドレスb11 にはモジュールP11の呼出し
命令か、モジュールP2のアドレス1)2+ + ’2
2 ) 1)23にはモジュール1)21 r P22
 +1’23の117出し命令が、モジュール’22の
アドレスh22− ] 、 t)22−2にはモジュー
ルP22−1.. l”22−2の呼出し命令が夫々設
定される。
Similarly, in FIG. 3, the module "l + "2 +
”3, the optical surface address is AI + A2 + A3, and the return command setting address is aII A2, A3,
Moji: L-L P 11, P21 +'22 +"
23 has the first address AII + A21 HA22
+A23, return instruction setting address is aII +
"21+a22+a23, Mod/L/I' 22
-1, P22-2 is the first address or A22-1
, A22-2, return instruction setting address is 122
-1. They are respectively indicated by a2□-2. Also, address 1) 1°1+2 in module 1'. b3 has module 11. , I), , A call instruction to call the beginning of P3 is set, and similarly, the address b11 in module pl is either the call instruction of module P11 or the address 1) 2+ + '2 of module P2.
2) 1) 23 has module 1) 21 r P22
+1'23 117 output instruction is at address h22-] of module '22, t)22-2 has module P22-1. .. 1''22-2 calling instructions are set respectively.

本発明のプログラム・アナライザ2は、第1区1に示す
例では、ビットマツプメモリ5とヒストメモリ6とを含
んでいる。ビットマツプメモリ5には全モジュールにお
ける先頭アドレスおよびリターン命令の設定アドレスか
登録され、またヒストメモリ6には実罰1か命令実イj
した各モジュールのアドレスのうr9、前記び録データ
と一致するアドレスのみか選11<的(C格納される。
The program analyzer 2 of the present invention includes a bitmap memory 5 and a history memory 6 in the example shown in the first section 1. The bitmap memory 5 stores the start address and return instruction setting address for all modules, and the hist memory 6 stores actual punishment 1 or actual instruction execution address.
Only the addresses that match the recorded data are selected (11) and stored.

かかるアドレスの登録ン°1しくは格納はC11118
によりその動作が制御される。このCI’ tl 8i
A、メモリ11に格納された検rir用プログラムに基
つき、コントロール回路7をブ1してヒラ!・マツプメ
モリ5およびヒストメモリ6に対するデータ書込み等の
動作を制御すると共に、表示器9ルチプレクサ12は、
実j幾CI’ II 4やCP [13から人力される
アト1/ステータを時分割によりビットマツプメモリ5
へ出力する。またタイミングコントロール回路13は、
実機(21’ Ll 4 からのアドレスデータをヒス
トメモリ6−\r’F j: 込むための動作タイミン
グをとる。
Registration or storage of such addresses is C11118.
Its operation is controlled by This CI' tl 8i
A. Based on the detection program stored in the memory 11, turn on the control circuit 7 and turn it on! - In addition to controlling operations such as data writing to the map memory 5 and the history memory 6, the display device 9 multiplexer 12
Att1/stator manually generated from CI' II 4 and CP [13] is stored in bitmap memory 5 by time division.
Output to. Further, the timing control circuit 13 is
The operation timing for loading the address data from the actual machine (21'Ll4) into the history memory 6-\r'Fj: is determined.

第4図はプログラム検査のf−111+4を示しており
、以下、同図のフローチャー1・に基つき、木発明の動
作を説明する。
FIG. 4 shows program check f-111+4, and the operation of the tree invention will be described below based on flowchart 1 in the same figure.

まずステップ21において、ヒツトマツプメモリ5への
登録処理が実行され、これにより前記全モジュールにお
りる先頭アトトスおよびリターン命令の設定アドレスに
対応するヒツトマツプメリアにデータ「1」か、それ以
外のエリアにデータ「0」かセットされる。つきにステ
ップ22てマルチプレクサ】2を実機1へ切り換え、ス
テップ23て実機】の運転を開始して、メモリ3に格納
された被検査プログラムの各命令を順次解読実行さ土J
−る。この扁令実り過程において、ビットマツプメモリ
5にデータ「1」がセットされたアドレスの命令か実行
されると、ビットマツプメモリ5はヒストメモリ6に対
し論理「1」の出力を送出する。これによりヒストメモ
リ6には、命令実行されたモジコー−/しのアドレスが
データとし2て格納され、プログラムの進行に伴なって
同様のアドレスデータがつきつきに収集される(ステッ
プ24)。
First, in step 21, the registration process to the hit map memory 5 is executed, and as a result, the data ``1'' is stored in the hit map memory corresponding to the setting address of the head map and return command in all the modules, or other areas are stored. is set to data “0”. At step 22, multiplexer 2 is switched to actual machine 1, and in step 23, operation of the actual machine is started, and each instruction of the program to be tested stored in memory 3 is sequentially decoded and executed.
-ru. During this process, when an instruction at an address where data "1" is set in the bitmap memory 5 is executed, the bitmap memory 5 sends an output of logic "1" to the history memory 6. As a result, the address of the module where the command was executed is stored as data 2 in the hist memory 6, and as the program progresses, similar address data is collected from time to time (step 24).

第5図はアドレスデータの収集例を示し、同図のヒスト
メモリ6には命令実イjされ[1つ登録データと一致す
る各モジュールの7′Fしステークか時系列に格納され
ている。データ収集完了後は、ステップ25において格
納データの解析処理へ移行し、この解析によって、E+
占6図に示す階層図を得ることができる。
FIG. 5 shows an example of collection of address data, and the hist memory 6 in the same figure stores in chronological order the 7'F and stake of each module that matches the registered data after an instruction is executed. After the data collection is completed, in step 25 the process moves to the analysis of the stored data, and through this analysis, the E+
A hierarchical diagram shown in Chart 6 can be obtained.

斯くて第2図に示す設計時の階層図表、ト(占6図に示
すプログラムの実行にがかるl’!”1層図とを比較す
ると、第6図の階層図に(JモジュールP22−2が欠
落しており、これにより被検1″tプログラム中、モジ
ュールP2□−2が実?jさイ′1なかつたことを把握
しうる。
Thus, if we compare the hierarchy diagram at the time of design shown in Figure 2 with the 1-layer diagram shown in Figure 6, we can see that the hierarchy diagram in Figure 6 (J module P22-2 is missing, and from this it can be understood that during the test program 1''t, module P2□-2 was not actually executed.

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

第1図は本弁明のプログラム・アナライ→]を示す回路
ブロック図、第2図は設n1プログラムの階層図、第3
図(」設計プログラムのアドレスを説明する図、第4は
1(」プログラム167−Wの手niiを示ずフローチ
ャー ト、第5図はヒストメモリのデータ格納状態を説
明する図、5(56図(4実行プログラムの階層図であ
る。 ■・・・・・・実機 5・・・・・・ヒツトマツプメモ
リ6・・・・・・ヒストメモリ 8・・・・・・CP 
U特π) 出願人 立石ij;機株式会社−〇〇
Fig. 1 is a circuit block diagram showing the program analyzer →] of this defense, Fig. 2 is a hierarchical diagram of the design n1 program, and Fig. 3
Figure 5 is a diagram explaining the address of the design program, Figure 4 is a flowchart of the program 167-W (without showing steps), Figure 5 is a diagram explaining the state of data storage in the hist memory, Figure 5 is a diagram explaining the data storage state of the hist memory, (This is a hierarchical diagram of 4 execution programs. ■... Actual machine 5... Hit map memory 6... Hist memory 8... CP
U special π) Applicant Tateishi ij; Ki Co., Ltd. -〇〇

Claims (1)

【特許請求の範囲】[Claims] 複数のモジュールを結合してプログラムが構成されたも
のにおいて、前記各モジュールにおける先頭アドレスお
よびリターン命令の設定アドレスを登録する登録手段と
、命令実行すれた各モジュールのアドレスを登録データ
と比較して選択格納するデータ格納手段と、前記登録手
段およびデータ格納手段のデータ処理動作を制御する制
御手段とを具備して成るプログラム・アナライザ。
In a program configured by combining a plurality of modules, a registration means for registering a start address and a set address of a return instruction in each module, and an address of each module in which an instruction has been executed is compared with registered data and selected. A program analyzer comprising: data storage means for storing data; and control means for controlling data processing operations of the registration means and data storage means.
JP58120114A 1983-06-30 1983-06-30 Program analyzer Pending JPS6011944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58120114A JPS6011944A (en) 1983-06-30 1983-06-30 Program analyzer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58120114A JPS6011944A (en) 1983-06-30 1983-06-30 Program analyzer

Publications (1)

Publication Number Publication Date
JPS6011944A true JPS6011944A (en) 1985-01-22

Family

ID=14778286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58120114A Pending JPS6011944A (en) 1983-06-30 1983-06-30 Program analyzer

Country Status (1)

Country Link
JP (1) JPS6011944A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5262460A (en) * 1988-08-04 1993-11-16 Teijin Limited Aromatic polyester resin composition and fiber
US5331032A (en) * 1988-08-04 1994-07-19 Teijin Limited Hydrophilic aromatic polyester fiber
EP0704470A2 (en) 1994-09-30 1996-04-03 Daicel Chemical Industries, Ltd. A lactone-modified polyvinyl alcohol, a process for the preparation thereof, a resin compsition, permanently anti-electrostatic resin composition, a lactone-modified resin having hydroxyl groups, and a process for the preparation thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5262460A (en) * 1988-08-04 1993-11-16 Teijin Limited Aromatic polyester resin composition and fiber
US5331032A (en) * 1988-08-04 1994-07-19 Teijin Limited Hydrophilic aromatic polyester fiber
EP0704470A2 (en) 1994-09-30 1996-04-03 Daicel Chemical Industries, Ltd. A lactone-modified polyvinyl alcohol, a process for the preparation thereof, a resin compsition, permanently anti-electrostatic resin composition, a lactone-modified resin having hydroxyl groups, and a process for the preparation thereof

Similar Documents

Publication Publication Date Title
US4984239A (en) Automatic verification system for maintenance/diagnosis facility in computer system
CN110941520A (en) Hardware function test system and method based on two-out-of-two safety control unit
JPS6011944A (en) Program analyzer
US4995037A (en) Adjustment method and apparatus of a computer
JPS608952A (en) Program analyzer
JPH04217034A (en) Display system for program trace
JPS6014354A (en) Collection of program analysis data
JPH01119837A (en) Program evaluating system
JPS59202552A (en) Program analyzer
JPH07191876A (en) Program testing device and using method for the same
JPS63201841A (en) Program debugging system
JPH0468446A (en) Debugging supporting device
JPS6253858B2 (en)
JPS62109299A (en) Analyzing device for memory inspection data
JPS59114650A (en) Program tracing system
CN108170597A (en) A kind of test method, system, equipment and computer storage media
JPH02115953A (en) Simulator
JPS63314660A (en) Cache test system
JPS6225340A (en) Inspection device
JPH01304559A (en) Input/output function test system
JPS62133540A (en) Testing system for logical device using hardware logical simulator
JPH02294848A (en) Program evaluating system
JPH05143395A (en) Diagnostic program execution system and log information display system to be used for the execution system
JPS60147849A (en) System for debugging microprogram
JPS62176350A (en) On-line program development system