JPH0795293B2 - Information processing equipment - Google Patents

Information processing equipment

Info

Publication number
JPH0795293B2
JPH0795293B2 JP62178183A JP17818387A JPH0795293B2 JP H0795293 B2 JPH0795293 B2 JP H0795293B2 JP 62178183 A JP62178183 A JP 62178183A JP 17818387 A JP17818387 A JP 17818387A JP H0795293 B2 JPH0795293 B2 JP H0795293B2
Authority
JP
Japan
Prior art keywords
branch
address
instruction
module
interrupt
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.)
Expired - Lifetime
Application number
JP62178183A
Other languages
Japanese (ja)
Other versions
JPS6423348A (en
Inventor
健一 村上
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP62178183A priority Critical patent/JPH0795293B2/en
Publication of JPS6423348A publication Critical patent/JPS6423348A/en
Publication of JPH0795293B2 publication Critical patent/JPH0795293B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は,情報処理システムに於けるプログラムの性能
測定方式に関し,特にプログラムの命令実行数を測定す
る方式に関する。
Description: TECHNICAL FIELD The present invention relates to a program performance measuring method in an information processing system, and more particularly to a method for measuring the number of executed instructions of a program.

〔従来の技術〕[Conventional technology]

従来,プログラムの性能の基準となるプログラムの命令
実行数を知るには,机上でプログラムの実行過程を予測
しながら命令実行数を計算するか,ハードウェアモニタ
により命令実行数を測定する方法が取られている。
Conventionally, to know the number of instruction executions of a program, which is the basis of the performance of the program, the method of calculating the number of instruction executions while predicting the execution process of the program on the desk or measuring the number of instruction executions by a hardware monitor has been used. Has been.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記のように,机上でプログラムの実行過程を予測しな
がら命令実行数を計算する場合には,プログラムの内容
を良く理解していなければならず,また,プログラムの
内容を良く理解した担当者であっても相当の時間を必要
とする。一方,ハードウェアモニタにより命令実行数を
測定する方法では,測定の準備が面倒なため,一般にソ
フトウェア担当者は使用していないのが現状である。
As described above, in order to calculate the number of instruction executions while predicting the execution process of a program on a desk, it is necessary to have a good understanding of the contents of the program. Even if it does, it takes a considerable amount of time. On the other hand, in the method of measuring the number of executed instructions by the hardware monitor, the preparation for the measurement is troublesome, and therefore the software personnel are not currently using it.

本発明の目的は,プログラムの内容を理解することな
く,容易に命令実行数を測定することのできる情報処理
装置を提供することにある。
An object of the present invention is to provide an information processing apparatus that can easily measure the number of executed instructions without understanding the contents of the program.

〔問題点を解決するための手段〕[Means for solving problems]

上記従来技術の問題点を解決する本発明による情報処理
装置は、プログラムを実行する中央処理装置と、プログ
ラムを構成する全モジュールの先頭部に当該モジュール
の先頭を示し、かつモジュール名を含むモジュール先頭
識別機構と、全モジュールの先頭アドレスと終了アドレ
スとモジュール名とを求めるため、モジュール先頭識別
機構をサーチするモジュールサーチ手段と、モジュール
サーチ手段によって得られた全モジュールの先頭アドレ
スと終了アドレスとモジュール名とを記憶するモジュー
ル範囲情報記憶手段と、中央処理装置が分岐命令を実行
したときに、内部割込みを発生させるとともに、当該分
岐命令の分岐前アドレスと分岐先アドレスとを通知する
分岐命令割込み手段と、分岐命令の分岐後アドレスを記
憶する分岐後アドレス記憶手段と、モジュール範囲情報
記憶手段で指定される範囲のモジュール毎に、分岐命令
割込み手段が内部割込みを発生させたときに起動し、分
岐後アドレス記憶手段に記憶された分岐後アドレスと分
岐命令割込み手段から通知される分岐前アドレスとで示
される範囲内に存在する命令数を計数し、分岐命令割込
み手段が通知する分岐後アドレスを前記分岐後アドレス
記憶手段に記憶する命令実行数測定手段とを含むことを
特徴とする。
An information processing apparatus according to the present invention that solves the above-mentioned problems of the prior art is a central processing unit that executes a program, and the head of the module that indicates the head of the module at the head of all modules that make up the program and that includes the module name. A module search means for searching the module start identification mechanism for obtaining the identification mechanism, the start addresses, end addresses and module names of all modules, and the start addresses, end addresses and module names of all modules obtained by the module search means And module range information storage means for storing the following, and branch instruction interrupt means for generating an internal interrupt when the central processing unit executes the branch instruction and notifying the pre-branch address and the branch destination address of the branch instruction. , Post-branch add that stores the post-branch address of the branch instruction For each module in the range specified by the memory storage means and the module range information storage means, the branch instruction interrupt means is activated when the internal interrupt is generated, and the branch address and the branch address stored in the branch address storage means Instruction execution number measuring means for counting the number of instructions existing within the range indicated by the pre-branch address notified from the instruction interrupt means and storing the post-branch address notified by the branch instruction interrupt means in the post-branch address storage means. It is characterized by including and.

〔実施例〕〔Example〕

次に,本発明の実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は,本発明の一実施例による情報処理装置の構成
を示すブロック図である。本実施例の情報処理装置は,
入力操作が行なわれる入力装置1と,入力情報解析部20
と制御部21とモジュールサーチ部22と命令語解析部23と
測定結果編集出力部24とを含むプログラム命令実行数測
定装置2と,分岐命令の実行により分岐後最初の命令が
実行される前に優先レベルと分岐前アドレスと分岐後ア
ドレスとを保持して内部割込みを発生させる分岐命令割
込機構30を含む中央処理装置3と,モジュール41,42,
…,4nから成る測定対象プログラムを記憶する主記憶装
置4と,優先レベル毎に対応する分岐後アドレス51,52,
…,5nを次の分岐命令割込み時まで記憶しておく分岐後
アドレス記憶部5と,命令毎の実行回数をモジュール毎
に対応して記憶する命令実行数記憶部6と,モジュール
毎の測定結果リストが出力される出力装置7と,命令毎
の実行時間を示す命令実行時間対応情報が格納された命
令実行時間対応表8とから構成されている。
FIG. 1 is a block diagram showing the configuration of an information processing apparatus according to an embodiment of the present invention. The information processing apparatus of this embodiment is
Input device 1 for input operation and input information analysis unit 20
And a program instruction execution number measuring device 2 including a control unit 21, a module search unit 22, an instruction word analysis unit 23, and a measurement result edit output unit 24, and before execution of a first instruction after execution of a branch instruction. A central processing unit 3 including a branch instruction interrupt mechanism 30 which holds a priority level, a pre-branch address and a post-branch address and generates an internal interrupt, and modules 41, 42,
..., main memory 4 for storing the measurement target program consisting of 4n, and post-branch addresses 51, 52 corresponding to each priority level
, 5n is stored until the next branch instruction interrupt, the post-branch address storage unit 5, the instruction execution count storage unit 6 that stores the execution count of each instruction corresponding to each module, and the measurement result of each module The output device 7 outputs a list and an instruction execution time correspondence table 8 in which instruction execution time correspondence information indicating the execution time of each instruction is stored.

中央処理装置3は、主記憶装置4に記憶されている測定
対象プログラムを実行する。後述するように、測定対象
プログラムは、分岐命令を含む複数の命令から構成され
ている。
The central processing unit 3 executes the measurement target program stored in the main storage device 4. As will be described later, the measurement target program is composed of a plurality of instructions including branch instructions.

主記憶装置4にはモジュール41,42,…,4nとから構成す
る測定対象プログラムが存在し,それぞれのモジュール
の先頭アドレスはS1,S2,…,Sn番地で表わされ,同じく
終了アドレスはE0,E1,…,Enとして表わされている。そ
して,モジュールの先頭アドレスS0,S1,…,Sn番地から
は,それぞれモジュールの先頭であることを示し且つそ
れぞれに対応するモジュール名(aaaaa,bbbbb,…,nnnn
n)を含むモジュール先頭識別語41M,42M,…,4nMが備え
られている。
The main memory 4 has a measurement target program composed of modules 41, 42, ..., 4n, and the start address of each module is represented by addresses S1, S2, ..., Sn, and the end address is E0. , E1, ..., En. From the start address S0, S1, ..., Sn of the module, the module names (aaaaa, bbbbb, ...
Module head identifiers 41M, 42M, ..., 4nM including n) are provided.

命令実行数記憶部6は,測定対象プログラムを構成する
モジュールのモジュール名(aaaaa,bbbbb,…,nnnnn)と
先頭アドレス(S1,S2,…,Sn)と終了アドレス(E1,E2,
…,En)とを示すモジュール範囲情報61M,62M,…,6nM
(それぞれモジュール41,42,…,4nに対応)と,命令の
区別を示す命令列60と,モジュール範囲情報61M,62M,
…,6nMで示されるモジュール毎に対応し且つ命令列60の
命令の種類毎に対応し命令の種類毎の実行回数を記憶す
る命令実行回数記憶列61,62,…,6n(それぞれモジュー
ル41,42,…,4nに対応)とを含む。
The instruction execution number storage unit 6 stores the module name (aaaaa, bbbbb, ..., Nnnnn) of the module constituting the measurement target program, the start address (S1, S2, ..., Sn) and the end address (E1, E2,
…, En) Module range information 61M, 62M,…, 6nM
(Corresponding to modules 41, 42, ..., 4n, respectively), an instruction string 60 indicating instruction distinction, and module range information 61M, 62M,
, 6nM corresponding to each module and corresponding to each instruction type of the instruction sequence 60 and storing the number of executions for each type of instruction 61, 62, ..., 6n (module 41, respectively Corresponding to 42, ..., 4n).

また,命令実行時間対応表8には,命令の区別を示す命
令列80と,命令列80の命令毎に対応しその命令の実行時
間を示す命令実行時間81とを含む命令実行時間対応情報
が格納されている。
In addition, the instruction execution time correspondence table 8 includes instruction execution time correspondence information including an instruction sequence 80 indicating the instruction distinction and an instruction execution time 81 corresponding to each instruction of the instruction sequence 80 and indicating the execution time of the instruction. It is stored.

次に,上述の情報処理装置の動作について説明する。Next, the operation of the above information processing apparatus will be described.

まず,モジュール41,42,…,4nから成る測定対象プログ
ラムの優先レベルを1と仮定した場合,優先レベル番号
1と測定対象プログラムの範囲(S1番地とE1番地)とが
入力装置1から入力される。入力情報解析部20は,この
入力された優先レベル番号1と測定対象プログラムの範
囲とを制御部21に通知する。この通知を受けた制御部21
は,優先レベル番号1を分岐命令割込みモードにして,
分岐命令割込機構30を起動すると共に,優先レベル番号
1に対応する分岐後アドレス記憶部5内の分岐後アドレ
ス(分岐後アドレス51)をゼロで初期化する。また,測
定対象プログラムの範囲はモジュールサーチ部22に通知
され,この通知によってモジュールサーチ部22は,S1番
地からEn番地の範囲にあるモジュールをサーチし,モジ
ュール名(aaaaa,bbbbb,…,nnnnn)と先頭アドレス(S
1,S2,…,Sn)と終了アドレス(E1,E2,…,En)とを命令
実行数記憶部6内のモジュール範囲情報61M,62M,…,6nM
に保持するとともに,モジュール範囲情報61M,62M,…,6
nMのそれぞれに対応する命令実行回数記憶列61,62,…,6
nをゼロで初期化する。
First, assuming that the priority level of the measurement target program consisting of modules 41, 42, ..., 4n is 1, the priority level number 1 and the range (S1 address and E1 address) of the measurement target program are input from the input device 1. It The input information analysis unit 20 notifies the control unit 21 of the input priority level number 1 and the range of the measurement target program. Control unit 21 that received this notification
Sets the priority level number 1 to branch instruction interrupt mode,
The branch instruction interrupt mechanism 30 is activated, and the post-branch address (post-branch address 51) in the post-branch address storage unit 5 corresponding to the priority level number 1 is initialized to zero. Further, the range of the measurement target program is notified to the module search unit 22, and the module search unit 22 searches for the module in the range from S1 to En by the notification, and the module name (aaaaa, bbbbb, ..., nnnnn) And the start address (S
1, S2, ..., Sn) and end addresses (E1, E2, ..., En) are the module range information 61M, 62M, ..., 6nM in the instruction execution number storage unit 6.
Module range information 61M, 62M, ..., 6
Instruction execution count storage sequence 61, 62, ..., 6 corresponding to each of nM
Initialize n to zero.

この後,主記憶装置4内での測定対象プログラムが起動
されて分岐命令が実行されると,中央処理装置3の分岐
命令割込機構30は分岐先のアドレスで分岐命令割込みを
発生させてプログラム命令実行数測定装置2の制御部21
を動作させる。
After that, when the measurement target program in the main memory 4 is activated and the branch instruction is executed, the branch instruction interrupt mechanism 30 of the central processing unit 3 causes the branch instruction interrupt at the branch destination address to generate the program. Control unit 21 of the instruction execution number measuring device 2
To operate.

この分岐命令割込み発生後、中央処理装置3は実行中の
測定対象プログラムの処理を停止する。制御部21は,分
岐命令割込機構30によって優先レベル番号1と測定対象
プログラム内の分岐命令自身のアドレスである分岐前ア
ドレスとこの分岐命令による分岐先である分岐後アドレ
スとが通知されると,分岐後アドレス記憶部5内の優先
レベル番号1に対応する分岐後アドレス51の内容が示す
アドレスからこの分岐命令割込み時通知された分岐前ア
ドレスまでの範囲内にある命令を解析するよう命令語解
析部23に指示すると共に,同じくこの分岐命令割込み時
通知された分岐後アドレスを優先レベル番号1に対する
次の分岐命令割込み時まで分岐後アドレス51に記憶して
おく。
After the occurrence of this branch instruction interrupt, the central processing unit 3 stops the processing of the measurement target program being executed. When the branch instruction interrupt mechanism 30 notifies the control unit 21 of the priority level number 1, the pre-branch address that is the address of the branch instruction itself in the measurement target program, and the post-branch address that is the branch destination of this branch instruction. , An instruction word for analyzing an instruction within the range from the address indicated by the content of the post-branch address 51 corresponding to the priority level number 1 in the post-branch address storage unit 5 to the pre-branch address notified at the time of the branch instruction interrupt At the same time as instructing the analysis unit 23, the post-branch address notified at the time of the branch instruction interrupt is also stored in the post-branch address 51 until the next branch instruction interrupt for the priority level number 1.

この後,命令語解析部23は,制御部21によって指示され
た範囲内の命令を解析し,この解析結果(命令の種類毎
の数)を命令実行回数記憶列(解析された範囲がS1番地
からE1番地内であれば命令実行回数記憶列61)内の命令
の種類に対応させて加算する。尚,制御部21は,分岐後
アドレス51がゼロで初期化されている最初の分岐命令割
込み時には,分岐命令割込み機構30から通知された分岐
後アドレスを分岐後アドレス51に記憶するだけで,命令
語解析部23に対して命令の解析指示をしない。
After that, the instruction word analysis unit 23 analyzes the instructions within the range designated by the control unit 21, and outputs the analysis result (the number of each instruction type) to the instruction execution count storage sequence (the analyzed range is S1 address). If the address is from E1 to E1, the number is added according to the type of instruction in the instruction execution count storage string 61). At the time of the first branch instruction interrupt in which the post-branch address 51 is initialized to zero, the control unit 21 simply stores the post-branch address notified from the branch instruction interrupt mechanism 30 in the post-branch address 51. No instruction analysis instruction is given to the word analysis unit 23.

