JPH0276029A - Coincidence checking method among source, object and load modules - Google Patents

Coincidence checking method among source, object and load modules

Info

Publication number
JPH0276029A
JPH0276029A JP63229283A JP22928388A JPH0276029A JP H0276029 A JPH0276029 A JP H0276029A JP 63229283 A JP63229283 A JP 63229283A JP 22928388 A JP22928388 A JP 22928388A JP H0276029 A JPH0276029 A JP H0276029A
Authority
JP
Japan
Prior art keywords
source
module
load
management information
pack
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
JP63229283A
Other languages
Japanese (ja)
Inventor
Minoru Ogoshi
大越 実
Yoshitaka Akiyama
秋山 美登
Keiko Taniguchi
恵子 谷口
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 JP63229283A priority Critical patent/JPH0276029A/en
Publication of JPH0276029A publication Critical patent/JPH0276029A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To prevent correspondence between a module itself and source control information from being missed by outputting comparing list between a source and an object and between the source and a load, confirming these two lists, and checking coincidence among respective source, object and load modules. CONSTITUTION:The source module is complied or the object module is prepared by an assemble program. Simultaneously, the source control information is also outputted. These object module and source control information 21 are housed in a same pack and after that, for the object module, the load module is prepared by a linkage edit program 22. Simultaneously, source control information 23 is also outputted and these load module and source control information 23 are housed in the same pack. When the coincidence is checked, both bits of information are outputted from the same pack and checked. Thus, since the respective modules themselves and correspondent source control information are housed in the same pack, the correspondence is not missed and the coincidence check can be executed without fail.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ソースモジュールを修正した場合に、ソース
モジュール、オブジェクトモジュールと修正されたソー
スモジュール間の一致の検証を確実かつ簡単に行う方法
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for reliably and easily verifying correspondence between a source module, an object module, and a modified source module when a source module is modified. .

〔従来の技術〕[Conventional technology]

従来、ソースモジュールの修正を行った場合のプログラ
ムを提供する際に、ロードモジュールが該当するソース
モジュールから作成されたことを証明する方法がなかっ
た。
Conventionally, when providing a program after modifying a source module, there was no way to prove that the load module was created from the corresponding source module.

ソースモジュールは、プログラム言語で記述されたプロ
ゲラ・ムの基になる書類であって、テープ、カード、あ
るいは磁気ディスク等に格納されている。このソースモ
ジュールから読み出された言語群をコンパイルあるいは
アセンブルにより編集することにより、オブジェクトモ
ジュールを作成する。さらに、オブジェクトモジュール
をリンヶ一ジエディット・プログラムにより、プログラ
ムとして直ちに使用できる状態にして、ロードモジュー
ルを作成する。ここでは、ソース、オブジェクト、およ
びロードの各モジュールはいずれも磁気ディスク装置に
格納されているものとする。
A source module is a document written in a programming language and is the basis of a program, and is stored on a tape, card, magnetic disk, or the like. An object module is created by editing the language group read from this source module by compiling or assembling. Furthermore, a load module is created by putting the object module into a state where it can be immediately used as a program using a linkage editing program. Here, it is assumed that the source, object, and load modules are all stored in a magnetic disk device.

ところで、ソースモジュールからオブジェクトモジュー
ルを作成し、さらにオブジェクトモジュールからロード
モジュールを作成する場合、同時に多数のモジュールを
作成するため、前者の作成処理と後者の作成処理とは別
の要員が行い、また時間的にも異なる日時に、また場所
的にも異なる室内で、それぞれ作成されることが多い。
By the way, when creating an object module from a source module and a load module from an object module, many modules are created at the same time, so the creation process for the former and the latter is done by different personnel, and it also takes a lot of time. They are often created at different times and locations, and in different rooms.

このため、プログラム提供に際して、ソースモジュール
の修正を行った場合、修正されたソースモジュールから
オブジェクトモジュールを、さらにロードモジュールを
作成せずに、修正前のソースモジュールから作成してし
まうことがあり、またその修正が複数回行われた場合に
は、全ての修正後のソースモジュールからオブジェクト
モジュールとロードモジュールが作成されているか、−
致検証することができず、信頼性の点で問題があった。
For this reason, when a source module is modified when providing a program, an object module may be created from the modified source module, and an object module may be created from the source module before modification, without creating a load module. If the modification is made multiple times, check whether object modules and load modules have been created from all modified source modules.
It was not possible to verify the accuracy of the test, and there were problems with reliability.

そこで、このような問題をなくすため、ソース。Therefore, in order to eliminate such problems, source.

