JPH05224910A - Program revision managing method - Google Patents

Program revision managing method

Info

Publication number
JPH05224910A
JPH05224910A JP2495692A JP2495692A JPH05224910A JP H05224910 A JPH05224910 A JP H05224910A JP 2495692 A JP2495692 A JP 2495692A JP 2495692 A JP2495692 A JP 2495692A JP H05224910 A JPH05224910 A JP H05224910A
Authority
JP
Japan
Prior art keywords
module
management table
program
load module
control unit
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.)
Withdrawn
Application number
JP2495692A
Other languages
Japanese (ja)
Inventor
Toshibumi Nagao
俊文 長尾
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 JP2495692A priority Critical patent/JPH05224910A/en
Publication of JPH05224910A publication Critical patent/JPH05224910A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To prevent a fact that a module before its correction operates and executes incorrectly a processing, in the case where it is forgotten to generate a load module, in spite of a fact that the module is corrected. CONSTITUTION:An editor control part 4 actuates an editor 5 in order to correct a module whose correction becomes necessary, and updates the correction data and hour of a module management table 2, and its revision, when the correction is completed. A compiler control part 6 actuates a compiler 7 in order to translate a corrected source program to an object program, and updates the compile date and hour managed by the module management table 2. A linker control part 8 retrieves a load module which is using the generated object program, from a link management table 3, actuates a linker 9, when the load module is detected, generates the load modules, and updates the generation date and hour and the load module revision, managed on a load module management table 1.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータシステム
において業務プログラムを開発する方法に関し、特に、
開発したプログラムのリビジョン管理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for developing a business program in a computer system, and in particular,
Revision management method for developed programs.

【0002】[0002]

【従来の技術】業務プログラムの開発において、プログ
ラムの修正は、修正しようとしているプログラムを構成
しているモジュール単位にプログラム修正者がエディタ
のソースプログラム修正機能を利用しソースプログラム
の修正を行ない、ソースプログラムの修正が完了する
と、修正したソースプログラムを翻訳するために、コン
パイラを利用し、修正したソースプログラムからオブジ
ェクトプログラムを作成する。オブジェクトプログラム
の作成が完了すれば、プログラム修正者は、修正となっ
たオブジェクトプログラムを使用しているプログラムを
すべて調べ出し、リンカを利用して、プログラムごとに
ロードモジュールを作成している。
2. Description of the Related Art In the development of a business program, a program is modified by a program modifier using a source program modification function of an editor for each module constituting a program to be modified. When the modification of the program is completed, a compiler is used to translate the modified source program, and an object program is created from the modified source program. When the creation of the object program is completed, the program rectifier finds out all the programs that use the modified object program, and uses the linker to create the load module for each program.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のプログ
ラムリビジョン管理方法は、人手により行なわれている
ため、修正されたモジュールを使用しているプログラム
すべてを、再リンクし動作させなければならないが、一
部プログラムの再リンク忘れによりそのプログラムが実
行された場合、実行したプログラムから修正する前の状
態のモジュールが呼び出され、そのプログラム内にて異
常動作するという欠点がある。
Since the above-mentioned conventional program revision management method is carried out manually, all programs using the modified module must be relinked and operated. When a program is executed due to forgetting to relink a part of the program, there is a drawback that the module in the state before correction is called from the executed program and the program operates abnormally.

【0004】[0004]