以上の動作を行なった後,制御部21はモジュール41での
分岐後アドレスから実行再開を分岐命令割込機構30に指
示し,次の分岐命令割込み待ちとなる。
After performing the above operation, the control unit 21 instructs the branch instruction interrupt mechanism 30 to resume execution from the address after branch in the module 41, and waits for the next branch instruction interrupt.

この実行再開の指示に応答して、中央処理装置3は停止
していたプログラムの実行を再開する。
In response to the instruction to restart the execution, the central processing unit 3 restarts the execution of the stopped program.

ここで,第2図を参照して,プログラム命令実行数測定
装置2の命令語解析部23が解析する範囲を,モジュール
41のアドレスP0からアドレスP4までのルーチンを例にと
って,具体的に説明する。
Here, referring to FIG. 2, the range analyzed by the command word analysis unit 23 of the program command execution number measuring device 2 is set to the module
The routine from address P0 to address P4 of 41 will be specifically described.

モジュール41に於いて,アドレスP0,P1,P2,P3,P4は分岐
命令の分岐先アドレスであり,アドレスB1,B2,B3,B4は
分岐命令自身のアドレスである。
In the module 41, the addresses P0, P1, P2, P3 and P4 are the branch destination addresses of the branch instruction, and the addresses B1, B2, B3 and B4 are the addresses of the branch instruction itself.