オブジェクト、ロードの各モジュールの一致検証を行う
方法が提案された(例えば、特開昭61−226846
号公報参照)。上記方法では、ソースモジュールに関す
る世代情報をそのソースモジュールから作成したオブジ
ェクトモジュールに対応付けて、オブジェクトモジュー
ル管理データセットに格納し、次にオブジェクトモジュ
ールから作成したロードモジュールに対応付けて、その
オブジェクトモジュールに関するソースモジュールの世
代情報をロードモジュール管理データセットに格納する
。これにより、オブジェクトモジュールおよびロードモ
ジュールに対応するソースモジュールの世代情報を検索
することにより、一致検証を行うことができる。
A method of verifying the consistency of object and load modules has been proposed (for example, Japanese Patent Application Laid-Open No. 61-226846
(see publication). In the above method, generation information about a source module is associated with an object module created from that source module, stored in an object module management data set, and then associated with a load module created from the object module, Store the source module generation information in the load module management data set. Thereby, matching verification can be performed by searching the generation information of the source module corresponding to the object module and the load module.

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

しかし、上述の従来の方法では、ソース、オブジェクト
、ロードモジュールの一致検証を行うためには、オブジ
ェクトモジュール管理データセットおよびロードモジュ
ール管理データセットをそれぞれ設ける必要があり、大
がかりな準備とハードウェアを用意しなければならない
。また、実際のオブジェクトモジュール自体、ロードモ
ジュール自体と、管理データセットが別であるため、モ
ジュールと管理データセットを確実に対応付けられる保
証がない。できれば、余分なデータを別個に設けること
なく、一致検証を行えることが望ましい。
However, in the conventional method described above, in order to verify the match between sources, objects, and load modules, it is necessary to provide an object module management data set and a load module management data set, respectively, which requires extensive preparation and hardware. Must. Furthermore, since the actual object module itself, the load module itself, and the management data set are separate, there is no guarantee that the module and the management data set can be reliably associated. If possible, it is desirable to be able to perform match verification without separately providing extra data.

本発明の目的は、このような従来の課題を解決し、別個
に独立したデータを作らず、またデータを作成した場合
でも、各モジュールとの対応付けが確実に行えて、簡単
にソース、オブジェクト。
The purpose of the present invention is to solve such conventional problems, to avoid creating separate and independent data, and even when data is created, it is possible to reliably associate it with each module, and to easily create sources and objects. .

ロードの各モジュールの一致検証を行うことができるソ
ース、オブジェクト、ロードモジュール間の一致検証方
法を提供することにある。
The object of the present invention is to provide a method for verifying consistency between a source, an object, and a load module that can perform consistency verification for each module of a load.

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

上記目的を達成するため、本発明によるソース。 To achieve the above object, a sauce according to the present invention.

オブジェクト、ロードモジュール間の一致検証方法は、
ソースモジュールをコンパイルするか、アセンブルして
、オブジェクトモジュールを作成すると同時に、ソース
管理情報を設定するプログラムにより上記ソースモジュ
ールからソース管理情報を作成し、上記オブジェクトモ
ジュールとソース管理情報を同一のパックに格納した後
、上記オブジェクトモジュールからリンケージエディタ
によりロードモジュールを作成すると同時に、該ロード
モジュールと上記ソース管理情報とを同一のパックに格
納し、ソース、オブジェクト検証プログラムによりソー
スとオブジェクトモジュール間、およびソース、ロード
検証プログラムによりソースとロードモジュール間の各
一致を検証することに特徴がある。
The matching verification method between objects and load modules is as follows:
Compile or assemble the source module to create an object module, and at the same time create source management information from the source module using a program that sets source management information, and store the object module and source management information in the same pack. After that, create a load module from the object module using the linkage editor, store the load module and the source management information in the same pack, and check the information between the source and the object module and between the source and the object module using the source and object verification program. The feature is that each match between the source and the load module is verified by a verification program.

〔作  用〕[For production]

本発明においては、ソースモジュールをコンパイルまた
はアセンブル・プログラムによりオブジェクトモジュー
ルを作成すると同時に、ソース管理情報も出力し、これ
らオブジェクトモジュールとソース管理情報とを同一の
パックに格納した後、オブジェクトモジュールをリンケ
ージニブイトプログラムによりロードモジュールを作成
すると同時に、ソース管理情報をも出力し、これらロー
ドモジュールとソース管理情報とを同一のパックに格納
し、一致検証時には、同一パックから画情報を出力させ
て検証する。これにより、各モジュール自体と対応する
ソース管理情報とが同一パック内に格納されているため
、対応を誤ることはなく、確実に一致検証を行うことが
できる。
In the present invention, when an object module is created by compiling or assembling a source module, source management information is also output, and after storing the object module and source management information in the same pack, the object module is loaded into a linkage nib. At the same time as a load module is created by a load module, source management information is also output, and these load modules and source management information are stored in the same pack, and when verifying matching, image information is output from the same pack for verification. As a result, since each module itself and the corresponding source management information are stored in the same pack, there is no mistake in correspondence, and matching can be verified reliably.

本発明では、次の2段階の処理からなる。すなわち、(
i)ソースモジュールのコンパイルまたはアセンブル時
に、オブジェクトモジュール中にソース管理情報を出力
する。さらに、リンケージエディタで上記オブジェクト
モジュールを入力し。
The present invention consists of the following two steps of processing. That is, (
i) Output source management information into an object module when compiling or assembling a source module. Furthermore, enter the above object module in the linkage editor.

ロードモジュール中にもソース管理情報を出力する。(
ii)ソースモジュール自体の情報、オブジェクトモジ
ュール中のソース管理情報より、ソース・オブジェクト
間の一致検証を行い、比較リストを出力する。また、ソ
ースモジュール自体の情報、ロードモジュール中のソー
ス管理情報より、ソース・ロード間の一致検証を行い、
比較リストを出力する。
Outputs source control information also in the load module. (
ii) Based on the information on the source module itself and the source management information in the object module, a match between the source and object is verified and a comparison list is output. In addition, we verify the consistency between the source and load based on the information on the source module itself and the source management information in the load module.
Output comparison list.

〔実施例〕〔Example〕

以下、本発明の実施例を、図面により詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例を示す処理の流れを示すフ
ローチャートである。
FIG. 1 is a flowchart showing the flow of processing according to an embodiment of the present invention.

先ず、ソースモジュールを修正して、ソースモジュール
のパック6に格納する(ステップ10)。
First, the source module is modified and stored in the source module pack 6 (step 10).

次に、ソースモジュール6をアセンブルまたはコンパイ
ルすることにより、オブジェクトモジュールを作成して
、これをオブジェクトモジュールのパック7に格納する
(ステップ11)。次に、ソース管理情報設定プログラ
ムにより、ソースモジュール6よりソースの情報を取得
して、オブジェクトモジュール7中にソース管理情報と
して格納する(ステップ12)。次に、オブジェクトモ
ジュール7をリンケージエデイツトプログラムによりロ
ードモジュールを作成し、これをロードモジュールのパ
ック8に格納する(ステップ13)。同時に、オブジェ
クトモジュール7中のソース情報を取得して、ロードモ
ジュール8中にソース管理情報としてそのまま出力し、
これを格納する(ステップ13)。そして、一致検証に
際しては、ソース、オブジェクト検証プログラムにより
、ソースモジュール6とオブジェクトモジュール7の情
報を比較しくステップ14)、その比較結果をソース、
オブジェクト比較リストとして出力する(ステップ15
)。
Next, by assembling or compiling the source module 6, an object module is created and stored in the object module pack 7 (step 11). Next, the source management information setting program acquires source information from the source module 6 and stores it as source management information in the object module 7 (step 12). Next, a load module is created from the object module 7 using the linkage editor program, and this is stored in the load module pack 8 (step 13). At the same time, obtain the source information in the object module 7 and output it as source management information to the load module 8,
This is stored (step 13). In the case of matching verification, the source module 6 and the object module 7 are compared using the source and object verification programs (step 14), and the comparison results are used as the source and object verification programs.
Output as an object comparison list (step 15
).

