JPH03129538A - Program evaluation system - Google Patents

Program evaluation system

Info

Publication number
JPH03129538A
JPH03129538A JP1269632A JP26963289A JPH03129538A JP H03129538 A JPH03129538 A JP H03129538A JP 1269632 A JP1269632 A JP 1269632A JP 26963289 A JP26963289 A JP 26963289A JP H03129538 A JPH03129538 A JP H03129538A
Authority
JP
Japan
Prior art keywords
instruction
cpu
simulator
communication
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
JP1269632A
Other languages
Japanese (ja)
Inventor
Yuichi Fukuda
裕一 福田
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 Solution Innovators Ltd
Original Assignee
NEC Software Hokuriku Ltd
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 Software Hokuriku Ltd filed Critical NEC Software Hokuriku Ltd
Priority to JP1269632A priority Critical patent/JPH03129538A/en
Publication of JPH03129538A publication Critical patent/JPH03129538A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To make it possible to reflect the result of response processing to communication to program evaluation by detecting a communication instruction issued by a program to be evaluated and automatically executing the response processing to the communication in accordance with the contents of a communication instruction. CONSTITUTION:An instruction extracting means 5 extracts a CPU instruction to be executed from the program 2 to be evaluated stored in a main storage device 1, and when there is a CPU instruction to be executed, starts an instruction analyzing/executing means 6. When the supplied CPU instruction requests communication issue to a processor 14, the means 6 starts an external processor simulator starting means 7. The means 7 starts an instruction string output means 11. When a CPU instruction string corresponding to the informed communication instruction is defined in response information stored in a response information storing means 9, the means 11 starts an instruction supplying means 12. Consequently the result of response processing to communication is reflected to the program evaluation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、開発段階のプログラムの評価システムに関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an evaluation system for programs at the development stage.

〔従来の技術〕[Conventional technology]

ソフトプログラムの開発は、そのプログラムの適応対象
であるマイクロコンビエータ等のハードの開発と同時に
進められる場合が多いため、開発途中のプログラムの有
効性等を評価する場合に、そのハードの機能の一部を代
替するシミュレータを用いた評価システムが採用されて
いる。
The development of a software program is often carried out simultaneously with the development of the hardware such as a micro combinator to which the program is applied, so when evaluating the effectiveness of a program that is currently under development, it is important to An evaluation system using a simulator that replaces the department has been adopted.

従来、この種の評価システムは、マイクロコンピュータ
のCPUの機能の一部を代替するためのCPUシミュレ
ータと、評価対象プログラムを格納する主記憶装置から
なり、評価対象プログラムを用いてCPUシミュレータ
を実際に動作させ、所定の動作が正確に行われるかどう
か試験し、そのプログラム評価を行っていた。
Conventionally, this type of evaluation system consists of a CPU simulator that replaces some of the functions of the CPU of a microcomputer, and a main storage device that stores the program to be evaluated. The program was evaluated by running the program and testing whether the predetermined operations were performed correctly.

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