まず,モジュール41のアドレスP0に分岐する分岐命令
(図示していない)が実行されると,分岐命令割込機構
30によって分岐命令割込みが発生し,プログラム命令実
行数測定装置2(の制御部21)が動作する。プログラム
命令実行数測定装置2(の制御部21)は分岐命令割込み
機構30から通知されるアドレスP0を分岐後アドレス51に
記憶する(ここではアドレスP0に分岐する前の範囲に対
する動作手順の説明を省略する)。
First, when a branch instruction (not shown) that branches to the address P0 of the module 41 is executed, the branch instruction interrupt mechanism
A branch instruction interrupt is generated by 30, and the program instruction execution number measuring device 2 (the control unit 21 thereof) operates. The program instruction execution number measuring device 2 (the control unit 21 thereof) stores the address P0 notified from the branch instruction interrupt mechanism 30 in the post-branch address 51 (here, the operation procedure for the range before branching to the address P0 is described. Omitted).

次にモジュール41のアドレスB1での分岐命令が実行さ
れ,分岐先であるアドレスP1で分岐命令割込みが発生
し,プログラム命令実行数測定装置2(の命令語解析部
23)は分岐命令割込機構30から通知されるアドレスB1と
このとき分岐後アドレス51が記憶しているアドレスP0と
の範囲(アドレスP0からアドレスB1まで)にある命令を
解析して,解析結果(命令の種類毎の数)を命令実行回
数記憶列61内の命令の種類に対応させて加算する。
Next, a branch instruction at the address B1 of the module 41 is executed, a branch instruction interrupt occurs at the branch destination address P1, and the program instruction execution number measuring device 2
23) is the analysis result by analyzing the instruction in the range (address P0 to address B1) between the address B1 notified from the branch instruction interrupt mechanism 30 and the address P0 stored in the post-branch address 51 at this time. (Number of each type of instruction) is added corresponding to the type of instruction in the instruction execution count storage string 61.

