JPH03230228A - Program error output method - Google Patents

Program error output method

Info

Publication number
JPH03230228A
JPH03230228A JP2025026A JP2502690A JPH03230228A JP H03230228 A JPH03230228 A JP H03230228A JP 2025026 A JP2025026 A JP 2025026A JP 2502690 A JP2502690 A JP 2502690A JP H03230228 A JPH03230228 A JP H03230228A
Authority
JP
Japan
Prior art keywords
error
output
error state
subfile
record
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
JP2025026A
Other languages
Japanese (ja)
Inventor
Hisanori Takahashi
高橋 久則
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 JP2025026A priority Critical patent/JPH03230228A/en
Publication of JPH03230228A publication Critical patent/JPH03230228A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は計算機システムにおけるコン・臂イラ。[Detailed description of the invention] [Industrial application field] The present invention relates to computer systems.

アセンブラ等の翻訳プログラムに関し、特にプログラム
エラーの出力方式に関する。
This field relates to translation programs such as assemblers, and particularly to output methods for program errors.

[従来の技術] 高級言語で記述されたコンビーータデロダラム(以下、
ソースプログラムという)は、コンノfイラ、アセンブ
ラ等の翻訳プログラムを用いて機械語(以下、オツゾエ
クトデログラムという)に翻訳してから実行される。
[Prior art] Combita dero dalam (hereinafter referred to as
The source program is translated into machine language (hereinafter referred to as an ectoderogram) using a translation program such as a computer programmer or an assembler before being executed.

従来、この種の翻訳プログラムによってソースプログラ
ムからオブジェクトプログラムへ翻訳する際に発見され
た言語エラーおよび文法エラーは。
Traditionally, language and syntax errors are discovered when translating a source program into an object program using this type of translation program.

コン/母イルリストとしてソースイメージ、!: −緒
に印刷出力される。
Source image as Con/Mother Illist,! : -Printed together.

[発明が解決しようとする課題] しかしながら、上記従来のプログラムエラーの出力方式
では、コン・fイルリストが出力されるまではエラーの
有無やエラーの発生箇所が分からないために、すぐにソ
ースプログラムを修正する作業ができず、時間の無駄が
あった。また、コンノ々イルリストが出力されても、画
面とコンノセイルリストの両方を見比べながら画面エデ
ィタでソースプログラムを修正しなければならず1作業
効率が悪かった。さらに、ときとしては、僅かのエラー
を修正するために膨大な量のコンj4イルリストを出力
する場合もあり、資源的にも無駄が多いという問題があ
っ九。
[Problems to be Solved by the Invention] However, in the conventional program error output method described above, the presence or absence of an error and the location of the error are not known until the compile list is output. I was unable to do the work to correct it, which was a waste of time. Furthermore, even if the control list is output, the source program must be modified using a screen editor while comparing both the screen and the control list, resulting in poor work efficiency. Furthermore, in some cases, a huge amount of compile list is output in order to correct a small error, which is a problem in terms of resources.

本発明はこのような従来の問題を解決するものテアリ、
エラーを発生したソースプロダラム行ノイメージと一緒
に、そのエラー状態を画面表示させることができるプロ
グラムエラーの出力方式を提供することを目的とする。
The present invention solves these conventional problems.
To provide a program error output method capable of displaying the error state on the screen together with an image of the source program line in which the error has occurred.

[!1題を解決するための手段] 上記の目的を達成するために、本発明においては、ソー
スプログラムの誤りを検出し出力するエラー状態出力手
段と、出力されたエラー状態を保持するエラー状轢保持
ファイルを有する翻訳プログラムにおいて、前記エラー
状態保持ファイルに保持されているエラー状態とこのエ
ラー状態が発見されたソースプログラムのソースイメー
ジとを対応づけて出力するエラー状態追加出力手段と、
このエラー状態追加出力手段の出力を格納する出力サブ
ファイルを備えたプログラムエラーの出力方式を提供す
る。
[! Means for Solving Problem 1] In order to achieve the above object, the present invention provides an error state output means for detecting and outputting an error in a source program, and an error state holding means for retaining the output error state. In a translation program having a file, error state addition output means for outputting an error state held in the error state holding file and a source image of a source program in which this error state is found in association with each other;
A program error output method is provided that includes an output subfile for storing the output of this error state additional output means.

[作 用コ したがって、本発明によれば、エラー状態保持ファイル
に保持されているエラー状態は、エラー状態追加出力手
段によってソースプログラムのソースイメージと対応づ
けて出力サブファイルに格納されるので、プログラマの
要求によって前記出力サブファイルを画面に表示するこ
とができ、プログラマはコン2臂イルリストを見ること
なく、ソースプログラムのエラーを修正することができ
るという作用がある。
[Function] Therefore, according to the present invention, the error state held in the error state holding file is stored in the output subfile in association with the source image of the source program by the error state additional output means, so that the error state is stored in the output subfile in association with the source image of the source program. The output subfile can be displayed on the screen upon request, and the programmer can correct errors in the source program without looking at the computer's file list.

[実施例] 以下本発明の実施例を図面によって説明する。[Example] Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の7’aグラムエラーの出力方式の一実
施例における構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the 7'a-gram error output method of the present invention.

第1図において、1はソースプログラムライブラリで、
入力サブファイル11と出力サブファイル12から構成
される。入力サブファイル11にはレコードA1からレ
コードAmまでのm個のレコードで構成されるソースプ
ログラムAが格納されている。それぞれのレコードは行
番号とソースイメージから成り、レコードAi (1≦
l≦1 )の行番号をAll、レコードA1のノースイ
メージをA21のように表す。
In Figure 1, 1 is a source program library;
It is composed of an input subfile 11 and an output subfile 12. The input subfile 11 stores a source program A consisting of m records from record A1 to record Am. Each record consists of a line number and a source image, and record Ai (1≦
The line number of l≦1) is expressed as All, and the north image of record A1 is expressed as A21.

出力サブファイル12はレコードB1からレコードB1
11までのn@のレコードで構成され、以下に説明する
ようにソースイメージまたはエラー状態が格納される。
Output subfile 12 is from record B1 to record B1
It consists of up to 11 n@ records and stores source images or error conditions as described below.

それぞれのレコードは行番号とソースイメージまたはエ
ラー状態から成り(図中の「ソースイメー−)/エラー
状態」は、ソースイメージまたはエラー状態を意味する
)、レコードBユ(l≦j≦n)の行番号をBlj、レ
コードJのソースイメージまたはエラー状態をBJQよ
う九表す。
Each record consists of a line number and a source image or error state (“source image/error state” in the figure means the source image or error state), and the record B (l≦j≦n). The line number is represented by Blj, and the source image or error status of record J is represented by BJQ.

2Fiコン・ザイラで、コンパイル手段21、−’−、
’−状態出力手段22、エラー状態追加出力手段23か
ら構成される。コン/母イル手段21は入力サブファイ
ル11のソースプログラムAIコンノナイルしたオブジ
ェクトプログラムをオブジェクトライブラリ3に、コン
ツマイルリストをレポートファイル4に出力する。エラ
ー状態出力手段22はコンノ量イルエラーが発見きれた
ソース7’oグラムAの行番号とエラー状態とをエラー
状態保持ファイル5へ出力する。エラー状態追加出力手
段23はエラー状態保持ファイル5に保持されているエ
ラー状態と入力サブファイル11のソースイメージとを
、それぞれの行番号に基づいて対応づけて出力サブファ
イル12へ格納するように動作する。
With the 2Fi compiler, compile means 21, -'-,
'-Consists of status output means 22 and error status additional output means 23. The computer/main file means 21 outputs the object program converted by the source program AI in the input subfile 11 to the object library 3, and outputs the contour list to the report file 4. The error state output means 22 outputs the line number and error state of the source 7'ogram A in which the error has been detected to the error state holding file 5. The error state addition/output means 23 operates to store the error state held in the error state holding file 5 and the source image of the input subfile 11 in the output subfile 12 in association with each other based on their respective line numbers. do.

3はコンパイルされたオブジェクトプログラムを格納す
るオブジェクトライブラリ、4はコンツマイルリストを
格納するレポートファイルである。
3 is an object library that stores compiled object programs, and 4 is a report file that stores a contour list.

5はレコードC1からレコードCpまでのp個のレコー
ドで構成されるエラー状態保持ファイルである。レコー
ドck(1≦に≦p)はエラー状態C2kが発見された
ソースプログラムAの行番号A11(1616m)を保
持する行番号C1kとエラー状態02kから成る。
Reference numeral 5 denotes an error status holding file composed of p records from record C1 to record Cp. The record ck (1≦ and ≦p) consists of a line number C1k holding the line number A11 (1616m) of the source program A where the error condition C2k was found, and an error condition 02k.

第2図は入力す!ファイル11、エラー状態保持ファイ
ル5.および出力サブファイル12のレコードの具体例
を示した図である。同図(&)はレコ−ドA1からレコ
ードA10tでの10個のレコードによって構成される
入力サブファイル11を示している。行番号Allから
All0Kは0010から0100までの番号が与えら
れていて、それぞれの行番号に対応するソースイメージ
はA21からA210に示すものである。
Enter the second figure! File 11, error status retention file 5. 3 is a diagram showing a specific example of records of the output subfile 12. FIG. The figure (&) shows an input subfile 11 consisting of ten records from record A1 to record A10t. The row numbers All to All0K are given numbers from 0010 to 0100, and the source images corresponding to the respective row numbers are shown in A21 to A210.

同図(b)は2個のエラー状態を表すレコードC1、C
2から構成されるエラー状態保持ファイル5である。レ
コードCIは行番号C11O値0070と一致する人力
サブファイル11の行番号A17のソースイメージA2
7に関するエラー状態がC21であることを示すもので
ある。同様に、レコードC2F1行番号C12の値00
80と一致する入力サブファイル11の行番号A18の
ソースイメージA28に関するエラー状態がC22であ
ることを示す。
In the same figure (b), records C1 and C representing two error states are shown.
This is an error status holding file 5 consisting of 2. Record CI is source image A2 of line number A17 of human subfile 11 that matches line number C11O value 0070
This indicates that the error state related to 7 is C21. Similarly, the value of record C2F1 line number C12 is 00
80 indicates that the error status regarding source image A28 of line number A18 of input subfile 11 is C22.

同図(c)は入力サブファイル11とエラー状態保持フ
ァイル5とから作成した出力サブファイル12で、レコ
ードB1からレコードB12までの12個のレコードで
構成されている。以下に、第3図のフローチャートを参
照して、エラー状態追加出力手段23による出力サブフ
ァイル12の作成方法を説明する。
FIG. 2C shows an output subfile 12 created from the input subfile 11 and the error status holding file 5, and is composed of 12 records from record B1 to record B12. The method for creating the output subfile 12 by the error state addition output means 23 will be described below with reference to the flowchart in FIG.

コン/fイラ2によるコンノ臂イル手段21およびエラ
ー状態出力手段22についての機能と動作は公知のもの
である。いま、コンノfイルの結果、第2図(b)のエ
ラー状態保持ファイル5が得られたとする。エラー状態
追加出力手段23はエラー状態保持ファイル5から最初
のレコードC1を読み込み(ステップ231)、行番号
C11O値から最初のエラーが行番号の値0070で発
生していることを知り、入力サブファイル11の行番号
Allから行番号A17tでのレコードA1からレコー
ドA71でを出力サブファイル12のレコードBlから
レコードB7に複写する(ステラ7”232)。
The functions and operations of the controller 21 and the error status output means 22 of the controller 2 are well known. Assume now that the error status holding file 5 shown in FIG. 2(b) is obtained as a result of the configuration file. The error state addition/output means 23 reads the first record C1 from the error state holding file 5 (step 231), learns from the line number C11O value that the first error has occurred at line number value 0070, and converts it to the input subfile. 11, records A1 to A71 from line number All to line number A17t are copied from record B1 to record B7 of output subfile 12 (Stella 7''232).

次に、エラー状態保持ファイル5の行番号C1lに1を
加えた値0071をレコードB8の行番号818の値と
して、エラー状態保持ファイル5のエラー状態C21を
出力サブファイル12のレコードB8のソースイメージ
/エラー状態B28へ複写する(ステップ233)。
Next, set the value 0071 obtained by adding 1 to the line number C1l of the error state holding file 5 as the value of the line number 818 of the record B8, and output the error state C21 of the error state holding file 5 as the source image of the record B8 of the subfile 12. / Copy to error state B28 (step 233).

次に、ステップ231へ戻り、エラー状態保持ファイル
5から次のレコードC2を読み込み5行番号C12の値
から次のエラーが行番号の値0080で発生しているこ
とを知り、入力サブファイル11の行番号A18のレコ
ードA8を出力サブファイル12のレコードB9に複写
する(ステップ232)。
Next, the process returns to step 231, reads the next record C2 from the error status holding file 5, and learns from the value of line number C12 that the next error has occurred at line number value 0080. Record A8 with line number A18 is copied to record B9 of output subfile 12 (step 232).

次に、エラー状態保持ファイル5の行番号C12に1を
加えた値0081をレコード810の行番号B110の
値として、エラー状態保持ファイル5のエラー状態C2
2を出力サブファイル12のレコード810のソースイ
メージ/エラー状態B210へ複写する(ステップ23
3)。
Next, set the value 0081 obtained by adding 1 to the line number C12 of the error state holding file 5 as the value of the line number B110 of the record 810, and set the error state C2 of the error state holding file 5 as the value of the line number B110 of the record 810.
2 to the source image/error state B 210 of record 810 of output subfile 12 (step 23
3).

次に、ステップ231へ戻ってエラー状態保持ファイル
5のレコードがすべて処理されたので、ステップ234
へ制御が移り、まだ出力サブファイル12へ複写されて
いない入力サブファイル11の残りのレコードA9.A
10を出力サブファイル12のレコードBll、B12
へ複写して(ステップ234)終了する。
Next, the process returns to step 231 and all records in the error status holding file 5 have been processed, so step 234
Control is transferred to the remaining records A9. of the input subfile 11 that have not yet been copied to the output subfile 12. A
Output 10 Records Bll, B12 of subfile 12
(step 234) and ends the process.

このように、ソースプログラムライブラリ1上に、ソー
スプログラムAのソースイメージとエラー状態とが行番
号順に並んだ出力サブファイル12が作られるので、画
面エディタによって出力サブファイル12を参照して、
容易にソースプログラムのエラー状態を訂正することが
できるという利点を有する。
In this way, the output subfile 12 in which the source image and error status of the source program A are arranged in line number order is created on the source program library 1, so the output subfile 12 is referred to by the screen editor, and
This has the advantage that error conditions in the source program can be easily corrected.

[発明の効果] 本発明によれば、コンパイルの終了後直ちにソースプロ
グラムとエラー状態とを一面に表示させることができる
ので、コンパイルリストがプリンタから出力されるのを
待たずに、ソースプログラムを修正することができ、プ
ログラムの生産性を高めることができるという効果を有
する。
[Effects of the Invention] According to the present invention, the source program and error status can be displayed on one screen immediately after compilation is completed, so the source program can be modified without waiting for the compilation list to be output from the printer. This has the effect of increasing program productivity.

また、コンノやイルリストの出力枚数を大幅に減らすこ
とができるので、省資源化の効果を有する。
Furthermore, the number of output sheets of consoles and file lists can be significantly reduced, resulting in the effect of resource saving.

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

第1図は本発明の!ログラムエラーの出力方式の一実施
例における構成を示すブロック図、第2図は入力サブフ
ァイル、エラー状態保持ファイルおよび出力サブファイ
ルの詳細を示す説明図、第3図はフローチャートである
。 1・・・ソースプログラムライブラリー 2・・・コン
パイラ、5・・・エラー状態保持ファイル、12・・・
出力サブファイル、22・・・エラー状態出力手段、2
3・・・エラー状態追加出力手段。
Figure 1 shows the features of the present invention! FIG. 2 is an explanatory diagram showing details of an input subfile, an error status holding file, and an output subfile, and FIG. 3 is a flowchart. 1... Source program library 2... Compiler, 5... Error status holding file, 12...
Output subfile, 22...Error status output means, 2
3...Error status additional output means.

Claims (1)

【特許請求の範囲】[Claims] ソースプログラムの誤りを検出し出力するエラー状態出
力手段と、出力されたエラー状態を保持するエラー状態
保持ファイルを有する翻訳プログラムにおいて、前記エ
ラー状態保持ファイルに保持されているエラー状態とこ
のエラー状態が発見されたソースプログラムのソースイ
メージとを対応づけて出力するエラー状態追加出力手段
と、このエラー状態追加出力手段の出力を格納する出力
サブファイルを備えたことを特徴とするプログラムエラ
ーの出力方式。
In a translation program having an error state output means for detecting and outputting an error in a source program, and an error state holding file for holding the output error state, the error state held in the error state holding file and this error state are A program error output method characterized by comprising: an error state additional output means for outputting a source image of a discovered source program in association with the other; and an output subfile for storing the output of the error state additional output means.
JP2025026A 1990-02-06 1990-02-06 Program error output method Pending JPH03230228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2025026A JPH03230228A (en) 1990-02-06 1990-02-06 Program error output method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2025026A JPH03230228A (en) 1990-02-06 1990-02-06 Program error output method

Publications (1)

Publication Number Publication Date
JPH03230228A true JPH03230228A (en) 1991-10-14

Family

ID=12154404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2025026A Pending JPH03230228A (en) 1990-02-06 1990-02-06 Program error output method

Country Status (1)

Country Link
JP (1) JPH03230228A (en)

Similar Documents

Publication Publication Date Title
JPH01306923A (en) System for connecting different languages
US5379407A (en) Error handling in a state-free system
JPH03230228A (en) Program error output method
JP2000029678A (en) Program language conversion method, conversion device, and recording medium
JPS5922140A (en) Interactive compilation method
JP2001306332A (en) Method for evading excess overhead by using ssa form extended so as to use storage position other than local variable
JPH01205332A (en) Linkage editor system
JPH05143427A (en) Information processing system
JPS62205435A (en) Translating and linking editing device for source program
JPS63291126A (en) System for shortening compile time
CN120276726A (en) Data processing method, device, electronic equipment and readable medium
JPH0944347A (en) Error knowledge base creation device
JPH01121939A (en) Program converting system
JPH01205331A (en) Large-scale program link system
JPH01137334A (en) Argument matching method between different languages
JPS63132340A (en) Execution control system in logical type language
JPH04130535A (en) System for supporting program development
JPS63128438A (en) Checking method for external procedure calling style of compiler
JPH03100730A (en) Method for emergency correction data generation processing with high grade language
JPS62236032A (en) Managing system for change reference of source row of original program
JPS63228341A (en) Program syntax check method
JPH02148220A (en) Selective copying system for program
JPH0212539A (en) Table constitution information acquiring system
JPH02201673A (en) Ccs trace file editing/output system
JPH03156641A (en) Compiling process system