JPH0468436A - Automatic compile and link device - Google Patents

Automatic compile and link device

Info

Publication number
JPH0468436A
JPH0468436A JP18376490A JP18376490A JPH0468436A JP H0468436 A JPH0468436 A JP H0468436A JP 18376490 A JP18376490 A JP 18376490A JP 18376490 A JP18376490 A JP 18376490A JP H0468436 A JPH0468436 A JP H0468436A
Authority
JP
Japan
Prior art keywords
routine
processing
source program
tree structure
automatic
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
JP18376490A
Other languages
Japanese (ja)
Inventor
Kozo Masuda
増田 幸蔵
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP18376490A priority Critical patent/JPH0468436A/en
Publication of JPH0468436A publication Critical patent/JPH0468436A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To eliminate a complicated procedure in a compile processing and a link processing by automatically retrieving a routine related to a designated routine and automatically executing the compile processing and the link processing while including the related routine as well. CONSTITUTION:This device is composed of a source program constitution analyzing means 11, tree structure picture display means 12, routine name designating means 13, routine retrieving means 14, automatic compile means 15 and automatic link means 16. A source program is inputted, relation between a main routine and a sub routine is analyzed into tree structure, and the diagram of the tree structure and the names of respective routines are displayed on the screen of a CRT. Then, the displayed routine name is designated and retrieved automatically based on the tree structure. When there is the related routine, the compile processing is executed while including all the related routines, an object module is generated, the link processing is executed and a load module is generated. Thus, the complicated procedure in the processings is eliminated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は電子計算機上でコンパイル処理とリンク処理
を容易に実行する自動コンパイルアントリンク装置に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an automatic compile-ant-link device that easily executes compile processing and link processing on a computer.

〔従来の技術〕[Conventional technology]

第4図は従来のコンパイル処理とリンク処理を示す機能
ブロック図である。
FIG. 4 is a functional block diagram showing conventional compiling processing and linking processing.

図において、(41)はソースプログラム、(42)は
ソースプロクラム(41)を翻訳するためのコンパイル
処理、(43)はコンパイル処理(42)により生成さ
れたオブジェクトモジュール、(44)はオブジェクト
モジュール(43)を連結編集するためのリンク処理、
(45)はリンク処理(4イ)により生成されたロード
モジュールである。
In the figure, (41) is a source program, (42) is a compilation process for translating the source program (41), (43) is an object module generated by the compilation process (42), and (44) is an object module ( 43) Link processing for concatenated editing,
(45) is a load module generated by link processing (4a).

また第5図は第4図の説明として用いるプログラム例の
構成ブロック図を示す。
Further, FIG. 5 shows a configuration block diagram of an example program used to explain FIG. 4.

次に動作について説明する。Next, the operation will be explained.

ソースプログラム(41)からロードモジュール(45
)を生成するには、人手でメインルーチン(51)とサ
ブルーチンB(52)とサブルーチンC(53)とサブ
ルーチンD(54)サブルーチンE(55)を指定して
コンパイル処理(42)を実行し、オブジェクトモジュ
ール(43)を生成する。
From the source program (41) to the load module (45)
), manually specify the main routine (51), subroutine B (52), subroutine C (53), subroutine D (54), and subroutine E (55), and execute the compilation process (42). Generate an object module (43).

次に生成されたオブジェクトモジュール(43)を再び
人手で指定して、リンク処理を実行することによってロ
ードモジュール(45)を生成する。
Next, the generated object module (43) is manually specified again and link processing is executed to generate a load module (45).

〔発明か解決しようとする課題〕[Invention or problem to be solved]

従来のコンパイル処理とリンク処理は以上のように構成
されていたので、コンパイル処理を実行するプログラム
の指定、コンパイル処理を実行するルーチンと関係する
各ルーチンの検索、コンパイル処理完了後にリンク処理
を実行するためのオブジェクトモジュールの指定といっ
た種々の手続きをすへて人手で行わなければならず、手
続きの繁雑さ、入力ミス、入力時間の増大という問題点
かあった。
Conventional compilation processing and linking processing were configured as described above, so it was necessary to specify the program to be compiled, search for each routine related to the routine to be compiled, and execute linking after completion of the compilation processing. Various procedures, such as specifying object modules for the data processing, must be performed manually, resulting in problems such as complicated procedures, input errors, and increased input time.

