JPH0240720A - Object program output instruction system - Google Patents

Object program output instruction system

Info

Publication number
JPH0240720A
JPH0240720A JP19034788A JP19034788A JPH0240720A JP H0240720 A JPH0240720 A JP H0240720A JP 19034788 A JP19034788 A JP 19034788A JP 19034788 A JP19034788 A JP 19034788A JP H0240720 A JPH0240720 A JP H0240720A
Authority
JP
Japan
Prior art keywords
program
generation information
source
target
target 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
JP19034788A
Other languages
Japanese (ja)
Inventor
Takahiro Shimizu
孝弘 清水
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 JP19034788A priority Critical patent/JPH0240720A/en
Publication of JPH0240720A publication Critical patent/JPH0240720A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To suppress unnecessary translation by providing an object program output means, comparing generation information on a source program with that on an object program, and outputting only a necessary object program. CONSTITUTION:A source program generation reference means 10 refers to pieces of generation information on source programs 2-4 to be translated and stores them in a generation information storage means 11. Further, an object program presence confirming means 3 confirms whether or not there are object programs 7-9 and when not, that is reported to a translating means 5. Then an object program generation information reference means 14 refers to the programs 7-9 and stores generation information on an object program information storage means 15. Here, the pieces of generation information in the storage means 11 and 15 are compared with each other and an object program output means 16 indicates whether an object program needs to be outputted to the means 5. The means 5 instructs the addition of the generation information on the object program outputted to an object program generation information adding means 12. Consequently, the means 5 outputs only the object programs 7-9 necessary for translation, so unnecessary processing is suppressed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は目的プログラム出力指示方式に関し、特に翻訳
時に原始プログラムの世代情報と目的プログラムの世代
情報とを比較して目的プログラムの出力の有無を決定し
て翻訳手段に指示する目的プログラム出力指示方式に関
する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a target program output instruction method, and in particular, compares generation information of a source program with generation information of a target program at the time of translation to determine whether or not the target program is output. This invention relates to a method for instructing the output of a target program by determining the target program and instructing the translation means.

〔従来の技術〕[Conventional technology]

従来、この種の目的プログラム出力指示方式では、複数
の原始プログラムを翻訳および結合して1つの実行可能
なプログラムを作成するためにジョブストリームを作成
してジョブ制御言語を用いて実行した場合には、翻訳時
にユーザが目的プログラムの出力を中止する指示を行わ
ない限り、全ての原始プログラムの翻訳が行われその目
的プログラムが出力されていた。
Conventionally, in this type of target program output instruction method, when a job stream is created and executed using a job control language in order to create one executable program by translating and combining multiple source programs, , unless the user gave an instruction to stop outputting the target program during translation, all source programs were translated and the target program was output.

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

上述した従来の目的プログラム出力指示方式では、ジョ
ブストリームを作成してジョブ制御言語で実行した場合
には常に全ての原始プローグラムを翻訳して目的プログ
ラムを出力していたので、1つの原始プログラムだけを
修正した場合でもジョブストリームを書き換えずに実行
すると、修正された原始プログラム以外の原始プログラ
ムも翻訳されて目的プログラムが出力されるためにCP
U(中央処理装置)時間の無駄を生ずるという欠点があ
る。
In the conventional target program output instruction method described above, when a job stream is created and executed using a job control language, all source programs are always translated and the target program is output, so only one source program is output. Even if the job stream is modified, if the job stream is executed without being rewritten, source programs other than the modified source program will also be translated and the target program will be output.
It has the disadvantage of wasting U (central processing unit) time.

本発明の目的は、上述の点に鑑み、原始プログラムのい
くつかを修正した場合にジョブストリームを書き換えな
いでも修正された原始プログラムに対応する目的プログ
ラムのみを出力できるようにすることにより、無駄な目
的プログラムの出力を抑制してCPU時間の無駄を省く
ことができる目的プログラム出力指示方式を提供するこ
とにある。
In view of the above-mentioned points, an object of the present invention is to make it possible to output only the target program corresponding to the modified source program without rewriting the job stream when some of the source programs are modified. To provide a target program output instruction method capable of suppressing the output of a target program and saving CPU time.

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

