JPH01158532A - Program executing system - Google Patents

Program executing system

Info

Publication number
JPH01158532A
JPH01158532A JP62317735A JP31773587A JPH01158532A JP H01158532 A JPH01158532 A JP H01158532A JP 62317735 A JP62317735 A JP 62317735A JP 31773587 A JP31773587 A JP 31773587A JP H01158532 A JPH01158532 A JP H01158532A
Authority
JP
Japan
Prior art keywords
macro
task control
operating system
task
parameters
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
JP62317735A
Other languages
Japanese (ja)
Inventor
Kenji Imamine
今峰 健司
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 JP62317735A priority Critical patent/JPH01158532A/en
Publication of JPH01158532A publication Critical patent/JPH01158532A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To execute the same program without changing the use part of the task construction and the task control macro of a program even on a different task control system by providing a macro correcting means, a macro parameter analysing converting means, a corresponding macro direct executing means, a corresponding macro simulating means and an initializing means. CONSTITUTION:A task control macro is corrected by a macro correcting means 3 and a task control macro calling, the task control macro presented by a task control mechanism 5 of a present operating system and the conversion to the parameter are tried. When the function is judged to be equal or included at the process of the conversion, a corresponding macro direct executing means 6 to return the executing result to a macro parameter analyzing converting means 4, a corresponding macro simulating means 7 to simulate with a task control macro when it is decided that the corresponding is not obtained and an initializing means 8 of tables used by the means 7 are provided. Thus, without the change of the task construction of the program and the change of the use part of the task control macro, the execution can be executed by an operating system to obtain another task control system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム実行方式に関し、特に電子計算機シ
ステムにおいてタスク制御方式の異なるマルチプログラ
ミング環境をサポートするオペレーティングシステム間
で同一の機能を存するプログラム(特にオペレーティン
グシステムの一部をなす制御系のプログラム)を実行さ
せるプログラム実行方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a program execution method, and in particular, to a computer system in which a program having the same function between operating systems supporting multiprogramming environments with different task control methods (particularly This invention relates to a program execution method for executing a control system program that is part of an operating system.

〔従来の技術〕 従来、タスク制御方式の異なるオペレーティングシステ
ム間でオペレーティングシステムの一部をなすような制
御系のプログラムを実行させる場合には、機能的には同
等でも各オペレーティングシステムのタスク制御方式と
の整合性をとるためにプログラムのタスク構造の変更や
タスク制御マクロの使用部分の変更を個別に実施し、オ
ペレーティングシステムのタスク制御マクロを直接呼び
出してプログラムを実行させていた。
[Prior Art] Conventionally, when a control system program that is part of an operating system is executed between operating systems with different task control methods, the task control method of each operating system is In order to maintain consistency, the program's task structure and the parts that use the task control macro were individually modified, and the program was executed by directly calling the operating system's task control macro.

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

上述した従来のプログラム実行方式では、オペレーティ
ングシステムのタスク制御方式に合わせてプログラムの
タスク構造の変更やタスク制御マクロの使用部分の変更
が必要であったので、複数のプログラムを異なるタスク
制御方式をもつオペレーティングシステムで実行させる
場合に、プログラム毎にタスク構造の見直しやタスク制
御マクロの使用部分の変更が必要となり、特にタスク構
造の変更はプログラム全体にわたる修正が必要になって
大きな作業量になるという欠点がある。
In the conventional program execution method described above, it was necessary to change the task structure of the program and the part where task control macros are used to match the task control method of the operating system. When running on an operating system, it is necessary to review the task structure and change the part where task control macros are used for each program, and changing the task structure in particular requires modification of the entire program, resulting in a large amount of work. There is.

また、これらの変更作業には、複数のオペレーティング
システムのタスク制御方式についての専門的知識が必要
とされるという欠点がある。
Another drawback of these modification operations is that they require specialized knowledge of the task control methods of multiple operating systems.

本発明の目的は、上述の点に鑑み、あるタスク制御方式
をとるオペレーティングシステムのもとで実行すること
を前提として作成されたプログラムを別のタスク制御方
式をとるオペレーティングシステムでプログラムのタス
ク構造の変更やタスク制御マクロの使用部分の変更を行
うことなしに実行させることができるプログラム実行方
式を提供することにある。
In view of the above-mentioned points, it is an object of the present invention to change the task structure of a program created on the assumption that it will be executed under an operating system that uses a certain task control method to an operating system that uses a different task control method. It is an object of the present invention to provide a program execution method that allows execution of a program without making any changes or changing the parts used in task control macros.

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

本発明のプログラム実行方式は、当初オペレーティング
システムのタスク制御方式のもとで実行されることを前
提に作成されプログラムを別のタスク制御方式をもつ現
オペレーティングシステム上で実行させるプログラム実
行方式において、前記プログラム中で使用されている当
初オペレーティングシステムのタスク制御機構により提
供されているタスク制御マクロをあらかじめマクロ・パ
ラメータ解析・変換手段を呼び出すように修正するマク
ロ修正手段と、このマクロ修正手段により修正されたタ
スク制御マクロから呼び出されこのタスク制御マクロお
よびパラメータを解析して現オペレーティングシステム
のタスク制御機構により提供されているタスク制御マク
ロおよびパラメータへの変換を試みる前記マクロ・パラ
メータ解析・変換手段と、このマクロ・パラメータ解析
・変換手段によるタスク制御マクロおよびパラメータの
変換の過程でタスク制御マクロおよびパラメータの機能
が現オペレーティングシステムのタスク制御機構により
提供されているタスク制御マクロおよびパラメータの機
能と同等かまたは包含されると判断された場合に前記マ
クロ・パラメータ解析・変換手段から呼び出され現オペ
レーティングシステムのタスク制御機構により提供され
ている対応するタスク制御マクロを直接実行し実行結果
を前記マクロ・パラメータ解析・変換手段に返却する対
応マクロ直接実行手段と、前記マクロ・パラメータ解析
・変換手段におけるタスク制御マクロおよびパラメータ
の変換の過程でタスク制御マクロおよびパラメータの機
能が現オペレーティングシステムのタスク制御機構によ
り提供されているタスク制御マクロおよびパラメータの
機能と対応がとれないと判定された場合に前記マクロ・
パラメータ解析・変換手段から呼び出され現オペレーテ
ィングシステムのタスク制御機構により提供されている
タスク制御マクロを利用して当初オペレーティングシス
テムのタスク制御機構により提供されているタスク制御
マクロのシミュレートを行う対応マクロシミュレート手
段と、前記マクロ・パラメータ解析・変換手段、前記対
応マクロ直接実行手段および前記対応マクロシミュレー
ト手段により使用される各種テーブル類の初期化等を行
う初期化手段とを有する。
The program execution method of the present invention is a program execution method that is originally created on the assumption that the program will be executed under the task control method of an operating system, and is executed on a current operating system having a different task control method. Macro modification means for modifying the task control macro originally provided by the task control mechanism of the operating system used in the program so as to call the macro parameter analysis/conversion means in advance; the macro/parameter analysis/conversion means that is called from the task control macro and attempts to analyze the task control macro and parameters and convert them into the task control macro and parameters provided by the task control mechanism of the current operating system; - In the process of converting task control macros and parameters by the parameter analysis/conversion means, it is determined that the functions of the task control macros and parameters are equivalent to or included in the functions of the task control macros and parameters provided by the task control mechanism of the current operating system. If it is determined that the above-mentioned macro/parameter analysis/conversion means calls, the corresponding task control macro provided by the task control mechanism of the current operating system is directly executed, and the execution result is sent to the macro/parameter analysis/conversion means. The function of the task control macro and parameters is provided by the task control mechanism of the current operating system in the process of converting the task control macro and parameters in the macro/parameter analysis/conversion means. If it is determined that the functions of the control macro and parameters do not correspond, the macro/parameter is
A corresponding macro simulation that simulates the task control macro initially provided by the task control mechanism of the operating system by using the task control macro called from the parameter analysis/conversion means and provided by the task control mechanism of the current operating system. and initialization means for initializing various tables used by the macro parameter analysis/conversion means, the corresponding macro direct execution means, and the corresponding macro simulating means.

〔作用〕[Effect]

本発明のプログラム実行方式では、マクロ修正手段がプ
ログラム中で使用されている当初オペレーティングシス
テムのタスク制御機構により提供されているタスク制御
マクロをあらかじめマクロ・パラメータ解析・変換手段
を呼び出すように修正し、マクロ・パラメータ解析・変
換手段がマクロ修正手段により修正されたタスク制御マ
クロから呼び出されこのタスク制御マクロおよびパラメ
ータを解析して現オペレーティングシステムのタスク制
御機構により提供されているタスク制御マクロおよびパ
ラメータへの変換を試み、対応マクロ直接実行手段がマ
クロ・パラメータ解析・変換手段によるタスク制御マク
ロおよびパラメータの変換の過程でタスク制御マクロお
よびパラメータの機能が現オペレーティングシステムの
タスク制御機構により提供されているタスク制御マクロ
およびパラメータの機能と同等かまたは包含されると判
断された場合にマクロ・パラメータ解析・変換手段から
呼び出され現オペレーティングシステムのタスク制御機
構により提供されている対応するタスク制御マクロを直
接実行し実行結果をマクロ・パラメータ解析・変換手段
に返却し、対応マクロシミュレート手段がマクロ・パラ
メータ解析・変換手段におけるタスク制御マクロおよび
パラメータの変換の過程でタスク制御マクロおよびパラ
メータの機能が現オペレーティングシステムのタスク制
御機構により提供されているタスク制御マクロおよびパ
ラメータの機能と対応がとれないと判定された場合にマ
クロ・パラメータ解析・変換手段から呼び出され現オペ
レーティングシステムのタスク制御機構により提供され
ているタスク制御マクロを利用して当初オペレーティン
グシステムのタスク制J’1rJN構により提供されて
いるタスク制御マクロのシミュレートを行い、初期化手
段がマクロ・パラメータ解析・変換手段、対応マクロ直
接実行手段および対応マクロシミュレート手段により使
用される各種テーブル類の初期化等を行う。
In the program execution method of the present invention, the macro modification means modifies the task control macro provided by the task control mechanism of the original operating system used in the program so as to call the macro parameter analysis and conversion means, The macro/parameter analysis/conversion means is called from the task control macro modified by the macro modification means, analyzes the task control macro and parameters, and converts them into the task control macro and parameters provided by the task control mechanism of the current operating system. During the process of conversion of task control macros and parameters by means of macro/parameter analysis/conversion means, the task control functions of the task control macros and parameters are provided by the task control mechanism of the current operating system. Directly executes the corresponding task control macro that is called from the macro/parameter analysis/conversion means and provided by the task control mechanism of the current operating system when it is determined that the functions of the macro and parameters are equivalent to or included. The results are returned to the macro/parameter analysis/conversion means, and the corresponding macro simulation means converts the functions of the task control macros and parameters into tasks of the current operating system in the process of converting the task control macros and parameters in the macro/parameter analysis/conversion means. A task control macro provided by the task control mechanism of the current operating system that is called from the macro/parameter analysis/conversion means when it is determined that the functions of the task control macro and parameters provided by the control mechanism do not correspond. The task control macro originally provided by the task system J'1rJN structure of the operating system is simulated using Initializes various tables used by the means.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例のプログラム実行方式の構
成を示すブロック図である。本実施例のプログラム実行
方式は、プログラム1と、現オペレーティングシステム
のタスク制御機構5とから、その主要部が構成されてい
る。
FIG. 1 is a block diagram showing the configuration of a program execution method according to an embodiment of the present invention. The main parts of the program execution method of this embodiment include a program 1 and a task control mechanism 5 of the current operating system.

プログラムlは、複数のタスク2と、プログラム1中で
タスク2で使用されている当初オペレーティングシステ
ムのタスク制御機構により提供されているタスク制御マ
クロをあらかじめマクロ・パラメータ解析・変換手段4
を呼び出すように修正するマクロ修正手段3と、マクロ
修正手段3により修正されたタスク制御マクロから呼び
出され −当初オペレーティングシステムのタスク制?
ffU JIA横により提供されているタスク制御マク
ロおよびパラメータを解析して現オペレーティングシス
テムのタスク制御機構5により提供されているタスク制
御マクロへの変換を試みるマクロ・パラメータ解析・変
換手段4と、マクロ・パラメータ解析・変換手段4によ
るタスク制御マクロおよびパラメータの変換の過程でタ
スク制御マクロおよびパラメータの機能が現オペレーテ
ィングシステムのタスク制御機構5により提供されてい
るタスク制御マクロおよびパラメータの機能と同等かま
たは包含されると判断された場合にマクロ・パラメータ
解析・変換手段4から呼び出され現オペレーティングシ
ステムのタスク制御機構5により提供されている対応す
るタスク制御マクロを直接実行し実行結果を示すリター
ンコードをマクロ・パラメータ解析・変換手段4に返却
する対応マクロ直接実行手段6と、マクロ・パラメータ
解析・変換手段4におけるタスク制御マクロおよびパラ
メータの変換の過程でタスク制御マクロおよびパラメー
タの機能が現オペレーティングシステムのタスク制御機
構5により提供されているタスク制御マクロおよびパラ
メータの機能と対応がとれないと判定された場合にマク
ロ・パラメータ解析・変換手段4から呼び出され現オペ
レーティングシステムのタスク制御機構5により提供さ
れているタスク制御マクロを利用して当初オペレーティ
ングシステムのタスク制御機構により提供されているタ
スク制御マクロのシミュレートを行う対応マクロシミュ
レート手段7と、マクロ・パラメータ解析・変換手段4
.対応マクロ直接実行手段6および対応マクロシミュレ
ート手段7により使用される各種テーブルM(図示せず
)の初期化を行う初期化手段8とを含んで構成されてい
る。
The program 1 includes a plurality of tasks 2 and a macro parameter analysis/conversion means 4 in advance of the task control macros provided by the task control mechanism of the original operating system used by the tasks 2 in the program 1.
Called from the task control macro modified by the macro modification means 3 and the task control macro of the original operating system?
macro/parameter analysis/conversion means 4 that analyzes task control macros and parameters provided by ffU JIA Yokota and attempts to convert them into task control macros provided by the task control mechanism 5 of the current operating system; In the process of converting the task control macros and parameters by the parameter analysis/conversion means 4, it is determined that the functions of the task control macros and parameters are equivalent to or include the functions of the task control macros and parameters provided by the task control mechanism 5 of the current operating system. If it is determined that the macro/parameter analysis/conversion means 4 will execute the corresponding task control macro provided by the task control mechanism 5 of the current operating system, the macro/parameter analysis/conversion unit 4 directly executes the corresponding task control macro provided by the task control mechanism 5 of the current operating system and sends a return code indicating the execution result to the macro/parameter analysis/conversion means 4. The corresponding macro direct execution means 6 returns to the parameter analysis/conversion means 4, and in the process of converting the task control macros and parameters in the macro/parameter analysis/conversion means 4, the functions of the task control macros and parameters are updated to the task control of the current operating system. A task provided by the task control mechanism 5 of the current operating system that is called by the macro/parameter analysis/conversion means 4 when it is determined that the functions of the task control macro and parameters provided by the mechanism 5 do not correspond. Corresponding macro simulating means 7 for simulating task control macros originally provided by the task control mechanism of the operating system using control macros, and macro parameter analysis/conversion means 4
.. It is configured to include an initialization means 8 for initializing various tables M (not shown) used by the corresponding macro direct execution means 6 and the corresponding macro simulation means 7.

次に、このように構成された本実施例のプログラム実行
方式の動作について説明する。
Next, the operation of the program execution method of this embodiment configured as described above will be explained.

プログラム1の実行が指示されると、まずマクロ修正手
段3が起動される。
When execution of the program 1 is instructed, the macro modification means 3 is first activated.

マクロ修正手段3は、プログラム1の実行開始に先立っ
て、プログラム1中のタスク2で使用されている当初オ
ペレーティングシステムのタスク制御機構により提供さ
れているタスク制御マクロの全てをマクロ・パラメータ
解析・変換手段4を呼び出すように修正する。
Prior to the start of execution of the program 1, the macro modification means 3 analyzes and converts all the task control macros provided by the task control mechanism of the original operating system used in the task 2 in the program 1. Modify to call means 4.

また、マクロ修正手段3の起動と同時に、初期化手段8
も起動される。
Further, at the same time as the macro modification means 3 is activated, the initialization means 8
is also started.

初期化手段8は、プログラム1の実行開始に先立って、
マクロ・パラメータ解析・変換手段4゜対応マクロ直接
実行手段6および対応マクロシミュレート手段7により
使用される各種テーブル類を初期化し、しかる後にプロ
グラム1の本来のエントリに制御を渡してプログラム1
の実行を開始させる。
Prior to starting execution of the program 1, the initialization means 8 performs the following steps.
The macro/parameter analysis/conversion means 4 initializes various tables used by the corresponding macro direct execution means 6 and the corresponding macro simulation means 7, and then passes control to the original entry of the program 1 to execute the program 1.
starts execution.

プログラム1の実行が開始されてタスク2中に含まれる
マクロ修正手段3により修正されたタスク制御マクロが
実行されると、マクロ・パラメータ解析・変換手段4は
、マクロ修正手段3により修正されたタスク制御マクロ
から各タスク制御マクロ対応に呼び出され、当初オペレ
ーティングシステムのタスク制御機構により提供されて
いるタスク制御マクロおよびパラメータを解析して、現
オペレーティングシステムのタスク制御機構5により提
供されているタスク制御マクロおよびパラメータとの一
対一の対応づけを試みる。ここで、機能レベルで一対一
の対応づけが可能なタスク制御マクロおよびパラメータ
であった場合には、マクロ・パラメータ解析・変換手段
4は、対応マクロ直接実行手段6を呼び出す。
When execution of the program 1 is started and the task control macro modified by the macro modification means 3 included in the task 2 is executed, the macro parameter analysis/conversion means 4 executes the task control macro modified by the macro modification means 3. The task control macros and parameters initially provided by the task control mechanism of the operating system are called from the control macros corresponding to each task control macro, and the task control macros and parameters initially provided by the task control mechanism of the operating system are analyzed to determine the task control macros provided by the task control mechanism 5 of the current operating system. and attempt a one-to-one correspondence with parameters. Here, if the task control macro and parameter can be associated one-to-one at the functional level, the macro/parameter analysis/conversion means 4 calls the corresponding macro direct execution means 6.

マクロ・パラメータ解析・変換手段4から呼び出された
対応マクロ直接実行手段6は、指定されたタスク制御マ
クロの実行を現オペレーティングシステムのタスク制御
機構5に対して依頼してそのまま実行させ、現オペレー
ティングシステムのタスク制御機構5からのリターンコ
ードがあれば、このリターンコードを実行結果としてマ
クロ・パラメータ解析・変換手段4に返却する。
The corresponding macro direct execution means 6 called by the macro/parameter analysis/conversion means 4 requests the task control mechanism 5 of the current operating system to execute the specified task control macro, causes it to be executed as is, and executes the specified task control macro. If there is a return code from the task control mechanism 5, this return code is returned to the macro/parameter analysis/conversion means 4 as an execution result.

対応マクロ直接実行手段6からリターンコードを返却さ
れたマクロ・パラメータ解析・変換手段4は、返却され
たリターンコードを当初オペレーティングシステムのタ
スク制御機構により提供されているタスク制御マクロの
リターンコードに変換し、制御をタスク制御マクロの発
行元であるタスク2に戻す。
The macro/parameter analysis/conversion unit 4 that receives the return code from the corresponding macro direct execution unit 6 converts the returned return code into the return code of the task control macro originally provided by the task control mechanism of the operating system. , returns control to task 2, which is the issuer of the task control macro.

一方、マクロ・パラメータ解析・変換手段4でタスク制
御マクロおよびパラメータと現オペレーティングシステ
ムのタスク制御機構5により提供されているタスク制御
マクロおよびパラメータとの対応がとれないと判断され
た場合には、マクロ・パラメータ解析・変換手段4は対
応マクロシミュレート手段7を呼び出す。
On the other hand, if the macro/parameter analysis/conversion means 4 determines that there is no correspondence between the task control macro and parameters and the task control macro and parameters provided by the task control mechanism 5 of the current operating system, the macro - The parameter analysis/conversion means 4 calls the corresponding macro simulation means 7.

マクロ・パラメータ解析・変換手段4から呼び出された
対応マクロシミュレート手段7は、現オペレーティング
システムのタスク制御機構5により提供されているタス
ク制御マクロを利用して、当初オペレーティングシステ
ムのタスク制御機構により提供されているタスク制御マ
クロのシミュレートを行う。シミュレートの結果、現オ
ペレーティングシステムのタスク制御機構5からのリタ
ーンコードがあれば、このリターンコードを実行結果と
してマクロ・パラメータ解析・変換手段4に返却する。
The corresponding macro simulating means 7 called by the macro parameter analysis/conversion means 4 uses the task control macro provided by the task control mechanism 5 of the current operating system, and uses the task control macro provided by the task control mechanism of the current operating system. Simulates the task control macro being used. As a result of the simulation, if there is a return code from the task control mechanism 5 of the current operating system, this return code is returned to the macro parameter analysis/conversion means 4 as an execution result.

対応マクロシミュレート手段7からリターンコードを返
却されたマクロ・パラメータ解析・変換手段4は、返却
されたリターンコードを当初オペレーティングシステム
のタスク制御機構により提供されているタスク制御マク
ロのリターンコードに変換し、制御をタスク制御マクロ
の発行元であるタスク2に戻す。
The macro/parameter analysis/conversion unit 4 that receives the return code from the corresponding macro simulator 7 converts the returned return code into the return code of the task control macro originally provided by the task control mechanism of the operating system. , returns control to task 2, which is the issuer of the task control macro.

なお、上記実施例では、マクロ修正手段3をプログラム
1中に組み込んで、プログラム1がオブジェクトプログ
ラムの段階でプログラム1の実行開始直前にタスク2中
のタスク制御マクロの修正を行わせるようにしたが、マ
クロ修正手段3をコンパイラに組み込んで、コンパイラ
がもつマクロファイルのサーチルールを利用して有効に
したいタスク制御マクロが格納されているマクロファイ
ルのサーチを最優先としてプログラム1を再コンパイル
することにより、タスク制御マクロの修正を行うように
してもよい。
In the above embodiment, the macro modification means 3 is incorporated into the program 1 so that the task control macro in the task 2 is modified immediately before the start of execution of the program 1 when the program 1 is an object program. , by incorporating macro modification means 3 into the compiler and recompiling program 1 using the compiler's macro file search rules to give top priority to searching for the macro file that stores the task control macro that you want to enable. , the task control macro may be modified.

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

以上説明したように本発明は、マクロ修正手段。 As explained above, the present invention is a macro correction means.

マクロ・パラメータ解析・変換手段、対応マクロ直接実
行手段、対応マクロシミュレート手段および初期化手段
を設けたことにより、異なるタスク制御方式をもつオペ
レーティングシステム上でもプログラムのタスク構造の
変更やタスク制御マクロの使用部分の変更を行うことな
しに、同一のプログラムを実行させることが可能になる
という効果がある。
By providing a macro/parameter analysis/conversion means, a corresponding macro direct execution means, a corresponding macro simulation means, and an initialization means, it is possible to change the task structure of a program and change task control macros even on operating systems with different task control methods. This has the effect that the same program can be executed without changing the parts used.

特に、プログラムのタスク構造の変更が不要になるので
、プログラム修正のための作業量が大幅に削減されると
いう効果がある。
In particular, since there is no need to change the task structure of the program, the amount of work required to modify the program can be significantly reduced.

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

第1図は本発明の一実施例のプログラム実行方式の構成
を示すブロック図である。  、図において、 1・・・プログラム、 2・・・タスク、 3・・・マクロ修正手段、 4・・・マクロ・パラメータ解析・変換手段、5・・・
現オペレーティングシステムのタスク制御機構、 6・・・対応マクロ直接実行手段、 7・・・対応マクロシミュレート手段、8・・・初期化
手段である。
FIG. 1 is a block diagram showing the configuration of a program execution method according to an embodiment of the present invention. In the figure, 1...Program, 2...Task, 3...Macro modification means, 4...Macro parameter analysis/conversion means, 5...
6. Corresponding macro direct execution means; 7. Corresponding macro simulating means; 8. Initialization means.

Claims (1)

【特許請求の範囲】  当初オペレーティングシステムのタスク制御方式のも
とで実行されることを前提に作成されプログラムを別の
タスク制御方式をもつ現オペレーティングシステム上で
実行させるプログラム実行方式において、 前記プログラム中で使用されている当初オペレーティン
グシステムのタスク制御機構により提供されているタス
ク制御マクロをあらかじめマクロ・パラメータ解析・変
換手段を呼び出すように修正するマクロ修正手段と、 このマクロ修正手段により修正されたタスク制御マクロ
から呼び出されこのタスク制御マクロおよびパラメータ
を解析して現オペレーティングシステムのタスク制御機
構により提供されているタスク制御マクロおよびパラメ
ータへの変換を試みる前記マクロ・パラメータ解析・変
換手段と、このマクロ・パラメータ解析・変換手段によ
るタスク制御マクロおよびパラメータの変換の過程でタ
スク制御マクロおよびパラメータの機能が現オペレーテ
ィングシステムのタスク制御機構により提供されている
タスク制御マクロおよびパラメータの機能と同等かまた
は包含されると判断された場合に前記マクロ・パラメー
タ解析・変換手段から呼び出され現オペレーティングシ
ステムのタスク制御機構により提供されている対応する
タスク制御マクロを直接実行し実行結果を前記マクロ・
パラメータ解析・変換手段に返却する対応マクロ直接実
行手段と、 前記マクロ・パラメータ解析・変換手段におけるタスク
制御マクロおよびパラメータの変換の過程でタスク制御
マクロおよびパラメータの機能が現オペレーティングシ
ステムのタスク制御機構により提供されているタスク制
御マクロおよびパラメータの機能と対応がとれないと判
定された場合に前記マクロ・パラメータ解析・変換手段
から呼び出され現オペレーティングシステムのタスク制
御機構により提供されているタスク制御マクロを利用し
て当初オペレーティングシステムのタスク制御機構によ
り提供されているタスク制御マクロのシミュレートを行
う対応マクロシミュレート手段と、 前記マクロ・パラメータ解析・変換手段、前記対応マク
ロ直接実行手段および前記対応マクロシミュレート手段
により使用される各種テーブル類の初期化等を行う初期
化手段と、 を有することを特徴とするプログラム実行方式。
[Scope of Claims] A program execution method in which a program originally created with the assumption that it will be executed under the task control method of an operating system is executed on a current operating system having a different task control method, comprising: a macro modification means for modifying a task control macro provided by the task control mechanism of the original operating system used in the operating system so as to call the macro parameter analysis/conversion means in advance; and a task control modified by the macro modification means. the macro/parameter analysis/conversion means that parses the task control macro and parameters that are called from the macro and attempts to convert them into the task control macro and parameters provided by the task control mechanism of the current operating system; In the process of converting task control macros and parameters by the analysis/conversion means, the functions of the task control macros and parameters are equivalent to or included in the functions of the task control macros and parameters provided by the task control mechanism of the current operating system. If it is determined, the corresponding task control macro that is called from the macro parameter analysis/conversion means and provided by the task control mechanism of the current operating system is directly executed, and the execution result is sent to the macro/parameter analysis/conversion means.
a corresponding macro direct execution means that is returned to the parameter analysis/conversion means; and a function of the task control macros and parameters is executed by the task control mechanism of the current operating system in the process of converting the task control macros and parameters in the macro/parameter analysis/conversion means. When it is determined that the functions of the provided task control macro and parameters do not correspond, the task control macro that is called from the macro/parameter analysis/conversion means and provided by the task control mechanism of the current operating system is used. a corresponding macro simulator for simulating a task control macro initially provided by the task control mechanism of the operating system; the macro parameter analysis/conversion means; the corresponding macro direct execution means; and the corresponding macro simulator. A program execution method comprising: initialization means for initializing various tables used by the means.
JP62317735A 1987-12-15 1987-12-15 Program executing system Pending JPH01158532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62317735A JPH01158532A (en) 1987-12-15 1987-12-15 Program executing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62317735A JPH01158532A (en) 1987-12-15 1987-12-15 Program executing system

Publications (1)

Publication Number Publication Date
JPH01158532A true JPH01158532A (en) 1989-06-21

Family

ID=18091456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62317735A Pending JPH01158532A (en) 1987-12-15 1987-12-15 Program executing system

Country Status (1)

Country Link
JP (1) JPH01158532A (en)

Similar Documents

Publication Publication Date Title
US7080360B2 (en) Breakpoint safety net
JPH01158532A (en) Program executing system
JP2861962B2 (en) Computer program simulation apparatus and method
JPH0667871A (en) Automatic program updating system
JPH01240934A (en) Automatic re-compiling method
JP2554169B2 (en) Relative Rank Analysis Method for Data Driven Processor
JPS63106047A (en) Dynamic subroutine call system
JPH05127945A (en) Program execution situation analysis system
JPH0250730A (en) Language converting system based upon common machine word
JPH06195249A (en) Name designation method
JPH0283634A (en) Program debugging system
JPH0588878A (en) Lisp instruction executing system
JPH04117573A (en) Analytic simulation system
JPS62159235A (en) List processing system
JPH02253443A (en) Program generating method
JPS62216050A (en) Measurement processing system for executing cpu time for program unit
JPH04165539A (en) Simulating system
JPH03233703A (en) Sequence controller
JPH06236261A (en) Separating system for procedure language program component
JPH0675757A (en) Link system for virtual space resident program
JPH0285932A (en) Simulation system for execution of program
JPH05298149A (en) Program debugging processing system
JPS62235641A (en) Control system for executing program
JPH02247728A (en) Program execution system
JPH01259435A (en) Inserting method for maintenance program

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20040609

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Effective date: 20051222

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20060926

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070227