また、ソース、ロード検証プログラムにより、ソースモ
ジュール6とロードモジュール8の情報を比較しくステ
ップ17)、その比較結果をソース。
Also, the source and load verification program compares the information of the source module 6 and the load module 8 (step 17), and the comparison result is used as the source.

ロード比較リストとして出力する(ステップ18)。Output as a load comparison list (step 18).

最後に、両比較リストを確認することにより、ソース、
オブジェクト、ロードモジュールの一致検証を行うこと
ができる(ステップ19)。
Finally, by checking both comparison lists, the source,
Matching of objects and load modules can be verified (step 19).

第2図は、本発明におけるソース管理情報を含むオブジ
ェクト、ロードモジュールを作成する手順を示す説明図
である。
FIG. 2 is an explanatory diagram showing a procedure for creating an object and a load module including source management information according to the present invention.

第1図において、ソースモジュール6からソース管理情
報を含むオブジェクトモジュール7およびロードモジュ
ール8を作成するまでの手順は。
In FIG. 1, the procedure for creating an object module 7 and a load module 8 containing source management information from a source module 6 is shown.

第2図に示すように、ソースモジュール6とオブジェク
トモジュール7に対する処理から開始される。
As shown in FIG. 2, processing begins with respect to the source module 6 and object module 7.