本発明の目的プログラム出力指示方式は、原始プログラ
ムを目的プログラムに翻訳する翻訳手段を有し原始プロ
グラムが世代情報を有する情報処理システムにおいて、
原始プログラムの世代情報を参照する原始プログラム世
代情報参照手段と、この原始プログラム世代情報参照手
段により参照された原始プログラムの世代情報を記憶す
る原始プログラム世代情報記憶手段と、前記翻訳手段が
翻訳しようとしている原始プログラムに対応する目的プ
ログラムがすでに存在しているか否かを確認して存在し
ている場合には前記翻訳手段に目的プログラム世代情報
参照手段の起動を指示し存在していない場合には前記翻
訳手段に目的プログラムの出力を指示する目的プログラ
ム存在in1手段と、この目的プログラム存在確認手段
の指示により起動されて目的プログラムの世代情報を参
照する前記目的プログラム世代情報参照手段と、この目
的プログラム世代情報参照手段により参照された目的プ
ログラムの世代情報を記憶する目的プログラム世代情報
記憶手段と、前記原始プログラム世代情報記憶手段によ
り記憶されている原始プログラムの世代情報と前記目的
プログラム世代情報記憶手段により記憶されている目的
プログラムの世代情報とを比較して目的プログラムの出
力の必要の有無を前記翻訳手段に指示する目的プログラ
ム出力指示手段と、この目的プログラム出力指示手段に
より出力を指示され前記翻訳手段により出力される目的
プログラムに前記原始プログラム世代情報記憶手段によ
り記憶されている原始プログラムの世代情報を目的プロ
グラムの世代情報として付加することを前記翻訳手段に
指示する目的プログラム世代情報付加手段とを有する。
The target program output instruction method of the present invention is provided in an information processing system that includes translation means for translating a source program into a target program and in which the source program has generation information.
source program generation information reference means for referencing generation information of the source program; source program generation information storage means for storing generation information of the source program referenced by the source program generation information reference means; It is checked whether or not the target program corresponding to the source program already exists, and if it exists, it instructs the translation means to start the target program generation information reference means, and if the target program does not exist, the an object program existence in1 means for instructing the translation means to output the object program; an object program generation information reference means that is activated by the instruction of the object program existence confirmation means and refers to the generation information of the object program; and this object program generation. object program generation information storage means for storing generation information of the object program referenced by the information reference means; and generation information of the source program stored by the source program generation information storage means and stored by the object program generation information storage means. objective program output instructing means for instructing the translation means whether or not output of the objective program is necessary by comparing generation information of the objective program that has been output; and target program generation information addition means for instructing the translation means to add generation information of the source program stored by the source program generation information storage means to the output target program as generation information of the target program.

〔作用〕[Effect]

本発明の目的プログラム出力指示方式では、原始プログ
ラム世代情報参照手段が原始プログラムの世代情報を参
照し、原始プログラム世代情報記憶手段が原始プログラ
ム世代情報参照手段により参照された原始プログラムの
世代情報を記憶し、目的プログラム存在確認手段が翻訳
手段が翻訳しようとしている原始プログラムに対応する
目的プログラムがすでに存在しているか否かを確認して
存在している場合には翻訳手段に目的プログラム世代情
報参照手段の起動を指示し存在していない場合には翻訳
手段に目的プログラムの出力を指示し、目的プログラム
世代情報参照手段が目的プログラム存在確認手段の指示
により起動されて目的プログラムの世代情報を参照し、
目的プログラム世代情報記憶手段が目的プログラム世代
情報参照手段により参照された目的プログラムの世代情
報を記憶し、目的プログラム出力指示手段が原始プログ
ラム世代情報記憶手段により記憶されている原始プログ
ラムの世代情報と目的プログラム世代情報記憶手段によ
り記憶されている目的プログラムの世代情報とを比較し
て目的プログラムの出力の必要の有無を翻訳手段に指示
し、目的プログラム世代情報付加手段が目的プログラム
出力指示手段により出力を指示され翻訳手段により出力
される目的プログラムに原始プログラム世代情報記憶手
段により記憶されている原始プログラムの世代情報を目
的プログラムの世代情報として付加することを翻訳手段
に指示する。
In the object program output instruction method of the present invention, the source program generation information reference means refers to the generation information of the source program, and the source program generation information storage means stores the generation information of the source program referenced by the source program generation information reference means. However, the target program existence confirmation means checks whether or not the target program corresponding to the source program that the translation means is trying to translate already exists, and if it exists, the target program generation information reference means is sent to the translation means. and if the target program does not exist, instructs the translation means to output the target program, and the target program generation information reference means is activated by the instruction from the target program existence confirmation means to refer to the generation information of the target program;
The target program generation information storage means stores generation information of the target program referenced by the target program generation information reference means, and the target program output instruction means stores the generation information and purpose of the source program stored by the source program generation information storage means. Comparing the generation information of the target program stored in the program generation information storage means, the translation means is instructed as to whether or not it is necessary to output the target program, and the target program generation information adding means causes the target program output instruction means to output the target program. The translation means is instructed to add the generation information of the source program stored in the source program generation information storage means to the object program outputted by the translation means as the generation information of the object program.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例の目的プログラム出力指示
方式の構成を示すブロック図である0本実施例の目的プ
ログラム出力指示方式は、原始プログラム群1と、翻訳
手段5と、目的プログラム群6と、原始プログラム世代
情報参照手段10と、原始プログラム世代情報記憶手段
11と、目的プログラム世代情報付加手段12と、目的
プログラム存在確認手段13と、目的プログラム世代情
報参照手段14と、目的プログラム世代情報記憶手段1
5と、目的プログラム出力指示手段16とから構成され
ている。
FIG. 1 is a block diagram showing the configuration of a target program output instruction method according to an embodiment of the present invention. group 6, source program generation information reference means 10, source program generation information storage means 11, object program generation information addition means 12, object program existence confirmation means 13, object program generation information reference means 14, and object program. Generation information storage means 1
5, and target program output instruction means 16.

