JPH02224136A - Inspection system for compile unit - Google Patents

Inspection system for compile unit

Info

Publication number
JPH02224136A
JPH02224136A JP4575689A JP4575689A JPH02224136A JP H02224136 A JPH02224136 A JP H02224136A JP 4575689 A JP4575689 A JP 4575689A JP 4575689 A JP4575689 A JP 4575689A JP H02224136 A JPH02224136 A JP H02224136A
Authority
JP
Japan
Prior art keywords
translation
information
history information
history
source 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
Application number
JP4575689A
Other languages
Japanese (ja)
Inventor
Kyoko Hanakada
羽中田 恭子
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 JP4575689A priority Critical patent/JPH02224136A/en
Publication of JPH02224136A publication Critical patent/JPH02224136A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To easily decide the consistency of translation information referred in respective compile units by using a linker having a means for inspecting and deciding translation history information. CONSTITUTION:The linker 20 inputs a compile unit 4 constituting a load module 6 and the other compile unit group 5. A translation history information deciding processing means 21 extracts the history information of translation information referred at the time of translation from the translation history information storing areas of respective inputted compile units, and if the same translation information appears in the extracted information, whether the information is the same translation information or not from the history information and outputs the decided result and respective inputted history information to a translation history information list 7. Consequently the consistency of the translation information can be easily decided.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は高級言語で記述された原始プログラムのコンパ
イルユニットの検査方式に関し、特に翻訳時情報の同一
性判定が容易なコンパイルユニットの検査方式に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a method for checking a compilation unit of a source program written in a high-level language, and particularly relates to a method for checking a compilation unit that allows easy determination of the identity of information at the time of translation. It is something.

(従来の技術) 従来、原始プログラムを翻訳して生成されたコンパイル
ユニット中には、翻訳した原始プログラムの改版数や改
版口等の履歴情報が格納されているだけで、原始プログ
ラムがら参照されるその原始プログラムの翻訳に必要な
翻訳時情報(FORTRAN(17)INCLUDE文
、C0BOLのC0PY命令、AdaのU38節等で参
照される+?を報)の翻訳時情報名とその履歴情報は格
納されていなかった。
(Prior art) Conventionally, the compilation unit generated by translating a source program only stores history information such as the number of revisions and the revision start of the translated source program, and it can be referenced from the source program. The translation information name and history information of the translation information (reports +? referenced in FORTRAN (17) INCLUDE statement, C0BOL C0PY instruction, Ada U38 clause, etc.) necessary for the translation of the source program are stored. It wasn't.

(発明が解決しようとする課題) このような従来の方式では、コンパイルユニット中に翻
訳時に参照した翻訳時情報の履歴情報がないために、コ
ンパイルユニットがどの翻訳時情報を参照して生成され
たかの判定は、翻訳を指定した際のリストや翻訳した結
果のリストを参照して行われていた。
(Problem to be Solved by the Invention) In such a conventional method, since there is no history information of the translation time information referred to during translation in the compilation unit, it is difficult to know which translation time information the compilation unit was generated with reference to. The determination was made by referring to the list used when specifying translation and the list of translated results.

このため、同一の翻訳時情報を参照している複数のコン
パイルユニットを結合する場合、その翻訳時情報の同一
性の判定も翻訳を指定した際のリストや翻訳した結果の
リストを比較・参照する方法で行われていた。この方法
は、判定に時間がかかる上に全てのリストを必要とする
という欠点がある。
Therefore, when combining multiple compilation units that refer to the same translation time information, the sameness of the translation time information is determined by comparing and referring to the list used when specifying translation and the list of translated results. It was done in a way. This method has the disadvantage that it takes time to make the determination and requires the entire list.

(課題を解決するための手段) 本発明によるコンパイルユニットの検査方式は、原始プ
ログラムとその履歴情報を入力し、その履歴情報を履歴
情報格納領域に格納し、更に原始プログラム中から参照
するその原始プログラムの翻訳に必要な翻訳時情報を入
力し、その翻訳時情報名と翻訳時情報の履歴情報を履歴
情報格納領域に格納する履歴情報の格納手段と; 前記履歴情報の格納手段で格納された履歴情報をコンパ
イルユニット中に確保した翻訳時履歴情報格納領域に格
納する翻訳履歴情報の設定手段を含むコンパイラと; 前記コンパイルユニット中の翻訳履歴情報格納領域から
翻訳時に参照した各々の翻訳時情報名とその履歴情報を
読み込み、それを翻訳履歴リストに出力するとともにロ
ードモジュール中に同じ翻訳時情報名を参照しているコ
ンパイルユニットがある場合には、同一の翻訳時情報を
参照しているか否かを判定した結果を翻訳履歴リストに
出力する翻訳履歴情報の検査処理手段を含むリンカとを
含む。
(Means for Solving the Problems) The compile unit inspection method according to the present invention inputs a source program and its history information, stores the history information in a history information storage area, and furthermore, the source program is referenced from within the source program. history information storage means for inputting translation time information necessary for program translation, and storing the translation time information name and translation time history information in a history information storage area; a compiler including translation history information setting means for storing history information in a translation history information storage area secured in a compilation unit; and each translation information name referenced during translation from the translation history information storage area in the compilation unit; and its history information and outputs it to the translation history list.If there is a compilation unit that references the same translation time information name in the load module, check whether the same translation time information is referenced or not. and a linker including a translation history information inspection processing means for outputting the results of the determination to the translation history list.

