JPS62290939A - Dynamic replacement system for execution instruction - Google Patents

Dynamic replacement system for execution instruction

Info

Publication number
JPS62290939A
JPS62290939A JP61133631A JP13363186A JPS62290939A JP S62290939 A JPS62290939 A JP S62290939A JP 61133631 A JP61133631 A JP 61133631A JP 13363186 A JP13363186 A JP 13363186A JP S62290939 A JPS62290939 A JP S62290939A
Authority
JP
Japan
Prior art keywords
group
code
source code
source
control
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
JP61133631A
Other languages
Japanese (ja)
Inventor
Toshihiro Matsuo
松尾 俊博
Yoshiaki Kamishina
神品 芳明
Yukio Akase
赤瀬 幸夫
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP61133631A priority Critical patent/JPS62290939A/en
Publication of JPS62290939A publication Critical patent/JPS62290939A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve both reliability and efficiency for test of a subject program by executing a source code after replacing it with an executing instruction and at the same time attaining the change of the source code. CONSTITUTION:A source code control part 1 supplies a source code group or a macro code group and evolves each group to a dynamic area for pointer control. An instruction analysis group 2 analyzes instructions for each source or macro code group based on the pointer information on a source code control part 1 and also evolves each group unit to a dynamic area of an object code group. Then an executing part 4 analyzes the address of the object code group through an object code control part 3 for formation of this part 3 which controls the pointer of object codes. The part 4 executes the instructions for each object group in an imprinter style and shifts the control to a control part 5. The part 5 shifts the control again to the part 1 in case the replacement is needed for the source code group.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔産業上の利用分野〕 本発明は、制御系プログラムの機能を確認する確認用テ
ストプログラムに係り、特に実行中に命令を動的に置換
できるので、制御系プログラムのデバッグ、試験、検査
といった分野で利用できる。
Detailed Description of the Invention] 3. Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a confirmation test program for confirming the functionality of a control system program, and in particular, to a test program that dynamically replaces instructions during execution. Therefore, it can be used in fields such as debugging, testing, and inspection of control system programs.

〔従来の技術〕[Conventional technology]

従来の特開56−94405号は、複雑化する命令群等
のプログラムを、他の命令群とは別人タックに格納する
ことにより、追加変更した場合でも継ぎはぎなく、かつ
分りやすいプログラム構成となっていた。しかしプログ
ラムの実行時に動的に追加修正された点について配慮さ
れていなかった。
The conventional Japanese Patent Application Laid-Open No. 56-94405 stores programs such as increasingly complex instruction groups in a separate tack from other instruction groups, thereby creating a seamless and easy-to-understand program structure even when additional changes are made. was. However, no consideration was given to dynamic additions and modifications during program execution.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、制御系プログラムの確認用テストプロ
グラムの作成における容易性及び実行時の条件設定の変
更等のソース・コード変更点について配慮されておらず
以下の問題があった。
The above-mentioned conventional technology has the following problems because it does not take into consideration the ease of creating a test program for confirming a control system program and changes in source code such as changes in condition settings during execution.

■ 確認用テストプログラム単位にコンパイルが必要で
ある。
■ It is necessary to compile each confirmation test program.

■ 実行時にソース・コート変更ができない。■ Source code cannot be changed at runtime.

■ テスト効率が悪い。■ Poor test efficiency.

本発明の目的はソース・コードおよびマクロ群を外部か
ら与えることにより、コンパイルをせずに実行命令に置
換すると同時にテスト条件の変更を実行時に動的に変更
可能とした。
An object of the present invention is to provide source code and a macro group from the outside so that they can be replaced with executable instructions without compiling, and at the same time test conditions can be dynamically changed during execution.

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

上記目的は、ソース・コード群およびマクロ・コード群
を入力し、オブジェクト・コード置換後群単位に動的エ
リアに確保し群単位に実行させ。
The above purpose is to input a group of source codes and a group of macro codes, secure them in a dynamic area in groups after object code replacement, and execute them in groups.

群単位の実行完了後直換したいソース・コード群あるい
はマクロ・コード群を再入力させ、その群に対応するオ
ブジェクト・コード群に再入力後のオブジェクト・コー
ド群に置換させるサイクルを反復することで達成される
By repeating the cycle of re-inputting the source code group or macro code group that you want to directly convert after the execution of the group unit is completed, and replacing the object code group corresponding to that group with the re-input object code group. achieved.

〔作 用〕[For production]