原始プログラム群1は、1つのジョブストリームで翻訳
されるC0BOL、FORTRAN等の言語で記述され
た複数の原始プログラム2,3および4からなる。各原
始プログラム2.3および4は、それぞれ原始プログラ
ムヘッダ21.31および41と原始プログラム本体2
2.32および42とから構成されている。
The source program group 1 consists of a plurality of source programs 2, 3, and 4 written in languages such as COBOL and FORTRAN, which are translated in one job stream. Each source program 2.3 and 4 has a source program header 21.31 and 41 and a source program body 2, respectively.
2.32 and 42.

目的プログラム群6は、原始プログラム群1を翻訳手段
5で翻訳して得られたもので、原始プログラム2,3お
よび4にそれぞれ対応する複数の目的プログラム7.8
および9からなる。各目的プログラム7.8および9は
、それぞれ目的プログラムヘッダ71.81および91
と目的プログラム本体72.82および92とから構成
されている。
The target program group 6 is obtained by translating the source program group 1 by the translation means 5, and includes a plurality of target programs 7.8 corresponding to the source programs 2, 3, and 4, respectively.
and 9. Each object program 7.8 and 9 has an object program header 71.81 and 91, respectively.
and a target program main body 72, 82 and 92.

原始プログラム世代情報参照手段10は、原始プログラ
ム2,3および4の原始プログラムヘッダ21、31お
よび41中の原始プログラム2.3および4の世代情報
を参照する。
The source program generation information reference means 10 refers to the generation information of the source programs 2, 3 and 4 in the source program headers 21, 31 and 41 of the source programs 2, 3 and 4.

原始プログラム世代情報記憶手段11は、原始プログラ
ム世代情報参照手段10により参照された原始プログラ
ム2.3および4の世代情報を記憶する。
The source program generation information storage means 11 stores generation information of the source programs 2.3 and 4 referenced by the source program generation information reference means 10.

目的プログラム世代情報付加手段12は、原始プログラ
ム世代情報記憶手段11に記憶されている原始プログラ
ム2.3および4の世代情報を目的プログラム7.8お
よび9の世代情報として目的プログラム7.8および9
の目的プログラムヘッダ71、81および91にそれぞ
れ付加することを翻訳手段5に指示する。
The target program generation information adding means 12 uses the generation information of the source programs 2.3 and 4 stored in the source program generation information storage means 11 as the generation information of the target programs 7.8 and 9, and adds the target programs 7.8 and 9 to the target programs 7.8 and 9.
The translation means 5 is instructed to add the target program headers 71, 81, and 91, respectively.

目的プログラム存在確認手段13は、翻訳手段5が翻訳
しようとしている原始プログラム2.3および4にそれ
ぞれ対応する目的プログラム7.8および9がすでに存
在しているか否かを確認して、すでに存在していれば目
的プログラム世代情報参照手段14を起動し、存在して
いなければ目的プログラム7.8および9を出力するこ
とを翻訳手段5に指示する。
The target program existence confirmation means 13 checks whether target programs 7.8 and 9 corresponding to the source programs 2.3 and 4, respectively, which the translation means 5 is trying to translate, already exist. If it exists, the target program generation information reference means 14 is activated, and if it does not exist, it instructs the translation means 5 to output target programs 7, 8 and 9.

目的プログラム世代情報参照手段14は、目的プログラ
ム世代情報付加手段12により指示され翻訳手段5によ
り目的プログラム7.8および9の目的プログラムヘッ
ダ71.81および91に付加された目的プログラム7
.8および9の世代情報を参照する。
The target program generation information reference means 14 reads the target program 7 which is instructed by the target program generation information addition means 12 and added to the target program headers 71, 81 and 91 of the target programs 7, 8 and 9 by the translation means 5.
.. Refer to generation information of 8 and 9.