この発明は上記のような問題点を解決するためになされ
たもので、コンパイル処理とリンク処理を自動的に実行
しロードモジュールを生成することのできる自動コンパ
イルアンドリンク装置を得ることを目的とする。
This invention was made in order to solve the above-mentioned problems, and an object of the present invention is to obtain an automatic compile and link device that can automatically execute compile processing and link processing and generate a load module. .

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

この発明に係る自動コンパイルアンドリンク装置は、ソ
ースプログラム内のメインルーチンとサブルーチンの関
係を解析し、ソースプログラムのツリー構成図とメイン
ルーチンとサブルーチンの各ルーチン名をCRT画面に
表示し、コンパイル処理とリンク処理を実行したいルー
チンをCRT画面等に表示されたルーチン名からキーボ
ード上のカーソル移動キー、又はマウス等の入力装置で
指定し、この指定したルーチンと関係するルーチン名を
自動的に検索し、指定したルーチンと関係するルーチン
を含め自動的にコンパイル処理を実行してオブジェクト
モジュールを生成し、自動的にリンク処理を実行するこ
とによってオブジェクトモジュールからロードモジュー
ルを生成するようにしたものである。
The automatic compile and link device according to the present invention analyzes the relationship between main routines and subroutines in a source program, displays a tree configuration diagram of the source program and the names of the main routines and subroutines on a CRT screen, and performs compilation processing and linking. Specify the routine you want to execute from the routine name displayed on the CRT screen, etc. using the cursor movement keys on the keyboard or an input device such as a mouse, automatically search for routine names related to this specified routine, and execute the specified routine. In this system, an object module is generated by automatically executing a compile process including routines related to the object module, and a load module is generated from the object module by automatically executing a link process.

〔作用〕[Effect]

この発明における自動コンパイルアンドリンク装置は、
コンパイル処理とリンク処理の実行をCRT画面等など
に表示されたルーチン名からキーホード上のカーソル移
動キー又は、マウス等の入力装置を使用して指定するこ
とにより、目的となるルーチンの指定が容易になる。ま
た、その指定したルーチンと関係するルーチンの検索を
自動的に行い、関係するルーチンも含めてコンパイル処
理を自動的に実行することによって入力時間が削減され
、オブジェクトモジュール生成後自動的にリンク処理を
実行し、ロードモジュールを生成することによフてコン
パイル処理とリンク処理における手続きの繁雑さを解消
する。
The automatic compile and link device in this invention is
By specifying the execution of compiling processing and linking processing from the routine name displayed on a CRT screen, etc. using the cursor movement keys on the keyboard or an input device such as a mouse, it becomes easy to specify the target routine. . In addition, input time is reduced by automatically searching for routines related to the specified routine and automatically executing compilation processing including related routines, and linking processing is automatically performed after object module generation. By executing the program and generating a load module, the complexity of compiling and linking processes can be eliminated.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図はこの発明の一実施例である自動コンパイルアン
トリンク装置の機能ブロック図である。
FIG. 1 is a functional block diagram of an automatic compile-and-link device that is an embodiment of the present invention.

図において、(11)はソースプロダラム構成解析手段
、(12)はツリー構造画面表示手段、(13)はルー
チン名指定手段、(14)はルーチン検索手段、(15
)は自動コンパイル手段、(16)は自動リンク手段で
ある。
In the figure, (11) is a source program configuration analysis means, (12) is a tree structure screen display means, (13) is a routine name designation means, (14) is a routine search means, and (15) is a routine name designation means.
) is an automatic compiling means, and (16) is an automatic linking means.

第2図は第1図の自動コンパイルアンドリンク装置の動
作を示すフローチャートである。
FIG. 2 is a flowchart showing the operation of the automatic compiling and linking device of FIG.

第3図は第1図の自動コンパイルアントリンク装置によ
るCRT画面の表示例である。
FIG. 3 is an example of a CRT screen displayed by the automatic compile and link device shown in FIG.

なお各ルーチン名は第5図と同一の構成を持つものとす
る。
It is assumed that each routine name has the same structure as in FIG.

次に第2図に示したフローチャートに従って説明する。Next, the process will be explained according to the flowchart shown in FIG.

初めにステップ21において、ソースプログラムを入力
し、メインルーチンとサブルーチンの関係をツリー構造
に解析する。
First, in step 21, a source program is input and the relationship between main routines and subroutines is analyzed into a tree structure.