上述した従来のプログラム評価システムは、シミュレー
ト対象のCPUとは異なるプロセッサと通信処理を行う
マイクロコンピュータに適応されるプログラムの評価を
行う場合に、シミュレート対象のCPUより発行された
通信に対する応答処理を行うことができなかつため、評
価対象プログラムの発行する通信要求に関する評価は、
実質的に行うことはできなかった。
The conventional program evaluation system described above, when evaluating a program applied to a microcomputer that performs communication processing with a processor different from the CPU to be simulated, processes responses to communications issued by the CPU to be simulated. Therefore, the evaluation of communication requests issued by the program to be evaluated is
It was practically impossible to do.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプログラム評価システムの構成は、開発段階の
プログラムを評価するためのシステムであって、その評
価対象プログラムの適応対象である情報処理装置におけ
るCPUの一部の機能を代替し、前記評価対象プログラ
ムのCPU命令を解析、実行するCPUシミュレータと
、前記CPUシミュレータに接続され、前記情報処理装
置内の前記CPUとは異なるプロセッサの一部の機能を
代替し、前記CPUシミュレータより発行された通信に
対して応答する外部プロセッサシミュレータと、前記評
価対象プログラムを格納するための主記憶装置を具備し
、前記CPUシミュレータは、起動命令に応答して、該
CPUシミュレータを起動するCPUシミュレータ起動
手段と、前記評価対象プログラムから実行すべきCPU
命令を取り出す命令取り出し手段と、供給されたCPU
命令を解析し、実行する命令解析/実行手段と、この命
令解析/実行手段により、前記CPUとは異なる前記情
報処理装置内のプロセッサに対する通信発行を要求する
通信命令が検出された場合に、該通信命令に基づいて前
記外部プロセッサシミュレータを起動する外部プロセッ
サシミュレータ起動手段と、該CPUシミュレータの外
部から入力された対応付は情報に基づいて、通信命令と
CPU命令列を対応付ける応答情報を作成する応答情報
作成手段と、応答情報を格納する応答情報格納手段とを
有し、前記外部プロセッサシミュレータは、前記応答情
報を参照して、前記外部プロセッサシミュレータ起動手
段により通知された通信命令に対応するCPU命令列を
検索し出力する一命令列出力手段と、前記命令列出力手
段によって出力されたCPU命令列を、前記命令解析/
実行手段に1命令づつ供給する命令供給手段とを有する
ことを特徴とする。
The configuration of the program evaluation system of the present invention is a system for evaluating a program at the development stage, and replaces some functions of a CPU in an information processing device to which the program to be evaluated is applied. a CPU simulator that analyzes and executes CPU instructions of a program; and a CPU simulator that is connected to the CPU simulator and replaces some functions of a processor different from the CPU in the information processing device, and that performs communication issued by the CPU simulator. an external processor simulator that responds to the evaluation target program, and a main storage device for storing the evaluation target program; CPU that should be executed from the evaluation target program
An instruction fetching means for fetching instructions and a supplied CPU
an instruction analysis/execution unit that analyzes and executes an instruction; and when the instruction analysis/execution unit detects a communication instruction requesting the issuance of communication to a processor in the information processing device different from the CPU; an external processor simulator activation means for activating the external processor simulator based on a communication command; and a response for creating response information that associates a communication command with a CPU instruction string based on correspondence input from outside the CPU simulator. The external processor simulator has an information creation means and a response information storage means for storing response information, and the external processor simulator refers to the response information and executes a CPU command corresponding to the communication command notified by the external processor simulator activation means. An instruction sequence output means for searching and outputting a sequence, and a CPU instruction sequence outputted by the instruction sequence output means,
The present invention is characterized by comprising an instruction supply means for supplying one instruction to the execution means one by one.

〔実施例〕〔Example〕

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

第1図は本発明のプログラム評価システムの一実施例の
構成を示す図、第2図は評価対象プログラムが実際に適
用される情報処理装置の槽底を示す図、第3図は第1図
の応答情報格納手段9に格納されている応答情報15の
構成を示す図、第4図は本実施例の動作手順を示すフロ
ーチャートである。
FIG. 1 is a diagram showing the configuration of an embodiment of the program evaluation system of the present invention, FIG. 2 is a diagram showing the bottom of the information processing device to which the program to be evaluated is actually applied, and FIG. 3 is the diagram shown in FIG. 1. FIG. 4 is a flowchart showing the operating procedure of this embodiment.

本実施例のプログラム評価システムは、第2図のCPU
13の機能の一部を代替するCPUシミュレータ3と、
第2図のプロセッサ14の機能の一部を代替する外部プ
ロセッサシミュレータ1゜と、評価対象プログラム2を
格納している主記憶装置1とから構成されている。CP
Uシミュレータ3は、起動命令を受けてCPUシミュレ
ータを起動するCPUシミュレータ起動手段4と、評価
対象プログラム2からCPU命令を取り出す命令取り出
し手段5と、供給されたCPU命令を解析し、実行する
命令解析/実行手段6と、供給されたCPU命令がプロ
セッサ14に対する通信命令であることを命令解析/実
行手段6が検出した場合に、検出した通信命令を外部プ
ロセッサシミュレータ10に通知し、これを起動する外
部プロセッサシミュレータ起動手段7と、外部から入力
される対応付は情報に基づいて、通信命令とCPU命令
列を対応付けるための応答情報を作成する応答情報作成
手段8と、応答情報を格納する応答情報格納手段9とか
ら構成されている。外部プロセッサシミュレータ10は
、外部プロセッサシミュレータ起動手段7によって通知
された通信命令に対応するCPU命令列を応答情報から
検索し出力する命令列出力手段11と、命令列出力手段
11によって出力されたCPU命令列からCPU命令を
順次取り出し、命令解析/実行手段6に1命令づつ供給
し、これを起動する命令供給手段12とから構成されて
いる。
The program evaluation system of this embodiment uses the CPU shown in FIG.
CPU simulator 3 that replaces some of the functions of 13;
It consists of an external processor simulator 1° that replaces part of the functions of the processor 14 shown in FIG. 2, and a main storage device 1 that stores a program 2 to be evaluated. C.P.
The U simulator 3 includes a CPU simulator starting means 4 that starts the CPU simulator in response to a starting command, an instruction extracting means 5 that extracts a CPU instruction from the evaluation target program 2, and an instruction analyzer that analyzes and executes the supplied CPU instruction. /When the execution means 6 and the instruction analysis/execution means 6 detect that the supplied CPU instruction is a communication instruction for the processor 14, the detected communication instruction is notified to the external processor simulator 10, and the external processor simulator 10 is activated. External processor simulator starting means 7, response information creation means 8 for creating response information for associating communication commands and CPU instruction sequences based on correspondence input from the outside, and response information for storing response information. It is composed of storage means 9. The external processor simulator 10 includes an instruction sequence output means 11 that searches response information for a CPU instruction sequence corresponding to a communication command notified by the external processor simulator activation means 7 and outputs the CPU instruction sequence, and a CPU instruction outputted by the instruction sequence output means 11. It is comprised of an instruction supply means 12 that sequentially extracts CPU instructions from the sequence, supplies them one instruction at a time to the instruction analysis/execution means 6, and activates the instructions.

