JPH0436832A - Program correction system - Google Patents
Program correction systemInfo
- Publication number
- JPH0436832A JPH0436832A JP2142640A JP14264090A JPH0436832A JP H0436832 A JPH0436832 A JP H0436832A JP 2142640 A JP2142640 A JP 2142640A JP 14264090 A JP14264090 A JP 14264090A JP H0436832 A JPH0436832 A JP H0436832A
- Authority
- JP
- Japan
- Prior art keywords
- correction
- source program
- program
- modified
- modification
- 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
Links
- 230000004048 modification Effects 0.000 claims description 41
- 238000012986 modification Methods 0.000 claims description 36
- 238000012937 correction Methods 0.000 abstract description 10
- 238000000034 method Methods 0.000 description 9
- 238000006073 displacement reaction Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 230000001151 other effect Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は電子計算機システムにおけるプログラム修正方
式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program modification method in an electronic computer system.
電子計算機システムで実行可能なオブジェクトプログラ
ムを修正する手法の一つとしてパ、ッチを用いるものが
ある。これは、オブジェクトプログラムの全体を入れ換
えるのではなく、バッチと呼ばれるオブジェクトプログ
ラムの断片を記憶領域に書き込み、プログラムの修正や
追加を行うものであり、プログラムの運用を停止したく
ない場合や修正部分が微少である場合等に有効である。One of the methods for modifying object programs executable on computer systems is to use patches. This method does not replace the entire object program, but rather writes fragments of the object program called batches to the storage area to modify or add to the program. This method is used when you do not want to stop program operation or when the modified part is This is effective when the amount is minute.
ところで、従来、このようなバッチを作成するには、次
のような工程を要していた。By the way, conventionally, creating such a batch required the following steps.
(1)修正・追加すべき処理の手順を求め、その処理手
順をアセンブラレベルで記述する。この際、バッチ内で
使用するレジスタの値を保証することも考慮する。(1) Find the processing procedure to be corrected or added, and describe the processing procedure at the assembler level. At this time, consideration should be given to guaranteeing the values of registers used within the batch.
(2)作成された処理手順の各命令の中に出てくる名標
をアドレス形式で表現する。(2) Express the names that appear in each instruction of the created processing procedure in address format.
(3)分岐命令の飛び先の指定は、その箇所からの変位
で表現する。(3) The destination of a branch instruction is specified as a displacement from that point.
(4)命令のコード化を行い、バッチを完成させる。(4) Encode the instructions and complete the batch.
(発明が解決しようとする課題〕
従来は上述したようにしてバッチを作成していたため、
次のような欠点があった。(Problem to be solved by the invention) Conventionally, batches were created as described above;
It had the following drawbacks.
■名標のアドレス形式での表現、飛び先の変位での表現
、命令のコード化等を全て人手で行うため、誤りが発生
しやすく、参照領域の誤り2分岐先の誤り、実行命令の
誤り等が発生ずる可能性がある。■Since the expression of the name tag in the address format, the displacement of the jump destination, and the coding of the instructions are all done manually, errors are likely to occur, including errors in reference areas, errors in 2 branch destinations, and errors in execution instructions. etc. may occur.
■修正した部分の管理のためにソースプログラムの修正
も行わなげればならないが、このソースプログラムの修
正はバッチの作成とは別段階で行われることとなるため
、ソースプログラムの修正時に新たに誤りが含まれる可
能性がある。■It is necessary to modify the source program to manage the modified parts, but since this modification of the source program is done at a separate stage from batch creation, there is no need to create new errors when modifying the source program. may be included.
■修正の履歴が統一的に管理できないため、二重修正が
発生する可能性がある。■Double revisions may occur because the history of revisions cannot be managed in a unified manner.
■パッチ内で使用するレジスタの値の保証等が煩雑であ
り、人手によるため誤りが発生ずる可能性がある。■ Guaranteeing the values of registers used in a patch is complicated, and because it is done manually, there is a possibility that errors may occur.
■領域の属性の変更のように他の箇所に影響を及ぼす修
正の場合、他の修正箇所の洗い出しが必要であるが、人
手に頼らざるを得す、修正漏れが発生ずる可能性がある
。- In the case of modifications that affect other parts, such as changing the attributes of an area, it is necessary to identify other parts to be modified, but this requires manual intervention and there is a possibility that corrections may be omitted.
本発明は」二重の点に鑑み提案されたものであり、その
目的とするところは、容易にバッチの作成が行えると共
に、人為的1誤りの発生を最小限に抑えることのできる
プログラム修正方式を提供することにある。The present invention was proposed in view of two points, and its purpose is to provide a program correction method that can easily create batches and minimize the occurrence of single human errors. Our goal is to provide the following.
(課題を解決するための手段〕
本発明は上記の目的を達成するため、ソースプログラム
を修正すると共に、修正箇所に修正識別子および修正番
号の情報を付加するソースプログラム修正手段と、
修正されたソースプログラムから修正識別子および修正
番号を解析してソースプログラムの修正部分およびオリ
ジナル部分と修正部分の情報を含む修正部分・オリジナ
ル部分関係テーブルとを出力する修正識別子認識手段と
、
オリジナル部分を変換する際の情報で修正部分・オリジ
ナル部分関係テーブルを完成させ、修正部分と修正部分
・オリジナル部分関係テーブルとから修正オブジj−り
1・を生成するプログラム変換手段とを備えるようにし
ている。(Means for Solving the Problems) In order to achieve the above object, the present invention provides a source program modifying means for modifying a source program and adding information of a modification identifier and a modification number to the modified portion; and a modified source. a modification identifier recognition means for analyzing a modification identifier and a modification number from a program and outputting a modified part of a source program and a modified part/original part relationship table containing information on the original part and the modified part; The apparatus includes a program conversion means for completing a modified part/original part relationship table with information and generating a modified object 1 from the modified part and the modified part/original part relationship table.
本発明のプログラム修正方式にあっては、ソースプログ
ラム修正手段がオペレータの操作に基づきソースプログ
ラムを修正すると共に、修正箇所に修正識別子および修
正番号の情報を付加し、修正されたソースプログラムか
ら修正識別子認識手段が修正識別子および修正番号を解
析してソースプログラムの修正部分およびオリジナル部
分と修正部分の情報を含む修正部分・オリジナル部分関
係テーブルとを出力し、プログラム変換手段がオリジナ
ル部分を変換する際の情報で修正部分・オリジナル部分
関係テーブルを完成させると共に、修正部分と修正部分
・オリジナル部分関係テーブルとから修正オブジェクト
を生成する。In the program modification method of the present invention, the source program modification means modifies the source program based on the operator's operation, adds modification identifier and modification number information to the modification location, and extracts the modification identifier from the modified source program. The recognition means analyzes the modification identifier and the modification number and outputs the modified part of the source program and a modified part/original part relationship table containing information on the original part and the modified part, and the program conversion means converts the original part. A modified part/original part relationship table is completed with the information, and a modified object is generated from the modified part and the modified part/original part relationship table.
以下、本発明の実施例につき図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図は本発明のプログラム修正方式の一実施例を示す
構成図である。FIG. 1 is a block diagram showing an embodiment of the program modification method of the present invention.
第1図において、本実施例は、機能部分として、ソース
プログラム修正手段2と、修正識別子認識手段4と、プ
ログラム変換手段8とを有している。In FIG. 1, this embodiment has source program modification means 2, modification identifier recognition means 4, and program conversion means 8 as functional parts.
なお、各手段の機能は以下の動作を通して説明すること
とする。Note that the functions of each means will be explained through the following operations.
以下、上記の実施例の動作を説明する。The operation of the above embodiment will be explained below.
今、既にソースプログラム1に対応するオブジェクトプ
ログラム(図示せず)が作成されており、そのオブジェ
クトプログラムに部分的に修正・追加を行うために、修
正オブジェクト(バッチ)9を作成する場合を考える。Now, let us consider a case where an object program (not shown) corresponding to the source program 1 has already been created, and a modified object (batch) 9 is created in order to partially modify or add to the object program.
先ず、オペレータ(図示せず)はソースプログラム修正
手段2によりソースプログラム1を修正してソースプロ
グラム3を作成する。この際、修正後のソースプログラ
ム3には、ソースプログラム修正手段2により修正部分
31の先頭部分に修正識別子31aおよび修正番号31
bの情報が付される。First, an operator (not shown) modifies the source program 1 using the source program modifying means 2 to create a source program 3. At this time, the modified source program 3 includes a modification identifier 31a and a modification number 31 at the beginning of the modified portion 31 by the source program modification means 2.
Information b is attached.
次いで、オペレータは今回の修正対象となる修正番号を
指定して修正後のソースプログラム3を修正識別子認識
手段4に与える。修正識別子認識手段4では、修正識別
子3 ]、 aの存在から修正部分31が認識され、更
にその修正番号31. bが指定された修正番号に一致
するか否かにより今回の修正対象であるか否かが識別さ
れる。また、修正部分31について解析が行われ、修正
部分31で参照する非変更部分(オリジナル部分)の名
標。Next, the operator specifies the modification number to be modified this time and provides the modified source program 3 to the modification identifier recognition means 4. The modification identifier recognition means 4 recognizes the modification portion 31 from the existence of the modification identifier 3 ], a, and further identifies the modification number 31 . It is determined whether b matches the designated modification number or not to be the current modification target. Further, the modified part 31 is analyzed and the name of the unchanged part (original part) is referred to in the modified part 31.
飛び先のラベル等の情報が抽出される。そして、修正識
別子認識手段4からは、修正部分31に相当する修正部
分5と、ソースプログラム1から変更を加えられず引き
継がれたオリジナル部分6とが出力されると共に、修正
部分5の解析から得られた情報の格納された修正部分・
オリジナル部分関係テーブル7が出力される。なお、こ
の段階で修正部分・オリジナル部分関係テーブル7は完
成されておらず、修正部分5で参照するオリジナル部分
6の名標、飛び先のラベル等に対応するアドレス、変位
等の情報は含まれていない。Information such as the label of the destination is extracted. Then, the modified identifier recognition means 4 outputs a modified part 5 corresponding to the modified part 31 and an original part 6 inherited from the source program 1 without any changes, and also outputs information obtained from the analysis of the modified part 5. The stored revised part of the information
The original partial relationship table 7 is output. Note that the modified part/original part relationship table 7 has not been completed at this stage, and does not include information such as addresses and displacements corresponding to the names, jump destination labels, etc. of the original part 6 referred to in the modified part 5. Not yet.
次いで、修正部分5とオリジナル部分6と修正部分・オ
リジナル部分関係テーブル7とがプログラム変換手段8
に入力される。先ず、プログラム変換手段8ではオリジ
ナル部分6の変換が行われ、その際に得られる情報から
修正部分・オリジナル部分関係テーブル7が完成される
。すなわち、修正部分5で参照するオリジナル部分6の
名標、飛び先のラベル等に対応する実際のアドレス、変
位等の情報がオリジナル部分6の変換の過程で抽出され
、これらが修正部分・オリジナル部分関係テーブル7に
格納される。Next, the modified part 5, the original part 6, and the modified part/original part relationship table 7 are converted into a program conversion means 8.
is input. First, the program conversion means 8 converts the original part 6, and the modified part/original part relationship table 7 is completed from the information obtained at that time. That is, information such as the actual address, displacement, etc. corresponding to the name mark, jump destination label, etc. of the original part 6 referred to in the modified part 5 is extracted during the process of converting the original part 6, and these are used as the modified part/original part. It is stored in the relationship table 7.
その後、プログラム変換手段8では、修正部分・オリジ
ナル部分関係テーブル7の情報を用いて修正部分5の変
換が行われ、修正部分5に含まれる名標、ラベル等がア
ト1ノス、変位等で表現され、コード化された修正オブ
ジェクト9が出力される。Thereafter, in the program conversion means 8, the modified part 5 is converted using the information in the modified part/original part relationship table 7, and the names, labels, etc. included in the modified part 5 are expressed by at1 nos, displacement, etc. and a coded modified object 9 is output.
第2図は本発明の他の実施例を示したものであり、−時
にもしくは複数回にわたってソースプログラム3に複数
の修正が加えられた場合を示している。この場合、修正
識別子認識手段4では、指定された修正番号(31b〜
3nb)を有する修正部分(31〜3n)のみが修正部
分5として出力され、その他の部分がオリジナル部分6
として出力される。その他の動作は前述した第1図の実
施例と同様である。FIG. 2 shows another embodiment of the present invention, in which a plurality of modifications are made to the source program 3 at one time or more than once. In this case, the modification identifier recognition means 4 recognizes the specified modification number (31b to 31b).
3nb) is output as the modified part 5, and the other parts are the original part 6.
is output as Other operations are similar to the embodiment shown in FIG. 1 described above.
以上説明したように、本発明のプログラム修正方式にあ
っては、ソースプログラムに直接に修正を行い、くれに
基づいてバッチを作成するため、■修正の作業において
は、プログラミング言語による命令、参照する領域の名
標、飛び先のラベル等をそのまま用いることができ、ア
ドレス化、コード化等を人手で行う必要がないので、誤
りの発生が大幅に低減する。As explained above, in the program modification method of the present invention, the source program is directly modified and a batch is created based on the modification. The name of the area, the label of the jump destination, etc. can be used as is, and there is no need to manually perform addressing, coding, etc., which greatly reduces the occurrence of errors.
■パッチの作成とソースプログラムの修正が同時に行わ
れるので、ソースプログラムの修正時に新たに誤りが含
まれるということが皆無となる。■Since patch creation and source program modification are performed at the same time, no new errors are introduced when modifying the source program.
■修正の履歴が修正識別子および修正番号を用いて統一
的に管理できるので、二重修正が発生ずる可能性がなく
なる。■Since the history of revisions can be managed uniformly using revision identifiers and revision numbers, there is no possibility of double revisions occurring.
■修正部分・オリジナル部分関係テーブルにパッチ内で
使用するレジスタ等の情報を含めることにより、レジス
タの値の保証等も自動に行わせることができ、誤りの発
生を低減できる。- By including information on registers used in a patch in the modified part/original part relation table, register values can be guaranteed automatically, and the occurrence of errors can be reduced.
■修正部分・オリジナル部分関係テーブルに領域の属性
等の情報を含めることにより、領域の属性の変更のよう
に他の箇所に影響を及ばず修正の場合でも、パッチの作
成と同時に他の修正箇所の洗い出しも行え、修正漏れの
発生を低減できる。■By including information such as area attributes in the modified part/original part relationship table, even when making modifications, other parts can be updated at the same time as patch creation without affecting other parts, such as changing the attributes of an area. It is also possible to identify errors and reduce the occurrence of omissions in corrections.
等の効果がある。There are other effects.
第1図は本発明のプログラム修正方式の一実施例を示す
構成図および、
第2図は他の実施例を示す構成図である。
図において、
1・・・・・・ソースプログラム
2・・・・・・ソースプログラム修正手段3・・・・・
・ソースプログラム
31.3m、3n・・・修正部分
31、a、3ma、3na・・・修正識別子3 l b
、 3mb、 3 n b−修正番号4・・・・・
・修正識別子認識手段
5・・・・・・修正部分
6・・・・・・オリジナル部分
7・・・・・・修正部分・オリジナル部分関係テーブル
8・・・・・・プログラム変換手段FIG. 1 is a block diagram showing one embodiment of the program correction method of the present invention, and FIG. 2 is a block diagram showing another embodiment. In the figure, 1...Source program 2...Source program modification means 3...
・Source program 31.3m, 3n...Modified part 31, a, 3ma, 3na...Modification identifier 3 l b
, 3mb, 3nb-Modification number 4...
・Modified identifier recognition means 5...Modified part 6...Original part 7...Modified part/original part relationship table 8...Program conversion means
Claims (2)
修正識別子および修正番号の情報を付加するソースプロ
グラム修正手段と、 修正されたソースプログラムから修正識別子および修正
番号を解析してソースプログラムの修正部分およびオリ
ジナル部分と修正部分の情報を含む修正部分・オリジナ
ル部分関係テーブルとを出力する修正識別子認識手段と
、 オリジナル部分を変換する際の情報で修正部分・オリジ
ナル部分関係テーブルを完成させ、修正部分と修正部分
・オリジナル部分関係テーブルとから修正オブジェクト
を生成するプログラム変換手段とを備えたことを特徴と
するプログラム修正方式。(1) A source program modification means that modifies a source program and adds information of a modification identifier and modification number to the modified part; a modification identifier recognition means for outputting a modified part/original part relationship table including information on the original part and the modified part; and a modification identifier recognition means for outputting a modified part/original part relationship table with information used when converting the original part; A program modification method comprising: program conversion means for generating a modification object from a part/original part relationship table.
正部分で参照するオリジナル部分の名標、飛び先のラベ
ル等の情報が格納されることを特徴とした請求項1記載
のプログラム修正方式。(2) The program modification method according to claim 1, wherein the modified part/original part relationship table stores information such as a name of the original part referred to in the modified part and a label of a jump destination.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2142640A JPH0436832A (en) | 1990-05-31 | 1990-05-31 | Program correction system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2142640A JPH0436832A (en) | 1990-05-31 | 1990-05-31 | Program correction system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0436832A true JPH0436832A (en) | 1992-02-06 |
Family
ID=15320056
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2142640A Pending JPH0436832A (en) | 1990-05-31 | 1990-05-31 | Program correction system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0436832A (en) |
-
1990
- 1990-05-31 JP JP2142640A patent/JPH0436832A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5202996A (en) | Software structuring system and method by data table translation | |
| JP4724387B2 (en) | Program conversion program, program conversion apparatus, and program conversion method | |
| US9098263B2 (en) | Database application assembly and preparation | |
| JPH0436832A (en) | Program correction system | |
| EP0218258A3 (en) | Software structuring system and method by data table translation | |
| CN116048584A (en) | A system upgrade method, device, equipment and storage medium | |
| JPH0667871A (en) | Automatic program updating system | |
| JPS61169936A (en) | Automatic generation system of job control language | |
| JPH07210397A (en) | Program conversion method and program execution method using the same | |
| JPH0793185A (en) | Software automatic test system | |
| JPH06242933A (en) | Program document maintenance device | |
| JPH0656577B2 (en) | Software specification management method | |
| JPH0362227A (en) | High speed retranslation processing system | |
| JP2004280660A (en) | Drawing apparatus, drawing method, and drawing program | |
| CN119692312A (en) | A method, device and electronic device for automatically generating report content | |
| JPH0268622A (en) | Program specializing system | |
| JPH06314194A (en) | Patch system | |
| JPS63265330A (en) | Managing system for multi-hierarchy program source | |
| JPH01129326A (en) | Program linkage system | |
| JPS62121542A (en) | Program correction system | |
| JPH01144127A (en) | Interpreter system | |
| JP2000357080A (en) | Device and method for managing version number, recording medium stored with program and information processor | |
| JPH0540612A (en) | Computer prperty conversion processor | |
| JPH05265742A (en) | Program patch method | |
| JPH0430694A (en) | Stored program control electronic exchange |