JPH0259932A - Error information file forming/updating system - Google Patents
Error information file forming/updating systemInfo
- Publication number
- JPH0259932A JPH0259932A JP63211944A JP21194488A JPH0259932A JP H0259932 A JPH0259932 A JP H0259932A JP 63211944 A JP63211944 A JP 63211944A JP 21194488 A JP21194488 A JP 21194488A JP H0259932 A JPH0259932 A JP H0259932A
- Authority
- JP
- Japan
- Prior art keywords
- error information
- program unit
- file
- information file
- 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
Links
- 230000010365 information processing Effects 0.000 claims abstract description 24
- 238000000034 method Methods 0.000 claims description 13
- 230000015572 biosynthetic process Effects 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 2
Landscapes
- Debugging And Monitoring (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は電子計算機システムのコンパイラにおいてエラ
ー情報の処理を行うためのエラー情報ファイル作成・更
新方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an error information file creation/update method for processing error information in a compiler of an electronic computer system.
−Sに、コンパイラはプログラム単位毎に原始プログラ
ムからオブジェクトファイルを生成すると共に、コンパ
イルの途中でエラーを検出した際に、エラーの検出され
た原始プログラム上の行番号およびエラー・メツセージ
等のエラー情報をコンパイルの度に出力するようになっ
ている。-S, the compiler generates an object file from the source program for each program unit, and when an error is detected during compilation, error information such as the line number and error message in the source program where the error was detected. is output every time it is compiled.
そして、エラーの検出された原始プログラムは、出力さ
れたエラー情報に基づいてデバッグが行われ、再びコン
パイルが行われる。なお、エラーの程度によっては、完
全なプログラムになるまでにこれらのデバッグ、再コン
パイルが何度か繰り返されることもある。The source program in which an error has been detected is debugged based on the output error information and compiled again. Note that depending on the degree of error, these debugging and recompilation steps may be repeated several times until the program is complete.
〔発明が解決しようとする課題)
ところで、一連の業務プログラムは一般に複数のプログ
ラム単位から構成されるものであり、上述した従来のコ
ンパイラにあっては、各プログラム単位は個別にコンパ
イルされると共に、個別にエラー情報が出力されるため
、プログラム単位の数が多くなるとデバッグおよび再コ
ンパイルを繰り返すに従って最新のエラー情報を管理し
捜し出すのが困難となる欠点があった。[Problem to be Solved by the Invention] By the way, a series of business programs is generally composed of a plurality of program units, and in the conventional compiler described above, each program unit is compiled individually, and Since error information is output individually, there is a drawback that when the number of program units increases, it becomes difficult to manage and find the latest error information as debugging and recompilation are repeated.
本発明は上記の点に鑑み提案されたものであり、その目
的とするところは、複数のプログラム単位を含む原始プ
ログラムに対応する最新のエラー情報を一括に管理して
おくことのできるエラー情報ファイル作成・更新方式を
提供することにある。The present invention has been proposed in view of the above points, and its purpose is to provide an error information file that can collectively manage the latest error information corresponding to a source program including multiple program units. The purpose is to provide a creation/update method.
本発明は上記の目的を達成するため、原始プログラムか
らプログラム単位毎にオブジェクトファイルを生成する
コンパイラにおけるエラー情報の処理方式において、
コンパイルする原始プログラムに対応するエラー情報フ
ァイルが既に存在するか否かに応じて作成モードと更新
モードとを決定するエラー情報処理決定手段と、
プログラム単位毎にコンパイルを行うと共にエラーを検
出した際にプログラム単位名を含むエラー情報を作業領
域に格納するプログラム単位コンパイル手段と、
前記エラー情報処理決定手段の決定が作成モードの場合
には前記作業領域の内容をエラー情報ファイルに出力し
、更新モードの場合には該当するプログラム単位のエラ
ー情報を前記エラー情報ファイル中で検索して前記作業
令頁域の内容と置換するエラー情報処理手段とを備える
ようにしている。In order to achieve the above object, the present invention has a method for processing error information in a compiler that generates an object file for each program unit from a source program. an error information processing determining means for determining a creation mode and an update mode accordingly; and a program unit compiling means for compiling each program unit and storing error information including a program unit name in a work area when an error is detected. , If the error information processing determining means is in the creation mode, the contents of the work area are output to the error information file, and in the update mode, the error information of the corresponding program unit is searched in the error information file. and error information processing means for replacing the contents of the work command page area with the contents of the work order page area.
本発明のエラー情報ファイル作成・更新方式にあっては
、コンパイルする原始プログラムに対応するエラー情報
ファイルが既に存在するか否かに応じてエラー情報処理
決定手段が作成モードと更新モードとを決定し、プログ
ラム単位コンパイル手段がプログラム単位毎にコンパイ
ルを行うと共にエラーを検出した際にプログラム単位名
を含むエラー情報を作業領域に格納し、エラー情報処理
手段が、前記エラー情報処理決定手段の決定が作成モー
ドの場合には前記作業領域の内容をエラー情報ファイル
に出力し、更新モードの場合には該当するプログラム単
位のエラー情報を前記エラー情報ファイル中で検索して
前記作業領域の内容と置換する。In the error information file creation/update method of the present invention, the error information processing determining means determines the creation mode and update mode depending on whether or not an error information file corresponding to the source program to be compiled already exists. , the program unit compiling means compiles each program unit and stores error information including the program unit name in a work area when an error is detected, and the error information processing means creates the error information determined by the error information processing determining means. In the case of the mode, the contents of the work area are output to the error information file, and in the case of the update mode, the error information of the corresponding program unit is searched for in the error information file and replaced with the contents of the work area.
〔実施例] 以下、本発明の実施例につき凹面を参照して説明する。〔Example] Hereinafter, embodiments of the present invention will be described with reference to a concave surface.
第1図は本発明のエラー情報ファイル作成・更新方式の
一実施例を示す構成図である。第1図において、本実施
例は、コンパイルの対象となZrN始プログラム1と、
原始プログラム】ムこ対してプログラム単位毎にコンパ
イルおよびエラー情報処理を行うコンパイラ2と、エラ
ー情報処理の過程で利用する処理フラグ3および作業領
域4と、コンパイルの結果を格納するオブジェクトファ
イル5と、最新のエラー情報を格納するエラー情報ファ
イル6とから構成されている。また、コンパイラ2は、
エラー情報処理決定手段21と、プログラム単位コンパ
イル手段22と、エラー情報処理手段23とから構成さ
れ、プログラム単位コンパイル手段22はエラー情報格
納手段221を含み、エラー情報処理手段231よエラ
ー情報ファイル作成手段231とエラー情報ファイル更
新手段232とを含んでいる。なお、各部の機能は次の
通りである。FIG. 1 is a block diagram showing an embodiment of the error information file creation/update method of the present invention. In FIG. 1, this embodiment has a ZrN starting program 1 to be compiled,
A compiler 2 that compiles and processes error information for each program unit for the original program, a processing flag 3 and a work area 4 used in the error information processing process, and an object file 5 that stores the compilation results. The error information file 6 stores the latest error information. In addition, compiler 2
It is composed of an error information processing determining means 21, a program unit compiling means 22, and an error information processing means 23. The program unit compiling means 22 includes an error information storage means 221, and the error information processing means 231 and error information file creation means. 231 and error information file updating means 232. The functions of each part are as follows.
エラー情報処理決定手段21;コンパイルする原始プロ
グラムlに対応するエラー情報ファイル6が既に存在す
るか否かに応じて作成モードと更新モードとを決定し、
処理フラグ3を設定する機能。Error information processing determining means 21; determines a creation mode and an update mode depending on whether or not an error information file 6 corresponding to the source program l to be compiled already exists;
Function to set processing flag 3.
プログラム単位コンパイル手段221プログラム単位毎
にコンパイルを行うと共に、エラーを検出した際にプロ
グラム単位名を含むエラー情報をエラー情報格納手段2
21により作業領域4に格納する機能。Program unit compiling means 221 compiles each program unit, and when an error is detected, error information including the program unit name is stored in the error information storage means 2
Function to store in work area 4 by 21.
エラー情報処理手段23;エラー情報処理決定手段21
の決定を示す処理フラグ3の値が作成モードの場合には
エラー情報ファイル作成手段231により作業領域4の
内容をエラー情報ファイル6に出力し、更新モードの場
合にはエラー情報ファイル更新手段232により該当す
るプログラム単位のエラー情報をエラー情報ファイル6
中で検索して作業領域4の内容と置換する機能。Error information processing means 23; error information processing determining means 21
If the value of the processing flag 3 indicating the determination is in the creation mode, the error information file creation means 231 outputs the contents of the work area 4 to the error information file 6, and in the case of the update mode, the error information file updating means 232 outputs the contents of the work area 4. Error information for each program is stored in error information file 6.
A function to search inside and replace with the contents of work area 4.
以下、上記の実施例の動作を説明する。The operation of the above embodiment will be explained below.
コンパイラ2が起動されると、先ず、エラー情報処理決
定手段21はコンパイルする原始プログラムlに対応す
るエラー情報ファイル6が既に存在するか否かを検査し
、存在しなければ処理フラグ3を作成モードに設定し、
存在すれば処理フラグ3を更新モードに設定して、プロ
グラム単位コンパイル手段22に制御を移す。When the compiler 2 is started, the error information processing determining means 21 first checks whether the error information file 6 corresponding to the source program l to be compiled already exists, and if it does not exist, sets the processing flag 3 to the creation mode. Set to
If it exists, the processing flag 3 is set to update mode and control is transferred to the program unit compiling means 22.
プログラム単位コンパイル手段22は作業領域4を初期
化し、その後、プログラム単位のコンパイルを行い、そ
の過程でエラーを検出するとエラー情報格納手段221
を呼び出す。エラー情報格納手段221はエラーを検出
したファイル名、プログラム単位名2行番号、エラーメ
ツセージ等を含むエラー情報を作業領域4に格納し、呼
び出し側に制御を移す。そして、プログラム単位コンパ
イル手段22はlプログラム単位のコンパイルが終了す
るとエラー情報処理手段23に制御′nを移す。The program unit compiling means 22 initializes the work area 4 and then compiles the program unit, and if an error is detected in the process, the error information storage means 221
call. The error information storage means 221 stores error information including the file name in which the error was detected, program unit name, line number, error message, etc. in the work area 4, and transfers control to the calling side. The program unit compiling means 22 transfers control 'n to the error information processing means 23 when the compilation of one program unit is completed.
エラー情報処理手段23は処理フラグ3を検査し、作成
モードならばエラー情報ファイル作成手段231に制御
を移し、更新モードならばエラー情報ファイル更新手段
232に制御を移す。The error information processing means 23 checks the processing flag 3, and if it is in the creation mode, it transfers control to the error information file creation means 231, and if it is in the update mode, it transfers control to the error information file updating means 232.
作成モードの場合、エラー情報ファイル作成手段231
は作業領域4の内容をエラー情報ファイル6へ出力し、
呼び出し側に制御を移す。また、更新モードの場合、エ
ラー情報ファイル更新手段232はプログラム単位コン
パイル手段22がコンパイルを行ったプログラム単位名
を含むエラー情報をエラー情報ファイル6の中で検索し
、該当するエラー情報と作業領域4の内容とを置換して
、呼び出し側に制御を移す。In the case of creation mode, error information file creation means 231
outputs the contents of work area 4 to error information file 6,
Transfer control to the caller. In the case of the update mode, the error information file updating means 232 searches the error information file 6 for error information including the program unit name compiled by the program unit compiling means 22, and searches the error information file 6 for error information including the name of the program unit compiled by the program unit compiling means 22, and searches for the error information and the work area 4. and transfers control to the caller.
しかして、コンパイラ2は原始プログラム1中にコンパ
イルすべきプログラム単位がなくなるまでプログラム単
位コンパイル手段22の実行とエラー情報処理手段23
の実行とを繰り返し、コンパイルすべきプログラム単位
がなくなった時点で処理を終了する。Thus, the compiler 2 executes the program unit compiling means 22 and the error information processing means 23 until there are no more program units to be compiled in the source program 1.
The process is repeated until there are no more program units to compile.
〔発明の効果]
以上説明したように本発明のエラー情報ファイル作成・
更新方式にあっては、最初のコンパイル時にエラー情報
ファイルの作成を行い、デバ、7グ後の再コンパイル時
にプログラム単位毎にエラー情報ファイルの更新を行う
ため、常に最新のエラー情報が1つのエラー情報ファイ
ルから得られ、デバッグが容易になる効果がある。また
、エラー情報の格納に必要なファイル容量が節約できる
効果もある。[Effect of the invention] As explained above, the error information file creation and
In the update method, an error information file is created at the first compilation, and the error information file is updated for each program unit when recompiling after debugging or 7-gradation, so the latest error information is always one error. This can be obtained from the information file and has the effect of making debugging easier. It also has the effect of saving the file capacity required to store error information.
第1図は本発明のエラー情報ファイル作成・更新方式の
一実施例を示す構成図である。
図において、
1・・・・・・・・・原始プログラム
2・・・・・・・・・コンパイラ
21・・・・・・エラー情報処理決定手段22・・・・
・・プログラム単位コンパイル手段221・・・エラー
情報格納手段
23・・・・・・エラー情報処理手段
231・・・エラー情報ファイル作成手段232・・・
エラー情報ファイル更新手段3・・・・・・・・・処理
フラグ
4・・・・・・・・・作業領域FIG. 1 is a block diagram showing an embodiment of the error information file creation/update method of the present invention. In the figure, 1... Source program 2... Compiler 21... Error information processing determining means 22...
...Program unit compiling means 221...Error information storage means 23...Error information processing means 231...Error information file creation means 232...
Error information file update means 3...Processing flag 4...Work area
Claims (1)
ァイルを生成するコンパイラにおけるエラー情報の処理
方式において、 コンパイルする原始プログラムに対応するエラー情報フ
ァイルが既に存在するか否かに応じて作成モードと更新
モードとを決定するエラー情報処理決定手段と、 プログラム単位毎にコンパイルを行うと共にエラーを検
出した際にプログラム単位名を含むエラー情報を作業領
域に格納するプログラム単位コンパイル手段と、 前記エラー情報処理決定手段の決定が作成モードの場合
には前記作業領域の内容をエラー情報ファイルに出力し
、更新モードの場合には該当するプログラム単位のエラ
ー情報を前記エラー情報ファイル中で検索して前記作業
領域の内容と置換するエラー情報処理手段とを備えたこ
とを特徴とするエラー情報ファイル作成・更新方式。[Claims] In a method for processing error information in a compiler that generates an object file for each program unit from a source program, the creation mode is set depending on whether or not an error information file corresponding to the source program to be compiled already exists. an error information processing determining means for determining an update mode; a program unit compiling means for compiling each program unit and storing error information including a program unit name in a work area when an error is detected; and the error information processing. When the determining means is in creation mode, the contents of the work area are output to the error information file, and when in update mode, the error information of the corresponding program unit is searched in the error information file and outputted to the work area. An error information file creation/update method characterized by comprising an error information processing means for replacing the contents of the error information file.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63211944A JPH0259932A (en) | 1988-08-26 | 1988-08-26 | Error information file forming/updating system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63211944A JPH0259932A (en) | 1988-08-26 | 1988-08-26 | Error information file forming/updating system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0259932A true JPH0259932A (en) | 1990-02-28 |
Family
ID=16614279
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63211944A Pending JPH0259932A (en) | 1988-08-26 | 1988-08-26 | Error information file forming/updating system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0259932A (en) |
-
1988
- 1988-08-26 JP JP63211944A patent/JPH0259932A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4410940A (en) | Transfer of control method and means among hierarchical cooperating sequential processes | |
| US6915452B2 (en) | Method, system and program products for operationally migrating a cluster through emulation | |
| EP0933702A2 (en) | Language processing method and language processing system improving use efficiency of cache memory | |
| JPH0259932A (en) | Error information file forming/updating system | |
| JPH01240934A (en) | Automatic re-compiling method | |
| JPS61147336A (en) | Generation management system of load module | |
| JPH05297911A (en) | Sequence control circuit for sequence controller | |
| JPH0667887A (en) | Information processor | |
| JPH04287134A (en) | Simplified trace information acquisition system | |
| JP3179076B2 (en) | Automatic source program generation from flowchart | |
| JP2669148B2 (en) | Job control language creation method | |
| JPS6310239A (en) | High-level language patch generation method | |
| JP2655608B2 (en) | Program source copy processing method | |
| JPH04153737A (en) | Output system for compile updating information | |
| JPH0477840A (en) | Collection system for fault analysis system | |
| JPH05143422A (en) | Updated journal managing system | |
| JPH0566949A (en) | Calling system for function definition compiled code | |
| JPH06175862A (en) | Electronic computer | |
| JPS62216037A (en) | Message managing system using source library | |
| JPH02197903A (en) | Programmable controller | |
| JPH02196330A (en) | Computer system | |
| JPH01188957A (en) | Program exception processing system | |
| JPH0675757A (en) | Virtual space resident program link method | |
| JPH01188956A (en) | Program exception processing system | |
| JPH0388040A (en) | Compile list output system |