目的プログラム世代情報記憶手段15は、目的プログラ
ム世代情報参照手段14により参照された目的プログラ
ム7.8および9の世代情報を記憶する。
The target program generation information storage means 15 stores generation information of the target programs 7, 8 and 9 referenced by the target program generation information reference means 14.

目的プログラム出力指示手段16は、原始プログラム世
代情報記憶手段11により記憶されている原始プログラ
ム2.3および4の世代情報と目的プログラム世代情報
記憶手段15により記憶されている目的プログラム7.
8および9の世代情報とをそれぞれ比較し、原始プログ
ラム2.3および4の世代情報の方が対応する目的プロ
グラム7.8および9の世代情報よりも新しい場合には
翻訳手段5に目的プログラム7.8および9を出力する
ことを指示し、そうでなければ翻訳手段5に目的プログ
ラム7.8および9を出力しないことを指示する。
The target program output instruction means 16 outputs the generation information of the source programs 2.3 and 4 stored in the source program generation information storage means 11 and the target program 7.3 stored in the target program generation information storage means 15.
If the generation information of the source programs 2.3 and 4 is newer than the generation information of the corresponding target programs 7.8 and 9, the translation means 5 selects the target program 7. If not, it instructs the translation means 5 not to output the target programs 7.8 and 9.

第2図を参照すると、原始プログラム2.3および4は
、それぞれ原始プログラムヘッダ21.31および41
と、原始プログラム本体22.32および42とからな
り、原始プログラムヘッダ21.31および41中には
、それぞれ原始プログラム2.3および4の世代情報を
有している。
Referring to FIG. 2, source programs 2.3 and 4 have source program headers 21.31 and 41, respectively.
and source program bodies 22.32 and 42, and source program headers 21.31 and 41 have generation information of source programs 2.3 and 4, respectively.

第3図を参照すると、目的プログラム7.8および9は
、それぞれ目的プログラムヘッダ71.81および91
と、目的プログラム本体72.82および92とからな
り、目的プログラムヘッダ71.81および91中には
、それぞれ目的プログラム7.8および9の世代情報を
存している。
Referring to FIG. 3, object programs 7.8 and 9 have object program headers 71.81 and 91, respectively.
and target program bodies 72.82 and 92, and generation information of target programs 7.8 and 9 exists in target program headers 71.81 and 91, respectively.

第4図を参照すると、原始プログラム世代情報参照手段
10における処理は、原始プログラム世代情報参照ステ
ップ101からなる。
Referring to FIG. 4, the processing in the source program generation information reference means 10 consists of a source program generation information reference step 101.

第5図を参照すると、原始プログラム世代情報記憶手段
11における処理は、原始プログラム世代情報記憶ステ
ップ111からなる。
Referring to FIG. 5, the processing in the source program generation information storage means 11 consists of a source program generation information storage step 111.

第6図を参照すると、目的プログラム世代情報付加手段
12における処理は、原始プログラム世代情報記憶手段
内原始プログラム世代情報参照ステップ121と、原始
プログラム世代情報付加指示ステップ122とからなる
Referring to FIG. 6, the processing in the target program generation information adding means 12 consists of a step 121 of referring to source program generation information in the source program generation information storage means and a step 122 of instructing addition of source program generation information.

第7図を参照すると、目的プログラム存在確認手段13
における処理は、目的プログラム存在有無判定ステップ
131と、目的プログラム世代情報参照手段起動ステッ
プ132と、目的プログラム出力指示ステップ133と
からなる。
Referring to FIG. 7, the target program existence confirmation means 13
The process includes a target program existence determination step 131, a target program generation information reference means activation step 132, and a target program output instruction step 133.

第8図を参照すると、目的プログラム世代情報参照手段
14における処理は、目的プログラム世代情報参照ステ
ップ141からなる。
Referring to FIG. 8, the processing in the target program generation information reference means 14 consists of a target program generation information reference step 141.

第9図を参照すると、目的プログラム世代情報記憶手段
15における処理は、目的プログラム世代情報記憶ステ
ップからなる。
Referring to FIG. 9, the processing in the target program generation information storage means 15 consists of the step of storing target program generation information.

第10図を参照すると、目的プログラム出力指示手段1
6における処理は、原始プログラム世代情報目的プログ
ラム世代情報比較ステップ161と、目的プログラム出
力指示ステップ162と、目的プログラムネ出力指示ス
テップ163とからなる。
Referring to FIG. 10, the target program output instruction means 1
6 consists of a step 161 for comparing source program generation information and target program generation information, a step 162 for instructing output of the target program, and a step 163 for instructing output of the target program.

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