先ず、ソースモジュール6をコンパイルまたはアセンブ
ルして、オブジェクトモジュール7を作成した後、ソー
ス管理情報設定プログラム20によりオブジェクトモジ
ュール7中にソース管理情報を出力して、ソース管理情
報を含むオブジェクトモジュールのパック21を完成さ
せる。次に、ソース管理情報を含むオブジェクトモジュ
ール21に対して、リンケージエデイツトプログラム2
2により、ロードモジュールを作成してロードモジュー
ルのパック23に格納するとともに、オブジェクトモジ
ュールとソース管理情報が格納されるパック21からソ
ース管理情報を読み出し、そのままロードモジュールの
パック23に出力し、これを格納する。このようにして
、ソース管理情報を別のパックに格納することなく、オ
ブジェクトモジュールおよびロードモジュールとそれぞ
れ同−のパック内に対応するソース管理情報として格納
することができる。その結果、対応を誤ることがなくな
る。
First, the source module 6 is compiled or assembled to create the object module 7, and then the source management information setting program 20 outputs the source management information into the object module 7, and the object module pack 21 containing the source management information is created. complete. Next, the linkage editor program 2
2, a load module is created and stored in the load module pack 23, and source management information is read from the pack 21 in which object modules and source management information are stored, output as is to the load module pack 23, and this is Store. In this way, the source management information can be stored in the same pack as the object module and the load module, respectively, as corresponding source management information, without having to be stored in a separate pack. As a result, there will be no mistakes in handling.

第3図は、本発明におけるオブジェクトおよびロードモ
ジュールと、ソース情報の比較を行うための説明図であ
る。
FIG. 3 is an explanatory diagram for comparing objects and load modules and source information in the present invention.

第2図により作成されたオブジェクトモジュール21と
ソースモジュール6とを、ソース、オブジェクト検証プ
ログラム24により比較し、ソース、オブジェクト比較
リスト15を出力する。同じようにして、ロードモジュ
ール23とソースモジュール6とを、ソース、ロード検
証プログラム25により比較し、ソース、ロード比較リ
スト18を出力する。これら2つの比較リスト15.1
8を確認することにより、ソース、オブジェクト。
The object module 21 created according to FIG. 2 and the source module 6 are compared by a source/object verification program 24, and a source/object comparison list 15 is output. In the same way, the load module 23 and the source module 6 are compared by the source/load verification program 25, and the source/load comparison list 18 is output. Comparison list of these two 15.1
By checking 8, the source,object.

ロードの各モジュールの一致検証を行うことができる。You can perform matching verification for each loaded module.

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

以上説明したように、本発明によれば、ソースとオブジ
ェクト、ソースとロードの比較リストを出力し、これら
2つのリストを確認することにより、ソース、オブジェ
クト、ロードの各モジュール間の一致検証を行うことが
できるので、プログラム提供に際して、ロードモジュー
ル作成ミス等による事故を防ぐことが可能であり、かつ
ソース管理情報を各モジュール自体と別個に設けること
なく、各モジュール自体中に格納するので、モジュール
自体とソース管理情報の対応を誤ることがない。
As explained above, according to the present invention, a comparison list of source and object and source and load is output, and by checking these two lists, the consistency verification between the source, object, and load modules is performed. This makes it possible to prevent accidents due to load module creation errors when providing programs, and since the source management information is stored within each module itself without being provided separately from each module itself, the module itself and source control information.

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