この後,プログラム命令実行数測定装置2(の制御部2
1)は,アドレスB1と共に通知されたアドレスP1を分岐
後アドレス51に記憶する。
After this, the control unit 2 of the program instruction execution number measuring device 2 (
In 1), the address P1 notified together with the address B1 is stored in the post-branch address 51.

同様に,アドレスB2,B3,B4の分岐命令の実行によってそ
れぞれアドレスP2,P3,P4で分岐命令割込みが発生し,こ
のときプログラム命令実行数測定装置2(の命令語解析
部23)によって解析されるのは,それぞれ,アドレスP1
からアドレスB2までの範囲と,アドレスP2からアドレス
B3までの範囲と,アドレスP3からアドレスB4までの範囲
である。尚,分岐命令割込み時に分岐命令割込機構30か
ら通知されるのは,分岐命令自身のアドレス(B1,B2,B
3,B4)と分岐命令の分岐先アドレス(P0,P1,P2,P3,P4)
の他に,測定対象プログラム41の優先レベル番号(図示
していない)もあり,この優先レベル番号によって分岐
後アドレス51が選択可能となる。
Similarly, the execution of the branch instruction at the addresses B2, B3, B4 causes a branch instruction interrupt at the addresses P2, P3, P4, respectively. At this time, the program instruction execution number measuring device 2 (the instruction word analysis unit 23) analyzes The address is P1
To address B2 and address P2 to address
It is the range from B3 and the range from address P3 to address B4. The branch instruction interrupt mechanism 30 notifies the address (B1, B2, B) of the branch instruction itself when the branch instruction is interrupted.
3, B4) and the branch destination address of the branch instruction (P0, P1, P2, P3, P4)
In addition, there is a priority level number (not shown) of the measurement target program 41, and the post-branch address 51 can be selected by this priority level number.