いま、原始プログラム2.3および4が作成されたとき
にその世代情報が“1”となり、修正されるたびにその
世代情報に“1”が加えられる情報処理システムにおい
て、原始プログラム2.3および4の作成直後にジョブ
ストリームで翻訳手段5により1度翻訳され、原始プロ
グラム2.3および4にそれぞれ対応する目的プログラ
ム7゜8および9が作成済の場合に、例えば原始プログ
ラム4を修正し、再度ジョブストリームで翻訳手段5に
より翻訳する場合を考える。
Now, in an information processing system, when source programs 2.3 and 4 are created, their generation information becomes "1", and each time they are modified, "1" is added to the generation information. Immediately after the creation of source program 4, it is translated once by translation means 5 in the job stream, and if target programs 7.8 and 9 corresponding to source programs 2.3 and 4 have been created, for example, if source program 4 is modified and then Consider the case where translation is performed by the translation means 5 in a job stream.

原始プログラム2.3および4を翻訳する場合、翻訳手
段5は、原始プログラム世代情報参照手段10を起動す
る。
When translating the source programs 2.3 and 4, the translation means 5 activates the source program generation information reference means 10.

起動された原始プログラム世代情報参照手段10は、原
始プログラム2.3および4の原始プログラムヘッダ2
1.31および41内の原始プログラム2゜3および4
の世代情報を参照しくステップ1o1)、原始プログラ
ム世代情報記憶手段11を起動する。
The activated source program generation information reference means 10 reads the source program headers 2 of source programs 2.3 and 4.
1. Source programs 2゜3 and 4 in 31 and 41
In step 1o1), the source program generation information storage means 11 is activated.

原始プログラム世代情報参照手段10から起動された原
始プログラム世代情報記憶手段11は、原始プログラム
2,3および4の世代情報を記憶する(ステップ111
 ) 。
The source program generation information storage means 11 activated by the source program generation information reference means 10 stores generation information of source programs 2, 3, and 4 (step 111).
).

原始プログラム世代情報記憶手段11により原始プログ
ラム2.3および4の世代情報が記憶されると、翻訳手
段5は、次に、目的プログラム存在iI認手段13を起
動する。
When the generation information of the source programs 2, 3 and 4 is stored in the source program generation information storage means 11, the translation means 5 next activates the target program existence II recognition means 13.

起動された目的プログラム存在確認手段13は、翻訳手
段5が翻訳しようとしている原始プログラム2,3およ
び4にそれぞれ対応する目的プログラム7.8および9
がすでに存在しているか否かを確認しくステップ131
 ) 、すでに存在していれば目的プログラム世代情報
参照手段14を起動する(ステップ132 ) 、目的
プログラム7.8および9が存在していなければ、目的
プログラム存在確認手段13は、翻訳手段5に目的プロ
グラム7.8および9の出力を指示する(ステップ13
3)。
The activated target program existence confirmation means 13 checks the target programs 7, 8 and 9 corresponding to the source programs 2, 3 and 4 which the translation means 5 is trying to translate, respectively.
Step 131 to check if already exists.
), if the target program generation information reference means 14 already exists (step 132 ); if the target programs 7.8 and 9 do not exist, the target program existence confirmation means 13 instructs the translation means 5 to refer to the target program generation information; Direct the output of programs 7.8 and 9 (step 13
3).

ここでは、目的プログラム7.8および9がすでに存在
しているので、目的プログラム存在確認手段13は、目
的プログラム世代情報参照手段14を起動することにな
る。
Here, since the target programs 7, 8 and 9 already exist, the target program existence confirmation means 13 activates the target program generation information reference means 14.

目的プログラム存在li1認手6段13により起動され
た目的プログラム世代情報参照手段14は、目的プログ
ラム7.8および9の目的プログラムヘッダ71、81
および91の目的プログラム7.8および9の世代情報
を参照しくステップ141 ”) 、目的プログラム世
代情報記憶手段15を起動する。
The target program generation information reference means 14 activated by the target program existence li1 verification means 6 13 reads the target program headers 71 and 81 of the target programs 7.8 and 9.
In step 141''), the target program generation information storage means 15 is activated.

目的プログラム世代情報参照手段14により起動された
目的プログラム世代情報記憶手段15は、目的プログラ
ム7.8および9の世代情報を記憶する(ステップ15
1 ) 。
The object program generation information storage means 15 activated by the object program generation information reference means 14 stores generation information of object programs 7.8 and 9 (step 15).
1).