第1図は本発明の一実施例を示す各モジュール間の一致
検証処理のフローチャート、第2図は本発明におけるソ
ース管理情報を含むオブジェクトモジュール、ロードモ
ジュールの作成手順を示す図、第3図は本発明における
オブジェク1〜モジユール、ロードモジュールとソース
モジュールの比較処理の説明図である。 6:ソースモジュールのパック、7:オブジェクトモジ
ュールのパック、8はロードモジュールのパック、15
:ソース、オブジェクト比較リスト、18:ソース、ロ
ード比較リスト、21:ソース管理情報を含むオブジェ
クトモジュールのパック、23:ソース管理情報を含む
ロードモジュールのパック、20:ソース管理情報設定
プログラム、22ニリンケージエデイツトプログラム、
24:ソース、オブジェクト検証プログラム、25:ソ
ース、ロード検証プログラム。 特許出願人 株式会社 日立製作所 第1図
FIG. 1 is a flowchart of a matching verification process between modules showing an embodiment of the present invention, FIG. 2 is a diagram showing a procedure for creating an object module and a load module including source management information in the present invention, and FIG. It is an explanatory diagram of comparison processing of object 1 to module, a load module, and a source module in the present invention. 6: Source module pack, 7: Object module pack, 8: Load module pack, 15
: Source, object comparison list, 18: Source, load comparison list, 21: Pack of object modules including source management information, 23: Pack of load modules including source management information, 20: Source management information setting program, 22 Linkage editor program,
24: Source, object verification program; 25: Source, load verification program. Patent applicant: Hitachi, Ltd. Figure 1

Claims (1)

【特許請求の範囲】[Claims] 1、ソースモジュールをコンパイルするか、アセンブル
して、オブジェクトモジュールを作成すると同時に、ソ
ース管理情報を設定するプログラムにより上記ソースモ
ジュールからソース管理情報を作成し、上記オブジェク
トモジュールとソース管理情報を同一のパックに格納し
た後、上記オブジェクトモジュールからリンケージエデ
ィタによりロードモジュールを作成すると同時に、該ロ
ードモジュールと上記ソース管理情報とを同一のパック
に格納し、ソース、オブジェクト検証プログラムにより
ソースとオブジェクトモジュール間、およびソース、ロ
ード検証プログラムによりソースとロードモジュール間
の各一致を検証することを特徴とするソース、オブジェ
クト、ロードモジュール間の一致検証方法。
1. Compile or assemble the source module to create an object module, and at the same time create source management information from the source module using a program that sets source management information, and pack the object module and source management information in the same pack. Then, a load module is created from the object module using a linkage editor, and at the same time, the load module and the source management information are stored in the same pack, and the source and object verification program checks the information between the source and the object module and the source. A method for verifying a match between a source, an object, and a load module, characterized in that each match between the source and the load module is verified by a load verification program.
JP63229283A 1988-09-13 1988-09-13 Coincidence checking method among source, object and load modules Pending JPH0276029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63229283A JPH0276029A (en) 1988-09-13 1988-09-13 Coincidence checking method among source, object and load modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63229283A JPH0276029A (en) 1988-09-13 1988-09-13 Coincidence checking method among source, object and load modules

Publications (1)

Publication Number Publication Date
JPH0276029A true JPH0276029A (en) 1990-03-15

Family

ID=16889692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63229283A Pending JPH0276029A (en) 1988-09-13 1988-09-13 Coincidence checking method among source, object and load modules

Country Status (1)

Country Link
JP (1) JPH0276029A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7577946B2 (en) 2002-03-01 2009-08-18 Fujitsu Limited Program product, method, and system for testing consistency of machine code files and source files

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7577946B2 (en) 2002-03-01 2009-08-18 Fujitsu Limited Program product, method, and system for testing consistency of machine code files and source files

Similar Documents

Publication Publication Date Title
US4595981A (en) Method of testing interfaces between computer program modules
CA1316262C (en) Version management tool
US6182245B1 (en) Software test case client/server system and method
CN107678748A (en) A kind of source code file Compilation Method and device
US5379407A (en) Error handling in a state-free system
JPH0276029A (en) Coincidence checking method among source, object and load modules
JP2538630B2 (en) Automatic test item selection system
Wordsworth The CICS application programming interface definition
JPH06110733A (en) Test case generating device of program
JP3248433B2 (en) Program linkage verification method
US20230134007A1 (en) Support device, non-transitory computer-readable storage medium, and support method
JPH0512087A (en) System for outputting pre-updating journal
JPS5856150A (en) Program control system
JP2578887B2 (en) Program test method
JPH02197935A (en) Output system for application state of control table
JPH05210401A (en) Sequence program collation method
JPH04344932A (en) Distributed programming method
CN109002713A (en) Safety regulation detection method and system
JPH0365614A (en) Mechatronic apparatus
JPH0283748A (en) Method and device for checking microprogram
JPS6118047A (en) Redundant execution system of program
JPH05241818A (en) Program source converter
JPH1027098A (en) Information analysis and edition system
JPH0390934A (en) Check system for propriety of document
JPH05314148A (en) Release management system