【課題を解決するための手段】本発明のプログラムリビ
ジョン管理方法は、プログラムの実行単位であるロード
モジュールの作成日時と、ロードモジュールを構成して
いる全モジュールを登録されているロードモジュール管
理テーブルと、プログラムを構成するモジュールの修正
日時,コンパイル日時,リビジョンを登録されているモ
ジュール管理テーブルと、モジュールがどのロードモジ
ュールを構成しているかを登録されているリンク管理テ
ーブルと、エディタの起動を行なうエディタ制御部と、
ソースプログラムをオブジェクトプログラムに翻訳する
コンパイラを起動し、終了状態を監視する機能を持つコ
ンパイラ制御部と、オブジェクトプログラムを結合しロ
ードモジュールを作成するリンカを起動し、終了状態を
監視する機能を持つリンカ制御部とを使用し、プログラ
ム修正者がモジュールの修正を行なった場合に、前記コ
ンパイラ制御部はコンパイラを起動しコンパイルが正常
終了すれば、前記リンカ制御部へ制御が渡され前記リン
カ制御部は、コンパイルされたモジュールがどのロード
モジュールを構成しているかを前記リンク管理テーブル
より検索し、前記リンカの起動を行ない、リンカ制御部
は前記リンクの終了状態を監視し正常終了すれば前記モ
ジュール管理テーブル,リンク管理テーブル,ロードモ
ジュール管理テーブルの更新処理を行なうことを特徴と
する。
According to a program revision management method of the present invention, a creation date and time of a load module which is a program execution unit, and a load module management table in which all modules constituting the load module are registered. , The module management table in which the modification date, compilation date, and revision of the modules that make up the program are registered, the link management table in which which load module the module is configured in, and the editor that starts the editor A control unit,
A linker that has the function of activating the compiler that translates the source program into an object program and observing the end status, and the linker that combines the object program and creates the load module to monitor the end status. When a program corrector modifies a module using a control unit, the compiler control unit activates the compiler, and if compilation is normally completed, control is passed to the linker control unit and the linker control unit , The link management table is searched for which load module the compiled module constitutes, and the linker is started. The linker control unit monitors the end state of the link, and if it is normally completed, the module management table. , Link management table, load module management table And performing update processing of Le.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0006】図1は本発明の一実施例の構成図である。
エディタ制御部4は、修正が必要なったモジュールを修
正するために、エディタ5の起動を行ない、修正が完了
すればモジュール管理テーブル2の修正日時,リビジョ
ンを更新する機能を有する。コンパイラ制御部6は、修
正されたソースプログラムをオブジェクトプログラムに
翻訳するためにコンパイラ7を起動し、モジュール管理
テーブル2で管理されているコンパイル日時の更新を行
なう機能を有する。リンカ制御部8は、作成されたオブ
ジェクトプログラムを使用しているロードモジュール
を、リンク管理テーブル3より検索し、ロードモジュー
ルが見つかれば、リンカ9を起動させ、ロードモジュー
ルの作成を行ない、ロードモジュール管理テーブル1上
で管理されている、作成日時およびロードモジュールリ
ビジョンの更新を行なう機能を有する。
FIG. 1 is a block diagram of an embodiment of the present invention.
The editor control unit 4 has a function of activating the editor 5 in order to correct a module that needs to be corrected, and updating the correction date and revision of the module management table 2 when the correction is completed. The compiler control unit 6 has a function of activating the compiler 7 to translate the modified source program into an object program and updating the compile date and time managed by the module management table 2. The linker control unit 8 searches the link management table 3 for the load module that uses the created object program. If the load module is found, the linker 9 is activated, the load module is created, and the load module management is performed. It has a function of updating the creation date and time and the load module revision managed on the table 1.

【0007】ロードモジュール管理テーブル1は、ロー
ドモジュールの作成日時およびリビジョン,ロードモジ
ュールを構成しているモジュール名の管理情報を有して
いる。
The load module management table 1 has management information of the creation date and time and revision of the load module, and the module name of the load module.

【0008】モジュール管理テーブル2は、モジュール
ごとにソースプログラムの修正日時およびリビジョン,
オブジェクトプログラムのコンパイル日時およびリビジ
ョン,該当するリンク管理テーブル名を有している。リ
ンク管理テーブル3は、モジュールを呼び出している全
プログラム名とそれと対応しているロードモジュール管
理テーブル名の情報を有している。
The module management table 2 stores the modification date and revision of the source program for each module,
It holds the compile date and revision of the object program and the name of the corresponding link management table. The link management table 3 has information on the names of all programs calling the module and the corresponding load module management table names.