ソース・コード管理部はソース・コードあるいはマクロ
・コード群を入力しそれぞれの群をポインタ管理するよ
うに動作する。命令解析部はソース・コード管理部から
ソース・コードあるいはマクロ・コードを解析し、オブ
ジェクト・コードに置換すると同時にオブジェクト・コ
ードをポインタ管理するオブジェクト管理部を作成する
ように動作する。実行部はオブジェクト管理部のポイン
タ・アドレスからアドレス解決レインタプリタ形式で実
行するように動作する。制御部はソース・ツー1〜管理
部と命令解析部と実行部を制御すると同時にオブジェク
1〜・コード群の実行を終了した時点で動的に置換した
いソース・コード群あるいはマクロ・コード群を再入力
させるように動作する。
The source code management section operates to input source code or macro code groups and to manage pointers of each group. The instruction analysis section operates to analyze source code or macro code from the source code management section, replace it with object code, and at the same time create an object management section that manages pointers of the object code. The execution unit operates in an address resolution rain interpreter format from the pointer address of the object management unit. The control unit controls the source 2 1~ management unit, instruction analysis unit, and execution unit, and at the same time, when the execution of the object 1~ code group is finished, it replays the source code group or macro code group to be dynamically replaced. It works as if it were input.

〔実施例〕〔Example〕

以下、本発明の実施概要を第1図により説明する。ソー
ス・コードの管理部1はソース・コード群あるいはマク
ロ・コード群を入力しそれぞれの群を動的エリアに展開
し、ポインタ管理するように動作す4゜命令解析群2は
ソース・コード管理部のポインタ情報をもとにソース・
コード群あるいはマクロ・コード群単位に命令解析をす
ると同時にそれぞれの群単位をオブジェクト・コード群
に動的エリアに展開し、このオブジェクト・コードをポ
インタ管理するオブジェクト・コード管理部3を作成す
るように実行部4はオブジェクト・コード管理部からオ
ブジェクト・コード群のアドレスを解析し、それぞれの
オブジェクト群単位にインタプリタ形式で命令を実行し
全オブジェクト群を実行後、制御部に移行するように動
作する。
Hereinafter, an outline of the implementation of the present invention will be explained with reference to FIG. The source code management unit 1 inputs source code groups or macro code groups, expands each group into a dynamic area, and operates to manage pointers. 4° Instruction analysis group 2 is a source code management unit source/source based on the pointer information of
An object code management unit 3 is created which analyzes instructions in units of code groups or macro code groups, simultaneously develops each group into an object code group in a dynamic area, and manages pointers of this object code. The execution unit 4 analyzes addresses of object code groups from the object code management unit, executes instructions for each object group in an interpreter format, and after executing all object groups, transfers to the control unit.

制御部5は以上の処理を制御すると同時にソース・コー
ド群の置換が必要な場合は再度ソース管理部に制御を移
行し該当の命令群を置換するように動作する。以上の処
理を実現することにより実行中に実行命令の動的置換が
行える。
The control section 5 controls the above processing and at the same time operates to transfer the control to the source management section again and replace the relevant instruction group when it is necessary to replace the source code group. By implementing the above processing, dynamic replacement of execution instructions can be performed during execution.

次に、実行命令の動的置換処理の処理手順を第2図のフ
ローチャートに従って動作を説明する。
Next, the processing procedure for dynamic replacement processing of execution instructions will be explained according to the flowchart of FIG.

まず、第3図に示すようなソース・コード群■。First, a source code group ■ as shown in Figure 3.

■、■を読取リソース・コード管理部を作成する(10
1)。次に実行文を入力する(102)とソース・コー
ド群■、■、■の命令解析(104)を行ないソース・
コート群■、■、■に対応するオブジェク1へ・コード
群を動的エリアに確保する(105)。全オブジェク1
〜・コード群の置換が完了すれば(106)オブジェク
ト・コード群単位に実行(107)L全オブジェクト・
コード群■、イ■、■が完了すれば(l O8)第3図
に示すような置換したいソース・コード群■を再入力し
くl O2)変更した群だけソース・コード群、および
オブジェクト・コード群を置換し実行すわば、実行命令
が動的に置換できる。なお終了方法は終了文を読取りし
た次点で終了する(103)。
Read ■ and ■ and create the resource code management section (10
1). Next, when an executable statement is input (102), the instructions of the source code group ■, ■, ■ are analyzed (104), and the source code is
The code group for object 1 corresponding to the code groups ■, ■, ■ is secured in the dynamic area (105). all objects 1
~ When the code group replacement is completed (106) Execute for each object code group (107) L All objects
Once the code groups ■, A, and ■ have been completed, (l O8) Re-enter the source code group ■ that you want to replace as shown in Figure 3. l O2) Only the changed groups are the source code group and object code. By replacing groups and executing them, execution instructions can be dynamically replaced. Note that the ending method ends at the next point after reading the ending sentence (103).

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