次に、この解析したソースプログラムのツリー構造図と
メインルーチンとサブルーチンの各ルーチンの名をCR
T画面上に表示する(ステップ22)。
Next, CR the tree structure diagram of the analyzed source program and the names of the main routines and subroutines.
Display on the T screen (step 22).

ついで、ステップ23において、コンパイル処理とリン
ク処理を実行したいルーチンをキーボードのカーソル移
動キー又はマウス等の入力装置でステップ22で表示さ
れたルーチン名を指定する。
Next, in step 23, the routine name displayed in step 22 is specified using a keyboard cursor movement key or an input device such as a mouse, for which the compiling process and linking process are to be executed.

そしてさらに、この指定したルーチンと関係するルーチ
ンがないかステップ21で解析した結果得られたツリー
構造を基に自動的に検索する(ステップ24)。
Furthermore, a search is automatically made to see if there is a routine related to the designated routine based on the tree structure obtained as a result of the analysis in step 21 (step 24).

関係するルーチンがある・場合、関係する総てのルーチ
ンを含め、コンパイル処理を自動的に実行し、オブジェ
クトモジュールを生成する(ステップ25)。
If there are related routines, a compilation process is automatically executed including all related routines to generate an object module (step 25).

また、関係するルーチンがない場合、指定したルーチン
のみコンパイル処理を実行し、オブジェクトモジュール
を生成する(ステップ26)。
If there is no related routine, compile processing is executed only for the specified routine to generate an object module (step 26).

ステップ25又はステップ26で正常にオブジェクトモ
ジュールが生成された場合、リンク処理実行可能なオブ
ジェクトモジュールとして、リンク処理を実行しロード
モジュールを生成する(ステップ27)。
If the object module is successfully generated in step 25 or step 26, link processing is executed to generate a load module as an object module capable of performing link processing (step 27).

なお、上記実施例ではプログラムのコンパイル処理とリ
ンク処理を実行する場合について説明したか、例えばヘ
ラタフアイルや関数名を持つC言語などのコンパイル処
理やリンク処理に適用しても良く、上記実施例と同様の
効果を奏する。
Note that although the above embodiment describes the case where program compilation processing and linking processing are executed, it may also be applied to compiling processing and linking processing of a C language that has a cluster file or a function name, for example, and may be applied in the same way as the above embodiment. It has the effect of

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

以上の様にこの発明によればキーホード上のカーソル移
動キー又はマウス等の入力装置でCRT画面等に表示さ
れたルーチン名を指定するようにしたので、コンパイル
処理とリンク処理の実行時の入力ミスを大幅に削減可能
となる。
As described above, according to the present invention, the routine name displayed on a CRT screen or the like is specified using the cursor movement keys on the keyboard or an input device such as a mouse, thereby preventing input errors when executing compile processing and link processing. It is possible to significantly reduce the amount.

また、指定したモジュールに関係するモジュールをソー
スプログラムを解析した結果得られたツリー構造から自
動的に検索し、そのモジュールも含めて自動的にコンパ
イル処理を実行し、オブジェクトモジュールを生成する
ので、入力時間や指定ミスの大幅な削減か可能である。
In addition, the module that is related to the specified module is automatically searched from the tree structure obtained as a result of analyzing the source program, and the compilation process is automatically executed including that module to generate an object module. It is possible to significantly reduce time and specification errors.

さらに、正常にオブジェクトモジュールが生成された場
合、自動的にリンク処理を実行し、ロードモジュールを
生成することによってコンパイル処理とリンク処理にお
ける処理手続きの繁雑さを解消できるなどの効果かある
Furthermore, when an object module is successfully generated, link processing is automatically executed and a load module is generated, which has the effect of resolving the complexity of processing procedures in compile processing and link processing.

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

第1図はこの発明の一実施例である自動コンパイルアン
ドリンク装置の機能ブロック図、第2図は第1図の自動
コンパイルアンドリンク装置の動作を示すフローチャー
ト、第3図は第1図の自動コンパイルアンドリンク装置
によるCRTの表示画面図、第4図は従来のコンパイル
処理とリンク処理を示す機能ブロック図、第5図は第4
図のソースプログラムのツリー構造を示す構成ブロック
図である。 図において、(11)はソースプログラム解析手段、(
12)はツリー構造画面表示手段、(13)はルーチン
名指定手段、(14)はルーチン検索手段、(15)は
自動コンパイル手段、(16)は自動リンク手段を示す
。 第1図
FIG. 1 is a functional block diagram of an automatic compiling and linking device which is an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of the automatic compiling and linking device of FIG. 1, and FIG. FIG. 4 is a functional block diagram showing conventional compiling processing and linking processing, and FIG.
FIG. 3 is a configuration block diagram showing a tree structure of the source program shown in the figure. In the figure, (11) is a source program analysis means, (
12) is a tree structure screen display means, (13) is a routine name designation means, (14) is a routine search means, (15) is an automatic compiling means, and (16) is an automatic linking means. Figure 1