【0009】修正が必要となったソースプログラムがあ
り、プログラム修正者は、エディタ制御部4を起動し、
ソースプログラムを修正しようとする。起動されたエデ
ィタ制御部4は、ソースプログラム修正を行なうため
に、エディタ5を起動する。プログラム修正者は、エデ
ィタ5のソースプログラム修正機能を利用し、修正すべ
きソースプログラムを端末装置に呼び出し、修正すべき
個所を選びソースプログラムの修正作業を行なう。修正
が完了すれば、修正者は、エディタ5を終了し、エディ
タ制御部4に対しソースプログラム修正完了の情報を入
力する。その情報を受けたエディタ制御部4は、修正さ
れたモジュール名を、受け取った情報の中より検索し、
そのモジュール名を基に、該当するモジュールのモジュ
ール管理テーブル2の検索を行なう。モジュール管理テ
ーブルにモジュールが存在すれば、そのテーブル内の修
正日時およびリビジョンを、受け取った情報によりエデ
ィタ制御部は更新する。テーブルの更新が正常終了すれ
ば、エディタ制御部4は、コンパイル作業を行なうため
に、修正完了をコンパイラ制御部6へ送り、コンパイラ
制御部6の起動を行なう。
There is a source program that needs to be corrected, and the program corrector activates the editor control unit 4,
Try to modify the source program. The activated editor control unit 4 activates the editor 5 in order to modify the source program. The program modifier uses the source program modification function of the editor 5 to call the source program to be modified to the terminal device, selects the location to be modified, and modifies the source program. When the correction is completed, the corrector terminates the editor 5 and inputs the source program correction completion information to the editor control unit 4. Upon receiving the information, the editor control unit 4 searches the received information for the corrected module name,
The module management table 2 of the corresponding module is searched based on the module name. If the module exists in the module management table, the editor control unit updates the modification date and revision in the table with the received information. When the updating of the table is completed normally, the editor control unit 4 sends a completion of correction to the compiler control unit 6 to start the compiler control unit 6 in order to perform the compilation work.

【0010】修正完了の情報を受けたコンパイラ制御部
6は、修正完了情報の中より、コンパイルすべきモジュ
ール名を検索する。検索したモジュール名をもとにコン
パイラはモジュール管理テーブル2の該当するモジュー
ルを検索する。検索したモジュール管理テーブル2内の
コンパイルに必要な情報を取り出し、この情報をもとに
コンパイラ7を起動する。起動されたコンパイラ7は、
渡された情報により、修正されたソースプログラムのオ
ブジェクトプログラムへの翻訳処理を行なう。コンパイ
ラ制御部6では、起動したコンパイラ7が実行中か正常
終了が異常終了かを監視し、コンパイルが正常終了であ
れば、モジュール管理テーブル2内のコンパイル完了日
時およびリビジョンの更新処理を行なう。異常終了であ
れば、プログラム修正者に対し、異常終了の通知を行な
う。正常終了でテーブルの更新処理を終えたコンパイラ
制御部6は、コンパイル処理されたオブジェクトプログ
ラムを使用しているすべてのロードモジュールを再作成
するため、コンパイル完了の情報をリンカ制御部8へ送
り、リンカ制御部8の起動を行なう。
The compiler control unit 6, which has received the information indicating that the modification has been completed, searches the modification completion information for the module name to be compiled. The compiler searches for the corresponding module in the module management table 2 based on the searched module name. The information necessary for compilation in the searched module management table 2 is taken out, and the compiler 7 is started based on this information. The started compiler 7 is
Based on the passed information, the process of translating the modified source program into an object program is performed. The compiler control unit 6 monitors whether the activated compiler 7 is executing or whether the normal termination is abnormal termination, and if the compilation is normally terminated, the compiler control unit 2 updates the compilation completion date and revision in the module management table 2. If it is an abnormal end, the program rectifier is notified of the abnormal end. The compiler control unit 6, which has completed the table update process with normal termination, sends compilation completion information to the linker control unit 8 in order to recreate all load modules that use the compiled object program, and The control unit 8 is activated.