目的プログラム世代情報記憶手段15により目的プログ
ラム7.8および9の世代情報が記憶されたならば、翻
訳手段5は、目的プログラム出力指示手段16を起動す
る。
When the generation information of the target programs 7, 8 and 9 is stored in the target program generation information storage means 15, the translation means 5 activates the target program output instruction means 16.

起動された目的プログラム出力指示手段16は、まず、
原始プログラム世代情報記憶手段11により記憶されて
いる原始プログラム2の世代情報と目的プログラム世代
情報記憶手段15により記憶されている目的プログラム
7の世代情報とを比較しくステップ161 ) 、原始
プログラム2の世代情報が目的プログラム7の世代情報
よりも大きければ(原始プログラム2の世代情報が目的
プログラム7の世代情報よりも新しければ)、翻訳手段
5に目的プログラム7の出力を指示する(ステップ16
2)、逆に、原始プログラム2の世代情報が目的プログ
ラム7の世代情報よりも大きくなければ(原始プログラ
ム2の世代情報と目的プログラム7の世代情報とが等し
ければ)、翻訳手段5に目的プログラム7を出力しない
ことを指示する(ステップ163 ) 。
The activated target program output instruction means 16 first
The generation information of the source program 2 stored in the source program generation information storage means 11 is compared with the generation information of the target program 7 stored in the target program generation information storage means 15 (step 161 ), and the generation of the source program 2 is compared. If the information is larger than the generation information of the target program 7 (if the generation information of the source program 2 is newer than the generation information of the target program 7), the translation means 5 is instructed to output the target program 7 (step 16).
2) Conversely, if the generation information of the source program 2 is not larger than the generation information of the target program 7 (if the generation information of the source program 2 and the generation information of the target program 7 are equal), the translation means 5 uses the target program. 7 is not output (step 163).

目的プログラム出力指示手段16は、原始プログラム3
の世代情報と目的プログラム8の世代情報とについて、
また、原始プログラム4の世代情報と目的プログラム9
の世代情報とについて上記と同様の処理を行う。
The target program output instruction means 16 outputs the source program 3.
Regarding the generation information of and the generation information of objective program 8,
Also, generation information of source program 4 and target program 9
The same process as above is performed for the generation information.

ここでは、原始プログラム2および3の世代情報は、目
的プログラム7および8の世代情報に等しいので、目的
プログラム出力指示手段16は、目的プログラム7およ
び8の出力をしないことを翻訳手段5に指示する。一方
、原始プログラム4は1度修正されたために原始プログ
ラム4の世代情報は、目的プログラム9の世代情報より
も“1”大きいので、目的プログラム出力指示手段16
は、目的プログラム9の出力を翻訳手段5に指示する。
Here, since the generation information of the source programs 2 and 3 is equal to the generation information of the target programs 7 and 8, the target program output instruction means 16 instructs the translation means 5 not to output the target programs 7 and 8. . On the other hand, since the source program 4 has been modified once, the generation information of the source program 4 is "1" larger than the generation information of the target program 9, so the target program output instruction means 16
instructs the translation means 5 to output the target program 9.

翻訳手段5は、目的プログラム7および8の出力は行わ
ず、目的プログラム9の出力を行うときに、目的プログ
ラム世代情報付加手段12を起動する。
The translation means 5 does not output the target programs 7 and 8, but activates the target program generation information adding means 12 when outputting the target program 9.

起動された目的プログラム世代情報付加手段12は、原
始プログラム世代情報記憶手段11により記憶されてい
る原始プログラム4の世代情報を参照シ(ステップ12
1 ) 、原始プログラム4の世代情報を目的プログラ
ム9の世代情報として目的プログラム9に付加すること
を翻訳手段5に指示する(ステップ122 )。
The activated target program generation information addition means 12 references the generation information of the source program 4 stored in the source program generation information storage means 11 (step 12).
1) Instructs the translation means 5 to add the generation information of the source program 4 to the target program 9 as the generation information of the target program 9 (step 122).

翻訳手段5は、目的プログラム世代情報付加手段12に
より付加することを指示された原始プログラム4の世代
情報を目的プログラム9の世代情報として目的プログラ
ム9の目的プログラムへラダ91に付加し、目的プログ
ラム9を出力する。
The translation means 5 adds the generation information of the source program 4, which has been instructed to be added by the object program generation information adding means 12, to the ladder 91 as the generation information of the object program 9 to the object program of the object program 9, and Output.

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