(実施例) 次に本発明の実施例について図面を参照して詳細に説明
する。
(Example) Next, an example of the present invention will be described in detail with reference to the drawings.

第1図は本発明によるコンパイルユニットの検査方式の
一実施例を示す処理構成図である。
FIG. 1 is a processing configuration diagram showing an embodiment of a compile unit checking method according to the present invention.

高級プログラミング言語で記述された原始プログラムフ
ァイル1の原始プログラム1aと原始グログラム履歴情
報1bとをコンパイラ10が入力する。続いて、コンパ
イラ10は、翻訳時に指定されている翻訳時情報ファイ
ル群2の中から原始プログラム1aの中で参照する翻訳
時情報を格納している参照する翻訳時情報ファイル群3
を選択し、各々の翻訳時情報ファイルの翻訳時情報3a
と翻訳時情報の履歴情報3bを入力する。履歴情報の格
納手段11は、入力した原始プログラム履歴情報1bと
各々の翻訳時情報の履歴情報3bを、履歴情報格納領域
10aの形式に変換処理を行い格納する。
A compiler 10 inputs a source program 1a of a source program file 1 written in a high-level programming language and source program history information 1b. Next, the compiler 10 selects a reference translation information file group 3 that stores translation information to be referenced in the source program 1a from among the translation information file group 2 specified at the time of translation.
Select the translation information 3a of each translation information file.
and input the history information 3b of the information at the time of translation. The history information storage means 11 converts the input source program history information 1b and the history information 3b of each translation information into the format of the history information storage area 10a and stores them.

翻訳履歴情報の設定手段12は、コンパイルユニット4
の中に翻訳履歴情報格納領域4aを確保し、そこに履歴
情報格納領域10aの情報を格納する。
The translation history information setting means 12 includes the compile unit 4
A translation history information storage area 4a is secured in the translation history information storage area 4a, and the information of the history information storage area 10a is stored therein.

コンパイラ10は、翻訳履歴情報格納領域4aを含むコ
ンパイルユニット4を出力する。
The compiler 10 outputs a compile unit 4 including a translation history information storage area 4a.

リンカ20は、ロードモジュール6を構成するコンパイ
ルユニット4やその他のコンパイルユニット群5を入力
する。翻訳履歴情報の判定処理手段21は、入力した各
々のコンパイルユニットの翻訳履歴情報格納領域から翻
訳時に参照した翻訳時情報の履歴情報を取り出し、その
中に同じ翻訳時情報名が現れたならば、それが同一の翻
訳時情報か否かを履歴情報から判定し、その判定結果と
入力した各々のB原情報を翻訳履歴情報リストアに出力
する。
The linker 20 inputs the compile unit 4 and other compile unit groups 5 that constitute the load module 6. The translation history information determination processing means 21 extracts the history information of the translation time information referred to during translation from the translation history information storage area of each input compile unit, and if the same translation time information name appears therein, It is determined from the history information whether or not they are the same information at the time of translation, and the determination result and each input B original information are output to the translation history information restore.

第2図は、第1図のコンパイラで入力するFORTRA
N言語で記述された原始プログラムファイル1とその翻
訳で参照する翻訳時情報ファイル群3の一例を示す説明
図である。
Figure 2 shows the FORTRA input to the compiler in Figure 1.
FIG. 2 is an explanatory diagram showing an example of a source program file 1 written in the N language and a group of translation information files 3 referenced in the translation thereof.

コンパイラ10が、原始プログラムファイル1の原始プ
ログラム1aと原始プログラム履歴情報1bを入力する
。コンパイラ10は、入力した原始プログラム1aの翻
訳時情報の参照文200から翻訳時情報名201を収り
出し、翻訳時に指定されている翻訳時情報ファイル群2
からその翻訳時情報が格納されている翻訳時情報30を
選択する。そし、て、その選択した翻訳時情報ファイル
30から翻訳時情報30aと翻訳時情報の履歴情報30
bを入力する。
The compiler 10 inputs the source program 1a of the source program file 1 and the source program history information 1b. The compiler 10 extracts the translation information name 201 from the translation information reference sentence 200 of the input source program 1a, and extracts the translation information file group 2 specified at the time of translation.
The translation time information 30 in which the translation time information is stored is selected from . Then, from the selected translation information file 30, translation information 30a and translation information history information 30
Enter b.