【0011】コンパイル完了の情報を受けたリンカ制御
部8は、コンパイル完了情報の中より、リンク管理テー
ブル情報を取り出し、取り出した情報をもとにリンク管
理テーブル3の検索を行なう。検索したリンク管理テー
ブル3の中より、リンクすべきロードモジュール名を検
索するために、ロードモジュール管理テーブル情報を取
り出す。取り出したロードモジュール管理テーブル情報
をもとにロードモジュール管理テーブルを検索する。検
索したロードモジュール管理テーブルの情報の中よりリ
ンクに必要な情報を取り出す。取り出したリンク情報を
もとに、リンカ制御部8は、ロードモジュールの作成を
行なうために、リンカ9の起動を行なう。起動されたリ
ンカ9は、リンク情報をもとに、ロードモジュールの作
成を行なう。リンカ制御部8では、リンカ9が正常終了
か異常終了かを監視し、リンカ9が正常であれば、ロー
ドモジュール管理テーブル1内の作成日、リビジョンの
更新処理を行なう。異常終了であればプログラム修正者
に対し異常終了の通知を行なう。リンカ9が正常終了し
ロードモジュール管理テーブル1の更新処理が正常終了
すれば、リンカ制御部8は先に取り出しているリンク管
理テーブル3より次にリンクすべきロードモジュールの
ロードモジュール管理テーブル1を取り出し、ロードモ
ジュール管理テーブル1を検索する。検索したロードモ
ジュール管理テーブル1よりリンクに必要な情報を取り
出し、リンカ9を起動する。リンカ9が正常終了すれ
ば、ロードモジュール管理テーブル1内の情報の更新処
理を行なう。リンク管理テーブル3上にリンクすべきロ
ードモジュール管理テーブル1名がなくなるまで行な
う。リンクすべきロードモジュールがなくなればリンカ
制御部8はプログラム修正者に対し正常終了の通知を行
ない、処理を終了する。
The linker control unit 8 which has received the information indicating that the compilation is completed extracts the link management table information from the compilation completion information, and searches the link management table 3 based on the extracted information. From the searched link management table 3, the load module management table information is retrieved in order to search the load module name to be linked. The load module management table is searched based on the retrieved load module management table information. The information required for linking is retrieved from the retrieved load module management table information. Based on the extracted link information, the linker control unit 8 activates the linker 9 to create a load module. The activated linker 9 creates a load module based on the link information. The linker control unit 8 monitors whether the linker 9 normally ends or abnormally ends, and if the linker 9 is normal, updates the creation date and revision in the load module management table 1. If it is an abnormal end, the program modifier is notified of the abnormal end. When the linker 9 ends normally and the update processing of the load module management table 1 ends normally, the linker control unit 8 extracts the load module management table 1 of the load module to be linked next from the link management table 3 previously extracted. , The load module management table 1 is searched. Information necessary for linking is retrieved from the retrieved load module management table 1 and the linker 9 is activated. If the linker 9 ends normally, the information in the load module management table 1 is updated. The process is repeated until there is one load module management table to be linked on the link management table 3. When there is no load module to be linked, the linker control unit 8 notifies the program rectifier of normal termination and terminates the processing.

【0012】[0012]