次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.

外部から起動命令が入力されると、CPUシミュレータ
起動手段4はCPUシミュレータ3を起動しくステップ
16)、続いて応答情報作成手段8を起動する(ステッ
プ17〉、応答情報作成手段8は、外部から入力される
対応付は情報に基づいて、応答情報を作成し、応答情報
格納手段9に格納する(ステップ18)0次に、CPU
シミュ。
When a startup command is input from the outside, the CPU simulator startup means 4 starts the CPU simulator 3 (step 16), and then starts the response information creation means 8 (step 17). Based on the input correspondence information, response information is created and stored in the response information storage means 9 (step 18).Next, the CPU
Simulation.

レータ起動手段4は、命令取り出し手段5を起動しくス
テップ19)、命令取り出し手段5は、主記憶装置1内
の評価対象プログラム2から実行すべきCPU命令を取
りだしくステップ20〉、まず、実行するCPU命令の
有無を判断しくステップ21〉、実行するCPU命令が
ある場合には、命令解析/実行手段6に供給するととも
に、命令解析/実行手段6を起動する(ステップ22〉
The controller starting means 4 starts the instruction retrieval means 5 (step 19), and the instruction retrieval means 5 retrieves the CPU instruction to be executed from the evaluation target program 2 in the main memory 1 (step 20), and first executes it. It is determined whether there is a CPU instruction or not (Step 21), and if there is a CPU instruction to be executed, it is supplied to the instruction analysis/execution means 6 and the instruction analysis/execution means 6 is activated (Step 22).
.

処理すべきCPU命令がない時は処理を終了する。When there are no CPU instructions to process, the process ends.

命令解析/実行手段6は、供給されたCPU命令がプロ
セッサ14に対する通信発行を要求するものであるかど
うかを判断しくステップ24〉、通信命令である場合に
、外部プロセッサシミュレータ起動手段7を起動する(
ステップ25〉0通信要求のない場合には、ステップ1
9に戻り、評価対象プログラム2上の次のCPU命令の
処理を行う。
The instruction analysis/execution means 6 determines whether the supplied CPU instruction requests the processor 14 to issue a communication (Step 24), and if it is a communication instruction, starts the external processor simulator activation means 7. (
Step 25>0 If there is no communication request, step 1
Returning to step 9, the next CPU instruction on the evaluation target program 2 is processed.

外部プロセッサシミュレータ起動手段7は、検出された
通信命令の内容を命令列出力手段11に通知し、命令列
出力手段11を起動する(ステップ26)、命令列出力
手段11は、通知された通信命令に対応するCPU命令
列が応答情報格納手段9内の応答情報に定義されている
かどうか判断しくステップ27)、通信命令に対応する
CPU命令列が応答情報上に定義されていた場合には、
対応するCPU命令列を命令供給手段12に通知し、こ
れを起動する(ステップ28)0通信命令に対応するC
PU命令列が応答情報上に定義されていなかった場合に
は、ステップ19に戻り、次のCPU命令の処理を行う
。命令供給手段12は、通知されたCPU命令列上の全
てのCPU命令が実行されたかどうかを判断しくステッ
プ29)、実行するCPU命令が存在する場合には、C
PU命令列より次に実行するCPU命令を取りだし、取
り出したCPLI命令を命令解析/実行手段6に供給す
るとともに、これを起動する(ステップ30〉。
The external processor simulator starting means 7 notifies the instruction string output means 11 of the content of the detected communication command and starts the instruction string output means 11 (step 26). It is determined whether the CPU command sequence corresponding to the communication command is defined in the response information in the response information storage means 9 (step 27), and if the CPU command sequence corresponding to the communication command is defined in the response information,
Notify the corresponding CPU instruction sequence to the instruction supply means 12 and start it (step 28) C corresponding to the 0 communication instruction
If the PU instruction sequence is not defined in the response information, the process returns to step 19 to process the next CPU instruction. The instruction supply means 12 determines whether all CPU instructions on the notified CPU instruction sequence have been executed (Step 29), and if there is a CPU instruction to be executed, the
The CPU instruction to be executed next is extracted from the PU instruction sequence, and the extracted CPLI instruction is supplied to the instruction analysis/execution means 6, and it is activated (step 30).

命令解析/実行手段6は、供給されたCPU命令を解析
/実行(シミュレート〉シた後(ステップ31〉、ステ
ップ29に戻り、CPU命令列上の次のCPU命令の処
理を行う、cpu命令列上の全てのCPU命令が実行さ
れた場合には、ステップ19に戻り、評価対象プログラ
ム2上の次のCPU命令の処理を行い、処理するCPU
命令がなくなった時に処理を終了する。
The instruction analysis/execution means 6 analyzes/executes (simulates) the supplied CPU instruction (step 31), returns to step 29, and processes the next CPU instruction on the CPU instruction sequence. When all the CPU instructions on the column have been executed, the process returns to step 19 and processes the next CPU instruction on the evaluation target program 2, and the CPU to process
Processing ends when there are no more instructions.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、評価対象プログラムの発
行する通信命令を検出し、この通信に対する応答処理を
通信命令を内容に従って自動的に行うことにより、通信
に対する応答処理の結果をプログラム評価に反映するこ
とができる。
As explained above, the present invention detects a communication command issued by a program to be evaluated, and automatically performs a response process to this communication according to the content of the communication command, thereby reflecting the result of the response process to the communication in program evaluation. can do.

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

第1図は本発明のプログラム評価システムの一実施例の
構成を示す図、第2図は評価対象プログラムが実際に適
用される情報処理装置のnIj戒を示す図、第3図は第
1の応答情報格納手段9に格納されている応答情報15
の槽底を示す図、第4図は本実施例の動作手順を示すフ
ローチャートである。 1・・・主記憶装置、2・・・評価対象プログラム、3
・・・CPUシミュレータ、4・・・CPUシミュレー
タ起動手段、5・・・命令取り出し手段、6・・・命令
解析/実行手段、7・・・外部プロセッサシミュレータ
起動手段、8・・・応答情報作成手段、9・・・応答情
報格納手段、10・・・外部プロセッサシミュレータ、
11・・・命令列出力手段、12・・・命令供給手段、
13・・・CPU、14・・・プロセッサ、15・・・
応答情報、16〜31・・・ステップ。
FIG. 1 is a diagram showing the configuration of an embodiment of the program evaluation system of the present invention, FIG. 2 is a diagram showing the nIj precepts of an information processing device to which the evaluation target program is actually applied, and FIG. Response information 15 stored in response information storage means 9
FIG. 4 is a flowchart showing the operating procedure of this embodiment. 1... Main storage device, 2... Program to be evaluated, 3
...CPU simulator, 4.CPU simulator starting means, 5.Instruction fetching means, 6.Instruction analysis/execution means, 7.External processor simulator starting means, 8.Reply information creation means, 9...response information storage means, 10...external processor simulator;
11... Instruction sequence output means, 12... Instruction supply means,
13...CPU, 14...Processor, 15...
Response information, steps 16-31.

Claims (1)

【特許請求の範囲】[Claims] 開発段階のプログラムを評価するためのシステムであつ
て、その評価対象プログラムの適応対象である情報処理
装置におけるCPUの一部の機能を代替し、前記評価対
象プログラムのCPU命令を解析、実行するCPUシミ
ュレータと、前記CPUシミュレータに接続され、前記
情報処理装置内の前記CPUとは異なるプロセッサの一
部の機能を代替し、前記CPUシミュレータより発行さ
れた通信に対して応答する外部プロセッサシミュレータ
と、前記評価対象プログラムを格納するための主記憶装
置を具備し、前記CPUシミュレータは、起動命令に応
答して、該CPUシミュレータを起動するCPUシミュ
レータ起動手段と、前記評価対象プログラムから実行す
べきCPU命令を取り出す命令取り出し手段と、供給さ
れたCPU命令を解析し、実行する命令解析/実行手段
と、この命令解析/実行手段により、前記CPUとは異
なる前記情報処理装置内のプロセッサに対する通信発行
を要求する通信命令が検出された場合に、該通信命令に
基づいて前記外部プロセッサシミュレータを起動する外
部プロセッサシミュレータ起動手段と、該CPUシミュ
レータの外部から入力された対応付け情報に基づいて、
通信命令とCPU命令列を対応付ける応答情報を作成す
る応答情報作成手段と、応答情報を格納する応答情報格
納手段とを有し、前記外部プロセッサシミュレータは、
前記応答情報を参照して、前記外部プロセッサシミュレ
ータ起動手段により通知された通信命令に対応するCP
U命令列を検索し出力する命令列出力手段と、前記命令
列出力手段によって出力されたCPU命令列を、前記命
令解析/実行手段に1命令づつ供給する命令供給手段と
を有することを特徴とするプログラム評価システム。
A system for evaluating a program at the development stage, which is a CPU that replaces some of the functions of a CPU in an information processing device to which the evaluation target program is applied, and analyzes and executes CPU instructions of the evaluation target program. a simulator; an external processor simulator connected to the CPU simulator, which replaces some functions of a processor different from the CPU in the information processing device and responds to communications issued by the CPU simulator; The CPU simulator includes a main storage device for storing a program to be evaluated, and the CPU simulator includes a CPU simulator startup means for starting the CPU simulator in response to a startup command, and a CPU instruction to be executed from the program to be evaluated. an instruction retrieval unit for retrieving an instruction; an instruction analysis/execution unit for analyzing and executing a supplied CPU instruction; and a request for issuing a communication to a processor in the information processing device different from the CPU by the instruction analysis/execution unit. External processor simulator activation means for activating the external processor simulator based on the communication instruction when a communication instruction is detected, and based on association information input from the outside of the CPU simulator,
The external processor simulator includes a response information creation means for creating response information that associates a communication command with a CPU command sequence, and a response information storage means for storing the response information, and the external processor simulator includes:
With reference to the response information, the CP corresponding to the communication command notified by the external processor simulator starting means
It is characterized by comprising an instruction sequence output means for searching and outputting a U instruction sequence, and an instruction supply means for supplying the CPU instruction sequence outputted by the instruction sequence output means to the instruction analysis/execution means one instruction at a time. program evaluation system.
JP1269632A 1989-10-16 1989-10-16 Program evaluation system Pending JPH03129538A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1269632A JPH03129538A (en) 1989-10-16 1989-10-16 Program evaluation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1269632A JPH03129538A (en) 1989-10-16 1989-10-16 Program evaluation system

Publications (1)

Publication Number Publication Date
JPH03129538A true JPH03129538A (en) 1991-06-03

Family

ID=17475056

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1269632A Pending JPH03129538A (en) 1989-10-16 1989-10-16 Program evaluation system

Country Status (1)

Country Link
JP (1) JPH03129538A (en)

Similar Documents

Publication Publication Date Title
US20090172664A1 (en) Adding a profiling agent to a virtual machine to permit performance and memory consumption analysis within unit tests
WO2005055051A2 (en) Determining the possibility of adverse effects arising from a code change
JPH03129538A (en) Program evaluation system
US7318221B2 (en) Windows™ F-language interpreter
US6286136B1 (en) Compile processing apparatus and method and program executing apparatus and method
JP2003114809A (en) Simulation apparatus and simulation method
JPH0391848A (en) Program evaluation system
JPH09288595A (en) Arithmetic processing unit
US7627859B2 (en) Method for configuring non-script language library files to be run as scripts
JPH10222361A (en) Rom program monitor device in processor of computer or the like
JPH05250221A (en) Simulator execution system
JP3130421B2 (en) Program analysis method and apparatus
JPS6358550A (en) Simulator
JPH0468446A (en) Debugging supporting device
JPH02278346A (en) Display system for exception occurred position
JPH06348538A (en) Debugger
JPH0216663A (en) Information processor
JPH06103115A (en) Debugging system
JPS604492B2 (en) calculator
JPH09185525A (en) Protocol debugging system
JPS62235652A (en) Debugging method for program
JPH02253336A (en) Program starting system
JPH0157375B2 (en)
JPH0744421A (en) Software simulator
JPH06230843A (en) Hardwre raising system