また,分岐後アドレス記憶部5内の分岐後アドレスは優
先レベルに対応させて記憶できるため,以上述べた優先
レベル1で走行する測定対象プログラム単独の測定だけ
でなく,複数の優先レベルを同時に測定することが可能
である。
Further, since the post-branch address in the post-branch address storage unit 5 can be stored in association with the priority level, not only the above-described measurement of the measurement target program running at the priority level 1 alone but also a plurality of priority levels can be measured simultaneously. It is possible to

最後に測定が終了し,優先レベル番号1の分岐命令割込
みモード解除指令が入力装置1から入力される。入力情
報解析部20は,この入力された優先レベル番号1に対す
る分岐命令割込みモード解除指令を制御部21に通知す
る。この通知を受けた制御部21は,優先レベル番号1の
分岐命令割込みモードを解除して,分岐命令割込機構30
を停止すると共に,優先レベル番号1に対する測定結果
を編集出力するように測定結果編集出力部24に指示す
る。この指示を受けた測定結果編集出力24は,命令実行
数記憶部6と命令実行時間対応表8とをもとに,モジュ
ール毎の実行時間を算出し(命令の種類毎に対応して,
命令実行回数記憶列内の実行回数と命令実行時間対応表
8内の実行時間とを乗算し,命令毎の乗算結果を合計す
る),この算出結果を出力装置7に出力する。
Finally, the measurement is completed, and the branch instruction interrupt mode release command of priority level number 1 is input from the input device 1. The input information analysis unit 20 notifies the control unit 21 of the branch instruction interrupt mode release command for the input priority level number 1. Upon receiving this notification, the control unit 21 releases the branch instruction interrupt mode of the priority level number 1 and branches to the branch instruction interrupt mechanism 30.
Is stopped and the measurement result edit output unit 24 is instructed to edit and output the measurement result for the priority level number 1. Upon receipt of this instruction, the measurement result edit output 24 calculates the execution time for each module based on the instruction execution number storage unit 6 and the instruction execution time correspondence table 8 (corresponding to each instruction type,
The execution count in the instruction execution count storage string is multiplied by the execution time in the instruction execution time correspondence table 8 and the multiplication results for each instruction are summed), and the calculation result is output to the output device 7.