続いて、履歴情報の格納手段11は、翻訳時情報の履歴
情報30bを履歴情報格納領域10aに格納する。コン
パイラ10は、入力した翻訳時情報30a中の翻訳時情
報の参照文210で参照している翻訳時情報32aと翻
訳時情報の履歴情報32bを入力する。翻訳時の履歴情
報32゛bは、履歴情報の格納手段11によって履歴情
報格納領域10aに格納される。
Subsequently, the history information storage means 11 stores the history information 30b of the translation information in the history information storage area 10a. The compiler 10 inputs the translation time information 32a referred to in the translation time information reference sentence 210 in the input translation time information 30a and the translation time information history information 32b. The history information 32'b at the time of translation is stored in the history information storage area 10a by the history information storage means 11.

入力した翻訳時情報に対して、その中で参照している翻
訳時情報がなくなるまでこの処理を繰り返す、また、入
力した翻訳時情報内の翻訳時情報に対する処理が終了す
るとコンパイラ10は、原始プログラム1aの翻訳時情
報の参照文がなくなるまでこの処理を繰り遅し行う。
The compiler 10 repeats this process for the input translation information until there is no more translation information referenced therein, and when the processing for the translation information in the input translation information is completed, the compiler 10 converts the source program This process is delayed until there are no more reference sentences in the translation information of 1a.

第3図には、第1図の履2情報格納領域10aの一格納
例が示されている。即ち、原始グログラム名あるいは翻
訳時情報名、改版数、行数、作成日、最終改版口、翻訳
時情報の履歴情報、原始プログラムの履歴情報が格納さ
れている。
FIG. 3 shows an example of storage in the footwear 2 information storage area 10a of FIG. 1. That is, the source program name or the translation information name, the number of revisions, the number of lines, the date of creation, the last revision, the history information of the translation information, and the history information of the source program are stored.

(発明の効果) 以上説明したように本発明は、高級言語で記述された原
始プログラムのコンパイルユニット中に翻訳時に参照し
た翻訳時情報の履歴情報を付加し、翻訳履歴情報を検査
判定する手段をもつリンカを用いることで、各々のコン
パイルユニット中で参照している翻訳時情報の同一性の
判定が容易に可能となる。
(Effects of the Invention) As explained above, the present invention provides a means for adding history information of translation information referred to during translation into a compilation unit of a source program written in a high-level language, and for inspecting and determining the translation history information. By using a linker with this function, it becomes possible to easily determine the identity of the translation information referenced in each compilation unit.

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

第1図は本発明によるコンパイルユニットの検査方式の
一実施例の処理を示すフロー構成図、第2図はコンパイ
ルが翻訳する原始プログラムおよび翻訳時に参照される
翻訳時情報の一例を示す図、第3図は翻訳時情報の履歴
情報格納例を示す図である。 1・・・原始プログラムファイル、1a・・・原始プロ
グラム、1b・・・原始プログラムの履歴情報、2・・
・翻訳時に指定されている翻訳時情報ファイル群、3・
・・参照する翻訳時情報ファイル、3a・・・翻訳時情
報、3b・・・翻訳時情報の履歴情報、4・・・コンパ
イルユニット、4a・・・翻訳履歴情報格納領域、5・
・・コンパイルユニット群、6・・・ロードモジュール
、7・・・翻訳履歴情報リスト、10・・・コンパイラ
、10a・・・履歴情報格納領域、11・・・履歴情報
の格納手段、12・・・翻訳履歴情報の設定手段、20
・・・リンカ、21・・・翻訳履歴情報の判定処理手段
、30・・・翻訳時情報ファイル、30a・・・翻訳時
情報、30b・・・翻訳時情報の履歴情報、31・・・
翻訳時情報ファイル、31a・・・翻訳時情報、31b
・・・翻訳時情報の履歴情報、32・・・翻訳時情報フ
ァイル、32a・・・翻訳時情報、32b・・・翻訳時
情報の履歴情報、33・・・翻訳時情報ファイル、33
a・・・翻訳時情報、33b・・・翻訳時情報の履歴情
報。
FIG. 1 is a flow diagram showing the processing of an embodiment of the compile unit inspection method according to the present invention; FIG. FIG. 3 is a diagram showing an example of history information storage of translation information. 1... Source program file, 1a... Source program, 1b... History information of source program, 2...
・Translation information files specified at the time of translation, 3.
... Translation time information file to refer to, 3a... Translation time information, 3b... History information of translation time information, 4... Compilation unit, 4a... Translation history information storage area, 5.
... Compile unit group, 6... Load module, 7... Translation history information list, 10... Compiler, 10a... History information storage area, 11... History information storage means, 12...・Translation history information setting means, 20
. . . Linker, 21 . . . Translation history information determination processing means, 30 . . . Translation time information file, 30 a .
Information file at the time of translation, 31a... Information at the time of translation, 31b
...History information of information at the time of translation, 32... Information file at the time of translation, 32a... Information at the time of translation, 32b... History information of information at the time of translation, 33... Information file at the time of translation, 33
a... Information at the time of translation, 33b... History information of the information at the time of translation.