以上説明したように本発明は、複数の原始プログラムを
翻訳および結合して1つの実行可能なプログラムを作成
するためにジョブストリームを作成してジョブ制御言語
で実行する場合において、すでに目的プログラムが作成
されている原始プログラムのいくつかを修正して再翻訳
を行うときに原始プログラムの世代情報と目的プログラ
ムの世代情報とを比較して原始プログラムの世代情報の
方が新しければ翻訳手段に目的プログラムを出力するこ
とを指示しそうでなければ翻訳手段に目的プログラムを
出力しないことを指示することにより、ジョブストリー
ムを書き換えなくても修正された原始プログラムに対応
する目的プログラムのみを出力するために無駄な目的プ
ログラムの出力を抑制することができ、CPU時間の無
駄を削減することができるという効果がある。
As explained above, the present invention provides a method for creating a job stream in order to translate and combine multiple source programs to create one executable program and execute the job stream using a job control language. When re-translating some of the source programs that have been modified, the generation information of the source program is compared with the generation information of the target program, and if the generation information of the source program is newer, the target program is added to the translation means. By instructing the translation means not to output the target program otherwise, it is possible to output only the target program corresponding to the modified source program without rewriting the job stream. This has the effect of suppressing the output of the target program and reducing wasted CPU time.

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

第1図は本発明の一実施例の目的プログラム出力指示方
式の構成を示すブロック図、 第2図は第1図中の原始プログラムの構成を示す図、 第3図は第1図中の目的プログラムの構成を示す図、 第4図は第1図中の原始プログラム世代情報参照手段に
おける処理を示す流れ図、 第5図は第1図中の原始プログラム世代情報記憶手段に
おける処理を示す流れ図、 第6図は第1図中の目的プログラム世代情報付加手段に
おける処理を示す流れ図、 第7図は第1図中の目的プログラム存在確認手段におけ
る処理を示す流れ図、 第8図は第1図中の目的プログラム世代情報参照手段に
おける処理を示す流れ図、 第9図は第1図中の目的プログラム世代情報記憶手段に
おける処理を示す流れ図、 第10図は第1図中の目的プログラム出力指示手段にお
ける処理を示す流れ図である。 図において、 1・・・・・原始プログラム群、 2、 3. 4・原始プログラム、 5・・・・・翻訳手段、 6・・・・・目的プログラム群、 7.8.9・目的プログラム、 10・・・・・原始プログラム世代情報参照手段、11
・・・・・原始プログラム世代情報記憶手段、12・・
・・・目的プログラム世代情報付加手段、13・・・・
・目的プログラム存在確認手段、14・・・・・目的プ
ログラム世代情報参照手段、15・・・・・目的プログ
ラム世代情報記憶手段、16・・・・・目的プログラム
出力指示手段、21、31.41・原始プログラムヘッ
ダ、22、32.42・原始プログラム本体、?1.8
1.91・目的プログラムヘッダ、72、82.92・
目的プログラム本体である。 第2図
FIG. 1 is a block diagram showing the configuration of a target program output instruction method according to an embodiment of the present invention, FIG. 2 is a diagram showing the configuration of the source program in FIG. 1, and FIG. 3 is a block diagram showing the configuration of the target program output instruction method in an embodiment of the present invention. 4 is a flowchart showing the processing in the source program generation information reference means in FIG. 1; FIG. 5 is a flowchart showing the processing in the source program generation information storage means in FIG. 1; 6 is a flowchart showing the processing in the target program generation information addition means in FIG. 1, FIG. 7 is a flowchart showing the processing in the target program existence confirmation means in FIG. 9 is a flowchart showing the processing in the target program generation information storage means in FIG. 1; FIG. 10 is a flowchart showing the processing in the target program output instruction means in FIG. 1. This is a flowchart. In the figure, 1... a group of source programs, 2, 3. 4. Source program, 5... Translation means, 6... Target program group, 7.8.9. Target program, 10... Source program generation information reference means, 11
...Source program generation information storage means, 12...
... Objective program generation information addition means, 13...
・Objective program existence confirmation means, 14...Objective program generation information reference means, 15...Objective program generation information storage means, 16...Objective program output instruction means, 21, 31.41 - Source program header, 22, 32.42 - Source program body, ? 1.8
1.91・Object program header, 72, 82.92・
This is the main body of the target program. Figure 2

Claims (1)