更に,命令実行時間対応表8で示される命令の実行時間
は,同じ命令であっても計算機の種類によって異なるた
め,命令の種類毎に且つ計算機の種類毎に命令の実行時
間を対応させるように構成し,計算機の種類毎にプログ
ラム毎の実行時間を測定することが可能となる。
Further, the instruction execution time shown in the instruction execution time correspondence table 8 varies depending on the type of computer even if it is the same instruction. Therefore, the instruction execution time should be made to correspond to each instruction type and each computer type. It is possible to configure and measure the execution time for each program for each computer type.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば,分岐命令割込みを
利用してプログラムの命令実行数を測定するため,プロ
グラムの内容を全く知らなくとも測定することができ,
測定のための手続きも簡単であり,さらに測定のための
時間も机上で計算する場合に比較して大幅に減少する。
また,編集出力されるリストには,モジュール毎に実行
時間が出力されるため,プログラム(特に制御プログラ
ム)の性能を改善する場合には,大変参考になる。
As described above, according to the present invention, since the number of instruction executions of a program is measured by using a branch instruction interrupt, it is possible to perform measurement without knowing the content of the program.
The procedure for measurement is simple, and the time required for measurement is greatly reduced compared to the case of calculating on the desk.
In addition, since the execution time is output for each module in the list that is edited and output, it is very helpful when improving the performance of the program (particularly the control program).

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