Claims (1)

【特許請求の範囲】 原始プログラムとその履歴情報を入力し、その履歴情報
を履歴情報格納領域に格納し、更に原始プログラム中か
ら参照するその原始プログラムの翻訳に必要な翻訳時情
報を入力し、その翻訳時情報名と翻訳時情報の履歴情報
を履歴情報格納領域に格納する履歴情報の格納手段と; 前記履歴情報の格納手段で格納された履歴情報をコンパ
イルユニット中に確保した翻訳時履歴情報格納領域に格
納する翻訳履歴情報の設定手段を含むコンパイラと; 前記コンパイルユニット中の翻訳履歴情報格納領域から
翻訳時に参照した各々の翻訳時情報名とその履歴情報を
読み込み、それを翻訳履歴リストに出力するとともにロ
ードモジュール中に同じ翻訳時情報名を参照しているコ
ンパイルユニットがある場合には、同一の翻訳時情報を
参照しているか否かを判定した結果を翻訳履歴リストに
出力する翻訳履歴情報の検査処理手段を含むリンカとを
含むことを特徴とするコンパイルユニットの検査方式。
[Claims] Inputting a source program and its history information, storing the history information in a history information storage area, and further inputting translation time information necessary for translating the source program to be referenced from within the source program, history information storage means for storing the translation time information name and the history information of the translation time information in a history information storage area; translation history information that secures the history information stored in the history information storage means in a compile unit; a compiler including means for setting translation history information stored in a storage area; reads each translation information name and its history information referenced during translation from the translation history information storage area in the compilation unit, and stores them in a translation history list; In addition to outputting the translation history, if there is a compilation unit that references the same translation time information name in the load module, the result of determining whether or not the same translation time information is referenced is output to the translation history list. A compile unit inspection method comprising: a linker including an information inspection processing means.
JP4575689A 1989-02-27 1989-02-27 Inspection system for compile unit Pending JPH02224136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4575689A JPH02224136A (en) 1989-02-27 1989-02-27 Inspection system for compile unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4575689A JPH02224136A (en) 1989-02-27 1989-02-27 Inspection system for compile unit

Publications (1)

Publication Number Publication Date
JPH02224136A true JPH02224136A (en) 1990-09-06

Family

ID=12728142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4575689A Pending JPH02224136A (en) 1989-02-27 1989-02-27 Inspection system for compile unit

Country Status (1)

Country Link
JP (1) JPH02224136A (en)

Similar Documents

Publication Publication Date Title
US4949253A (en) Method and apparatus for automatically generating program
JPH11249875A (en) Method for supporting programming and device therefor
JPH02224136A (en) Inspection system for compile unit
JPH01177165A (en) Definition-quotation relation checking system for array
JPH04178829A (en) File definition information editing system in load module
JP2621555B2 (en) Vectorization processing method
JP3584204B2 (en) Automatic source program converter
JPH08194624A (en) Executing form program preparing method
JPH0363838A (en) Software program inspection system
JPH01246633A (en) Check system for compiling unit
JPH05204705A (en) Processing method for detecting undefined parameter
JPH09319591A (en) Parallelizing system for loop having conditional jump out of loop
JPH0736685A (en) Parts processor
JPS63174130A (en) System for detecting value unsettled variable name
JPH0512030A (en) Execution-form program generating system
JPH04312130A (en) Language processing program
JPH02227737A (en) Compiling unit control system
JPH08202747A (en) Circuit synthesizing system
JPH03223926A (en) Device for preventing double registration of program parts
JPH05197529A (en) Link information investigation device and relinkage execution device
JPH02310627A (en) Link method for object program in language processing programming
JPH04149646A (en) Program evolving system applying description of stub parts
JPH03156641A (en) Compiling process system
JPH05108332A (en) Editor
JPH06119203A (en) Debugging line deleting device