以上延べたように、本発明によればテスト対象のプログ
ラムに対する確認用テストプログラムの作成がコンパイ
ルを必要とすることなくかつ実行時に実行命令が動的に
置換できるテスト条件の設定が詳細でかつ簡単にできる
ためテスト対象プログラムのテストの信頼性、効率を向
上させることができる。
As described above, according to the present invention, it is possible to create a confirmation test program for a program to be tested without the need for compilation, and to set test conditions that allow dynamic replacement of execution instructions during execution in a detailed and easy manner. The reliability and efficiency of testing the program under test can be improved.

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

第1図は本発明の動作原理を表わした一実施例の説明図
、第2図は動的置換処理の処理手順図、第3図はソース
・コード群■、■、■のうちソース・コード群■を動的
に置換する場合の入力例の説明図である。 1・・・管理部、2・・・命令解析群、3・・・コード
管理部、5・・・制御部。 〆′ ]\
Fig. 1 is an explanatory diagram of an embodiment showing the operating principle of the present invention, Fig. 2 is a processing procedure diagram of dynamic replacement processing, and Fig. 3 is a diagram of source code among source code groups ■, ■, ■. FIG. 6 is an explanatory diagram of an input example when dynamically replacing the group ■. 1... Management section, 2... Instruction analysis group, 3... Code management section, 5... Control section. 〆′ 】\

Claims (1)

【特許請求の範囲】[Claims] 1、電子計算機プログラムの確認テストプログラムにお
いて、ソース・コード管理部、命令解析部、オブジェク
ト・コード管理部及び実行部で構成し、ソース・コード
を実行命令に置換し実行させると同時に、ソース・コー
ドの変更を可能にすることを特徴とする実行命令の動的
置換方式。
1. Confirmation of computer programs A test program consists of a source code management section, an instruction analysis section, an object code management section, and an execution section, and it replaces source code with execution instructions and executes them. A dynamic replacement method for execution instructions, which is characterized in that it enables modification of execution instructions.
JP61133631A 1986-06-11 1986-06-11 Dynamic replacement system for execution instruction Pending JPS62290939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61133631A JPS62290939A (en) 1986-06-11 1986-06-11 Dynamic replacement system for execution instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61133631A JPS62290939A (en) 1986-06-11 1986-06-11 Dynamic replacement system for execution instruction

Publications (1)

Publication Number Publication Date
JPS62290939A true JPS62290939A (en) 1987-12-17

Family

ID=15109333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61133631A Pending JPS62290939A (en) 1986-06-11 1986-06-11 Dynamic replacement system for execution instruction

Country Status (1)

Country Link
JP (1) JPS62290939A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08123706A (en) * 1994-10-21 1996-05-17 Nec Corp System for developing test program of gui type analog circuit system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08123706A (en) * 1994-10-21 1996-05-17 Nec Corp System for developing test program of gui type analog circuit system

Similar Documents

Publication Publication Date Title
JPH0748182B2 (en) Program error detection method
JP3318051B2 (en) Translation processing method
JPS62290939A (en) Dynamic replacement system for execution instruction
JPH08305583A (en) Method for simulating cpu
JPS62113244A (en) Program test device
JPH05127945A (en) Program execution situation analysis system
JP2718427B2 (en) Data access method in large-scale knowledge base
JPH1115695A (en) Program test pattern automatic generating system
JPH0283749A (en) Internal interruption control system for microprocessor
JP2001256075A (en) Developing system and developing method and recording medium
JPH0272407A (en) Ladder program converter
JPH064348A (en) Program debugging system
JPH01155438A (en) Compiler test system
Lüders et al. Experiences with component-based software development in industrial control
JPS63289654A (en) Program branching instruction monitoring system
JPH02307129A (en) Setting/deleting system for snap id output sentence
JPH0695869A (en) Input and output interface information capturing system for dynamic link library program
JPH02183834A (en) Program developing method using compiler
JPH05241802A (en) Merge system for source module correction information
Creasman et al. Design, implementation, and case study of a function level unit test environment
JPH05224908A (en) Program production system
JPS61206050A (en) Action analyzing system for program
JPH04340628A (en) Fuzzy inference process compile system
JPH04338841A (en) Debugger device
JPH0561687A (en) Processing system for compiler