Claims (1)

【特許請求の範囲】[Claims] ソースプログラム内のメインルーチンとサブルーチンの
関係をツリー構造に解析するソースプログラム構成解析
手段と、この解析したソースプログラムのツリー構造図
とメインルーチンとサブルーチンの各ルーチン名を含め
CRT画面等などに表示するツリー構造画面表示手段と
、コンパイル処理とリンク処理を実行したいルーチンを
CRT画面等などに表示されたルーチン名からキーボー
ド上のカーソル移動キー又はマウス等の入力装置で指定
するルーチン名指定手段と、指定したルーチンと関係す
るルーチンをソースプログラム構成解析手段から得られ
たツリー構造から得るルーチン検索手段と、指定したル
ーチンと関係するルーチンを含め自動的にコンパイル処
理を実行しオブジェクトモジュールを生成する自動コン
パイル手段と、オブジェクトモジュール生成後自動的に
リンク処理を実行しロードモジュールを生成する自動リ
ンク手段を備えたことを特徴とする自動コンパイルアン
ドリンク装置。
A source program structure analysis means that analyzes the relationship between main routines and subroutines in a source program into a tree structure, and a tree that displays a tree structure diagram of the analyzed source program and a tree including the names of each of the main routines and subroutines on a CRT screen, etc. a structure screen display means, a routine name specifying means for specifying a routine for which compiling processing and linking processing is to be performed from the routine name displayed on a CRT screen etc. using a cursor movement key on a keyboard or an input device such as a mouse; a routine search means for obtaining related routines from the tree structure obtained from the source program structure analysis means; an automatic compiling means for automatically performing compilation processing including the specified routine and related routines to generate an object module; An automatic compiling and linking device characterized by comprising automatic linking means that automatically executes linking processing after module generation to generate a load module.
JP18376490A 1990-07-09 1990-07-09 Automatic compile and link device Pending JPH0468436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18376490A JPH0468436A (en) 1990-07-09 1990-07-09 Automatic compile and link device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18376490A JPH0468436A (en) 1990-07-09 1990-07-09 Automatic compile and link device

Publications (1)

Publication Number Publication Date
JPH0468436A true JPH0468436A (en) 1992-03-04

Family

ID=16141562

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18376490A Pending JPH0468436A (en) 1990-07-09 1990-07-09 Automatic compile and link device

Country Status (1)

Country Link
JP (1) JPH0468436A (en)

Similar Documents

Publication Publication Date Title
EP0785510B1 (en) Program debugging system for debugging a program having a graphical user interface
US7571431B2 (en) Processing macro information and displaying via GUI in different tools
JPS63181033A (en) Automatic program generating system
JPH08202545A (en) Object-oriented system and method for generation of target language code
JP3318051B2 (en) Translation processing method
JP3196675B2 (en) Language processing method
JPH0468436A (en) Automatic compile and link device
JPH06110733A (en) Test case generating device of program
JP2718427B2 (en) Data access method in large-scale knowledge base
JP2942414B2 (en) Virtual database method
JPH06161773A (en) Generating device for parallel processing program
JPH03144832A (en) Symbolic debugging device for precompiler language program
JP3019874B2 (en) Program generation / synthesis apparatus and method
JPH06231181A (en) Distributed database control system
JPH04165533A (en) Data information offering device
JPH11272524A (en) Data converter and storage medium
JPH06236261A (en) Separating system for procedure language program component
JPH06332684A (en) Program correction supporting device
JPH06110750A (en) Automatic generating method for make-file of application program capable of accessing related data base
JPH086782A (en) Maintenance work automation supporting method for program
JPH0250730A (en) Language converting system based upon common machine word
JPH05241798A (en) Lm generating process sytem under library information control
JPH0561687A (en) Processing system for compiler
JPH0267637A (en) Compiling system for program using specified macro
JPH0359726A (en) Program unit batch translation system