【発明の効果】以上説明したように、本発明は、プログ
ラム修正者が、1つのモジュールを修正したときに、修
正したモジュールの翻訳,修正対象となったモジュール
を使用し、動いている、プログラムの再リンクを行ない
新しいロードモジュールを作成するまてをすべて自動で
行なうことにより、モジュールの修正があったにもかか
わらず、ロードモジュールの作成を忘れた場合に、修正
前のモジュールが動き不正に処理をすることを防ぐとい
う効果を奏する。
As described above, according to the present invention, when a program revamper modifies one module, the program is translated by using the translated module of the corrected module and the target module. By automatically re-linking and creating a new load module, if the load module is forgotten to be created despite the modification of the module, the module before the modification does not work properly. This has the effect of preventing processing.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 ロードモジュール管理テーブル 2 モジュール管理テーブル 3 リンク管理テーブル 4 エディタ制御部 5 エディタ 6 コンパイラ制御部 7 コンパイラ 8 リンカ制御部 9 リンカ 10 プログラムソースファイル 11 オブジェクトソースファイル 12 ロードモジュールファイル 1 load module management table 2 module management table 3 link management table 4 editor control unit 5 editor 6 compiler control unit 7 compiler 8 linker control unit 9 linker 10 program source file 11 object source file 12 load module file

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プログラムの実行単位であるロードモジ
ュールの作成日時と、ロードモジュールを構成している
全モジュールを登録されているロードモジュール管理テ
ーブルと、プログラムを構成するモジュールの修正日
時,コンパイル日時,リビジョンを登録されているモジ
ュール管理テーブルと、モジュールがどのロードモジュ
ールを構成しているかを登録されているリンク管理テー
ブルと、エディタの起動を行なうエディタ制御部と、ソ
ースプログラムをオブジェクトプログラムに翻訳するコ
ンパイラを起動し、終了状態を監視する機能を持つコン
パイラ制御部と、オブジェクトプログラムを結合しロー
ドモジュールを作成するリンカを起動し、終了状態を監
視する機能を持つリンカ制御部とを使用し、プログラム
修正者がモジュールの修正を行なった場合に、前記コン
パイラ制御部はコンパイラを起動しコンパイルが正常終
了すれば、前記リンカ制御部へ制御が渡され前記リンカ
制御部は、コンパイルされたモジュールがどのロードモ
ジュールを構成しているかを前記リンク管理テーブルよ
り検索し、前記リンカの起動を行ない、リンカ制御部は
前記リンクの終了状態を監視し正常終了すれば前記モジ
ュール管理テーブル,リンク管理テーブル,ロードモジ
ュール管理テーブルの更新処理を行なうことを特徴とす
るプログラムリビジョン管理方法。
1. A creation date and time of a load module which is an execution unit of a program, a load module management table in which all modules constituting the load module are registered, a modification date and time and a compilation date and time of modules constituting the program, A module management table in which a revision is registered, a link management table in which which load module the module is configured in, a editor control unit that starts an editor, and a compiler that translates a source program into an object program Modify the program by using the compiler control unit that has the function of invoking the program and monitoring the end status, and the linker control unit that has the function of starting the linker that combines the object programs and creates the load module and monitoring the end status. Who is the module When the modification is performed, the compiler control unit starts the compiler, and if the compilation is normally completed, the control is passed to the linker control unit, and the linker control unit determines which load module is the compiled module. Whether or not the link management table is searched, the linker is started, and the linker control unit monitors the end state of the link and, if the link ends normally, updates the module management table, the link management table, and the load module management table. Program revision management method characterized by performing.
JP2495692A 1992-02-12 1992-02-12 Program revision managing method Withdrawn JPH05224910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2495692A JPH05224910A (en) 1992-02-12 1992-02-12 Program revision managing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2495692A JPH05224910A (en) 1992-02-12 1992-02-12 Program revision managing method

Publications (1)

Publication Number Publication Date
JPH05224910A true JPH05224910A (en) 1993-09-03

Family

ID=12152442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2495692A Withdrawn JPH05224910A (en) 1992-02-12 1992-02-12 Program revision managing method

Country Status (1)

Country Link
JP (1) JPH05224910A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5989660A (en) * 1995-09-18 1999-11-23 Toray Industries, Inc. Base fabric for air bags, a process for producing it and an air bag comprising it

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5989660A (en) * 1995-09-18 1999-11-23 Toray Industries, Inc. Base fabric for air bags, a process for producing it and an air bag comprising it
US6291040B1 (en) 1995-09-18 2001-09-18 Toray Industries, Inc. Base fabric for air bags, a process for producing it and an air bag comprising it

Similar Documents

Publication Publication Date Title
US5694540A (en) Automated software regression test and compilation system
US5956513A (en) System and method for automated software build control
JP4828271B2 (en) Software generation apparatus for multiple OS versions and software generation support program for multiple OS versions
CN107491390A (en) The method and device of replacement test environment configuration information
CN104391717A (en) Method for dynamically updating code during debugging
CN111580813A (en) Automatic management method for Java class hot update
JP2007102625A (en) Method and device for updating control program of nc machine tool
US7861236B2 (en) System and method for version control for software development
JPH05224910A (en) Program revision managing method
US20150033213A1 (en) Compiling method, storage medium and compiling apparatus
US20030220939A1 (en) Information processing system, information processing method, and information processing program
JPH07311679A (en) Program generation system
JP2006318197A (en) Controller support device and program
JPH09218789A (en) Division compiling system
JP2000163109A (en) Ladder programming device and its method
JPH07146787A (en) Method for retrieving influence program
JPH0375947A (en) Access control system for host cooperation system
JPS61147336A (en) Generation management system of load module
JPH06110664A (en) Automatic link system for sub-routine use program
CN117573194A (en) Method and system for adding Git information to Linux C
JP2907124B2 (en) Automatic identification of code system during file transfer of source unit
JPH09265385A (en) Software consistency management method
CN113849412A (en) Vehicle electronic automatic test method, device, system and medium
JPH0695868A (en) Software management system
JPH0314144A (en) Rerun processing system for user program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518