第1図は本発明の一実施例による情報処理装置の構成を
示すブロック図,第2図はプログラム命令実行数測定装
置の命令語解析部が解析する範囲を具体的に説明するた
めの関連図である。 1……入力装置,2……プログラム命令実行数測定装置,3
……中央処理装置,4……主記憶装置,5……分岐後アドレ
ス記憶部,6……命令実行数記憶部,7……出力装置,8……
命令実行時間対応表。
FIG. 1 is a block diagram showing a configuration of an information processing apparatus according to an embodiment of the present invention, and FIG. 2 is a related diagram for specifically explaining a range analyzed by a command word analysis unit of a program command execution count measuring device. Is. 1 ... Input device, 2 ... Program command execution number measurement device, 3
...... Central processing unit, 4 ...... Main storage device, 5 ...... Post-branch address storage unit, 6 ...... Instruction execution number storage unit, 7 ...... Output device, 8 ......
Instruction execution time correspondence table.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プログラムを実行する中央処理装置と、 前記プログラムを構成する全モジュールの先頭部に当該
モジュールの先頭を示し、かつモジュール名を含むモジ
ュール先頭識別機構と、 前記全モジュールの先頭アドレスと終了アドレスとモジ
ュール名とを求めるため、前記モジュール先頭識別機構
をサーチするモジュールサーチ手段と、 該モジュールサーチ手段によって得られた前記全モジュ
ールの先頭アドレスと終了アドレスとモジュール名とを
記憶するモジュール範囲情報記憶手段と、 前記中央処理装置が分岐命令を実行したときに、内部割
込みを発生させるとともに、当該分岐命令の分岐前アド
レスと分岐先アドレスとを通知する分岐命令割込み手段
と、 分岐命令の分岐後アドレスを記憶する分岐後アドレス記
憶手段と、 前記モジュール範囲情報記憶手段で指定される範囲のモ
ジュール毎に、前記分岐命令割込み手段が内部割込みを
発生させたときに起動し、前記分岐後アドレス記憶手段
に記憶された分岐後アドレスと前記分岐命令割込み手段
から通知される分岐前アドレスとで示される範囲内に存
在する命令数を計数し、前記分岐命令割込み手段が通知
する分岐後アドレスを前記分岐後アドレス記憶手段に記
憶する命令実行数測定手段とを含むことを特徴とする情
報処理装置。
1. A central processing unit that executes a program, a module head identification mechanism that indicates the head of the module at the head of all modules that make up the program, and that includes a module name, and head addresses of all the modules. Module search means for searching the module head identification mechanism to obtain an end address and a module name, and module range information for storing the head addresses, end addresses and module names of all the modules obtained by the module search means Storage means, branch instruction interrupt means for generating an internal interrupt when the central processing unit executes a branch instruction, and notifying a pre-branch address and a branch destination address of the branch instruction, and a branch instruction after branch Post-branch address storage means for storing an address; For each module in the range specified by the module range information storage means, the branch instruction interrupt means is activated when an internal interrupt is generated, and the branch instruction address and the branch instruction interrupt stored in the post branch address storage means An instruction execution number measuring means for counting the number of instructions existing within a range indicated by the pre-branch address notified from the means, and storing the post-branch address notified by the branch instruction interrupt means in the post-branch address storage means. An information processing device comprising:
JP62178183A 1987-07-18 1987-07-18 Information processing equipment Expired - Lifetime JPH0795293B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62178183A JPH0795293B2 (en) 1987-07-18 1987-07-18 Information processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62178183A JPH0795293B2 (en) 1987-07-18 1987-07-18 Information processing equipment

Publications (2)

Publication Number Publication Date
JPS6423348A JPS6423348A (en) 1989-01-26
JPH0795293B2 true JPH0795293B2 (en) 1995-10-11

Family

ID=16044052

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62178183A Expired - Lifetime JPH0795293B2 (en) 1987-07-18 1987-07-18 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH0795293B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS603763A (en) * 1983-06-22 1985-01-10 Hitachi Ltd Processor of electronic computer
JPS62102339A (en) * 1985-10-30 1987-05-12 Toshiba Corp Program tracing device

Also Published As

Publication number Publication date
JPS6423348A (en) 1989-01-26

Similar Documents

Publication Publication Date Title
US7310798B1 (en) Simulator tool for testing software in development process
US7475386B1 (en) Mechanism for disjoint instrumentation providers in a tracing framework
JPH0795293B2 (en) Information processing equipment
US6202190B1 (en) Process for determining the start- up time of a data processing system
JPH0795294B2 (en) Information processing equipment
CN111782443B (en) Data processing method and device and electronic equipment
JPS63300332A (en) Measurement system for number of times of instruction execution of program
JPS63300333A (en) Measurement system for number of times of instruction execution of program
JPH03257548A (en) Measurement system for instruction executing frequency of program
JPH0497445A (en) Diagnostic system for information processor
JP2744029B2 (en) System bus monitor for electronic exchange
JPS59188709A (en) Plant diagnosing device
JPH04178840A (en) Performance measuring system
JPH0468446A (en) Debugging supporting device
JPH0448257B2 (en)
JPS61231607A (en) Simulation system for iron and steel rolling control system
JP3331597B2 (en) Control device
JPH0540654A (en) Optional instruction tracing system
JPH03268034A (en) Program execution monitoring method
JPH04223527A (en) Program executing method
JPS6326416B2 (en)
JPH04241637A (en) System for measuring number of executed program instruction
JPH0342749A (en) Input/output controller
JPH064348A (en) Program debugging system
JPH03103935A (en) Numerical calculation processing verifying device dependent upon computer