【特許請求の範囲】 原始プログラムを目的プログラムに翻訳する翻訳手段を
有し原始プログラムが世代情報を有する情報処理システ
ムにおいて、 原始プログラムの世代情報を参照する原始プログラム世
代情報参照手段と、 この原始プログラム世代情報参照手段により参照された
原始プログラムの世代情報を記憶する原始プログラム世
代情報記憶手段と、 前記翻訳手段が翻訳しようとしている原始プログラムに
対応する目的プログラムがすでに存在しているか否かを
確認して存在している場合には前記翻訳手段に目的プロ
グラム世代情報参照手段の起動を指示し存在していない
場合には前記翻訳手段に目的プログラムの出力を指示す
る目的プログラム存在確認手段と、 この目的プログラム存在確認手段の指示により起動され
て目的プログラムの世代情報を参照する前記目的プログ
ラム世代情報参照手段と、 この目的プログラム世代情報参照手段により参照された
目的プログラムの世代情報を記憶する目的プログラム世
代情報記憶手段と、 前記原始プログラム世代情報記憶手段により記憶されて
いる原始プログラムの世代情報と前記目的プログラム世
代情報記憶手段により記憶されている目的プログラムの
世代情報とを比較して目的プログラムの出力の必要の有
無を前記翻訳手段に指示する目的プログラム出力指示手
段と、 この目的プログラム出力指示手段により出力を指示され
前記翻訳手段により出力される目的プログラムに前記原
始プログラム世代情報記憶手段により記憶されている原
始プログラムの世代情報を目的プログラムの世代情報と
して付加することを前記翻訳手段に指示する目的プログ
ラム世代情報付加手段と を有することを特徴とする目的プログラム出力指示方式
[Scope of Claims] An information processing system including translation means for translating a source program into a target program and in which the source program has generation information, comprising: source program generation information reference means for referencing generation information of the source program; and the source program. A source program generation information storage means for storing generation information of the source program referenced by the generation information reference means, and a target program corresponding to the source program to be translated by the translation means already exist. objective program existence confirmation means that instructs the translation means to activate an object program generation information reference means when the object program exists, and instructs the translation means to output the object program when the object program does not exist; the object program generation information reference means that is activated by the instruction of the program existence confirmation means and refers to the generation information of the object program; and the object program generation information that stores the generation information of the object program referenced by the object program generation information reference means. a storage means, comparing the generation information of the source program stored by the source program generation information storage means and the generation information of the target program stored by the target program generation information storage means to determine the necessity of outputting the target program; a target program output instructing means for instructing the translation means as to the presence or absence of a target program; A target program output instruction method comprising: target program generation information adding means for instructing the translation means to add generation information of the program as generation information of the target program.
JP19034788A 1988-07-29 1988-07-29 Object program output instruction system Pending JPH0240720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19034788A JPH0240720A (en) 1988-07-29 1988-07-29 Object program output instruction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19034788A JPH0240720A (en) 1988-07-29 1988-07-29 Object program output instruction system

Publications (1)

Publication Number Publication Date
JPH0240720A true JPH0240720A (en) 1990-02-09

Family

ID=16256684

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19034788A Pending JPH0240720A (en) 1988-07-29 1988-07-29 Object program output instruction system

Country Status (1)

Country Link
JP (1) JPH0240720A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683634A (en) * 1992-02-17 1994-03-25 Internatl Business Mach Corp <Ibm> Fault detecting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0683634A (en) * 1992-02-17 1994-03-25 Internatl Business Mach Corp <Ibm> Fault detecting method

Similar Documents

Publication Publication Date Title
JPH0240720A (en) Object program output instruction system
JP2000242484A (en) Change method for control program
JPS6378231A (en) Partial program combining system
JPS5922140A (en) Interactive compiling system
JPH1124939A (en) Program conversion method
JPH05113882A (en) Out-fitted man-machine interface realizing system by intermediate file
JPS61216039A (en) System for generating and controlling program
JP2820937B2 (en) Error occurrence line number search device in high-level languages
JPH10207738A (en) Language processing system
JPH0327444A (en) Deletion system for exception check object of substitution sentence
JPH04104345A (en) Write control system for partial rewrite data of main storage device with ecc mechanism
JPH02214933A (en) Reduction system for program capacity
JPH02163831A (en) Object program reduction system
JPS63211432A (en) Automatic generating system for patch
JPH02161548A (en) Program loading system for adaptor
JPS5919287A (en) Input and output processing system by memory access instruction
JPH0337726A (en) Case statement optimizing system
JPS6123235A (en) Control method of spool output data
JPS61109145A (en) Calculation system for memory address
JPH03142628A (en) Preparing device for latest source file
JPS621050A (en) Memory check device
JPH04131931A (en) Control system for real address load instruction
JPH04259085A (en) Memory access control method for data driven processor
JPH0268631A (en) Subprogram generation processing method
JPH02171940A (en) Input/output controlling system