JPH0749788A - Compile processing system - Google Patents

Compile processing system

Info

Publication number
JPH0749788A
JPH0749788A JP19380293A JP19380293A JPH0749788A JP H0749788 A JPH0749788 A JP H0749788A JP 19380293 A JP19380293 A JP 19380293A JP 19380293 A JP19380293 A JP 19380293A JP H0749788 A JPH0749788 A JP H0749788A
Authority
JP
Japan
Prior art keywords
option
processing
specified
command
intermediate text
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
JP19380293A
Other languages
Japanese (ja)
Inventor
Yoichi Sato
洋一 佐藤
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
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 Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP19380293A priority Critical patent/JPH0749788A/en
Publication of JPH0749788A publication Critical patent/JPH0749788A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To shorten the time of the compiling work executed by a compiler of a language at the time when dependence relations between modules are distinctly prescribed in this language. CONSTITUTION:A compiler 1 is started by a command string. The compiler 1 checks the presence or the absence of an PE option for the front end processing in the command string by an FE option check part after an initial processing 11. If the FE option is designated, an FE part 13 is executed, and the compile processing of a source program 17 is started. Dependence relations between modules are checked also at this time, and the compile proceesing is aborted in the case of a failure of dependence relations. If a BE option for the back end processing is designated in the command string, a BE part 15 is executed. The BE part 15 takes an intermediate text as the input and processes it to generate an object program 20. If the FE option is not designated in the command string, the FE to generate the object program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はコンパイル処理方式、特
にコンパイル単位であるモジュール間に依存関係を定義
する機能を有するコンパイル処理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compile processing method, and more particularly to a compile processing method having a function of defining a dependency relationship between modules which are compilation units.

【0002】[0002]

【従来の技術】従来、モジュール間に依存関係を有する
ことを明白に記述し、記述された情報をもとにコンパイ
ルしていくコンパイラ処理方式は、依存関係を明白に記
述する機能のないコンパイラ処理方式と同様に、ソース
プログラムを入力しオブジェクトプログラムを生成する
工程まで連続して処理を行う方式を採用している。
2. Description of the Related Art Conventionally, a compiler processing method that explicitly describes that there is a dependency between modules and compiles based on the described information is a compiler processing that does not have a function that explicitly describes the dependency. Similar to the method, it adopts a method of continuously processing up to the step of inputting a source program and generating an object program.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
たコンパイル処理方式ではシステムを構成するモジュー
ル数が比較的に少ない場合は、コンパイル作業に顕著な
作業効率の差は出ないが、コンパイル単位であるモジュ
ール数が多い大規模システムの場合には、コンパイル作
業時に不具合が発見され、これを修正したときに関連す
る全モジュールを全てリコンパイルにしなければならな
いという問題がある。
However, in the above-mentioned compilation processing method, when the number of modules constituting the system is relatively small, there is no significant difference in the work efficiency in the compilation work, but the module which is a compilation unit. In the case of a large number of large-scale systems, there is a problem that a defect is discovered during compilation work, and when this is fixed, all related modules must be recompiled.

【0004】本発明の目的は、上記の問題発生時にコン
パイル作業を効率良くするために、依存関係の処理を行
うコンパイル処理(コンパイラの前半部の処理)を全て
のモジュールに対して行い、この結果を中間テキストの
形式で保存しておき、全ての依存関係の不具合が解消し
た後に、保存していた中間テキストからオブジェクトプ
ログラムを生成する処理(コンパイラの後半部の処理)
を行う。このことにより総合的なコンパイル時間を縮小
することにある。
An object of the present invention is to perform a compiling process (processing of the first half of the compiler) for all modules in order to improve the efficiency of the compiling work when the above problems occur, and as a result, Is saved in the intermediate text format, and after all the defects in the dependencies have been resolved, an object program is generated from the saved intermediate text (the latter half of the compiler).
I do. This is to reduce the overall compilation time.

【0005】[0005]

【課題を解決するための手段】本発明のコンパイラ処理
方式は、コンパイル単位であるモジュール間に依存関係
を定義する機能を有するコンパイル処理方式において、
コンパイラを起動するコマンド列の読込みとコマンド列
のチェックとをして各種の初期処理を行う初期処理部
と、コマンド列中にフロントエンド処理のための”F
E”オプションが指定されているか否かをチェックする
FEオプションチェック部と、”FE”オプションが指
定されているときに起動され、ソースプログラムを読込
んで構文チェック処理、意味チェック処理を行い、依存
関係データをライブラリから入力あるいはライブラリへ
出力することによって依存関係処理を行い、ソースプロ
グラムを中間テキストに変換し中間テキストファイルに
出力するFE部と、中間テキスト生成後に人手によりコ
ンパイル順を定めた後に、コマンド列中にバックエンド
処理のための”BE”オプションが指定されているか否
かをチェックするBEオプションチェック部と、”B
E”オプションが指定されているときに起動され中間テ
キストファイルから中間テキストを読込みオブジェクト
プログラムに変換しオブジェクトプログラムファイルに
出力するBE部と、このBE部の処理の後にコンパイル
処理の終了処理を行う終了処理部とを含むことにより構
成され、またコンパイル単位であるモジュール間に依存
関係を定義する機能を有するコンパイル処理方式におい
て、コンパイラを起動するコマンド列の読込みとコマン
ド列のチェックとをして各種の初期処理を行う初期処理
部と、コマンド列中にフロントエンド処理のための”F
E”オプションが指定されているか否かをチェックする
FEオプションチェック部と、”FE”オプションが指
定されているときに起動されソースプログラムを読込ん
で構文チェック処理、意味チェック処理を行い、依存関
係データをライブラリから入力あるいはライブラリへ出
力することによって依存関係処理を行い、ソースプログ
ラムを中間テキストに変換し中間テキストファイルに出
力するFE部と、コマンド列中のオプションによってコ
ンパイラを起動する各種のコンパイラ起動用コマンド列
をモジュールのコンパイル順にコマンド列テキストファ
イル中に作成するコマンド列作成部と、コマンド列中に
バックエンド処理のための”BE”オプションが指定さ
れているか否かをチェックするBEオプションチェック
部と、”BE”オプションが指定されているときに起動
され中間テキストファイルから中間テキストを読込みオ
ブジェクトプログラムに変換しオプジェクトプログラム
ファイルに出力するBE部と、このBE部の処理の後に
コンパイル処理の終了処理を行う終了処理部とを含むこ
とにより構成される。
A compiler processing method according to the present invention is a compilation processing method having a function of defining a dependency between modules which are compilation units.
An initial processing section that reads the command sequence that activates the compiler and checks the command sequence and performs various initial processes, and "F" for front-end processing in the command sequence.
FE option check part that checks whether the "E" option is specified, and is started when the "FE" option is specified, reads the source program and performs syntax check processing and semantic check processing, and the dependency The FE part that performs dependency processing by inputting or outputting data from the library to the source program and converting the source program to intermediate text and outputting it to the intermediate text file, and after manually defining the compile order after generating the intermediate text, execute the command A BE option check section for checking whether or not the "BE" option for backend processing is specified in the row, and "B"
The BE section that is started when the E "option is specified, reads the intermediate text from the intermediate text file, converts it into an object program, and outputs it to the object program file, and the processing of this BE section and the end processing of the compile processing In a compile processing method that is configured by including a processing unit and has a function of defining a dependency relationship between modules that are compilation units, various types of commands are read by reading a command sequence that activates the compiler and checking the command sequence. The initial processing part that performs the initial processing and "F" for the front end processing in the command string
FE option check part that checks whether the E "option is specified, and when the" FE "option is specified, the source program is read to perform syntax check processing and semantic check processing, and the dependency data FE section that performs dependency processing by inputting or outputting to the library from the library, converting the source program to intermediate text and outputting to the intermediate text file, and for starting various compilers that start the compiler by the option in the command string A command string creation unit that creates command strings in the command string text file in the order of module compilation, and a BE option check unit that checks whether the "BE" option for backend processing is specified in the command string. , "BE" The BE section that is started when an option is specified and converts the intermediate text from the intermediate text file into a read object program and outputs it to the object program file, and an end processing section that performs the end processing of the compile processing after the processing of this BE section. It is composed by including and.

【0006】[0006]

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

【0007】図1は本発明の第一の実施例の構成図であ
る。図1の実施例において、コンパイラ1はこのコンパ
イラを起動するコマンド列のオプションを検査し、解析
し、そしてコンパイラの初期処理を行う初期処理部11
と、コマンド列中にフロントエンド処理を行う”FE”
オプションが指定されているか否かを検査するFEオプ
ションチェック部12と、“FE”オプションが指定さ
れていたときに起動されソースプログラムファイル17
からソースプログラムを読込み、必要ならばライブラリ
ファイル18から他モジュールで定義された依存データ
等を読込み、構文チェック、意味チェック、依存関連デ
ータの更新処理を行い、中間テキストを中間テキストフ
ァイル19に出力し、依存関連データをライブラリファ
イル18に出力する処理を行うFE部13と、コマンド
列中にバックエンド処理のための”BE”オプションが
指定されているか否かを検査するBEオプションチェッ
ク部14と、”BE”オプションが指定されていたとき
に起動され、中間テキストファイル19から中間テキス
トを読込みオブジェクトプログラムファイル20にオブ
ジェクトプログラムを生成するBE部15と、コンパイ
ル処理の後かたずけを行う終了処理部16とを有して構
成される。
FIG. 1 is a block diagram of the first embodiment of the present invention. In the embodiment shown in FIG. 1, the compiler 1 inspects and analyzes the options of the command sequence for invoking the compiler, and performs the initial processing of the compiler 11 for initializing the compiler.
And "FE" that performs front end processing in the command sequence
The FE option check unit 12 that checks whether or not an option is specified, and the source program file 17 that is started when the "FE" option is specified.
Read the source program, read the dependent data etc. defined by other modules from the library file 18 if necessary, check the syntax, check the meaning, update the dependency related data, and output the intermediate text to the intermediate text file 19. An FE unit 13 that outputs the dependency-related data to the library file 18, and a BE option check unit 14 that checks whether or not the "BE" option for back-end processing is specified in the command sequence, The BE unit 15 which is activated when the "BE" option is specified, reads the intermediate text from the intermediate text file 19 and generates an object program in the object program file 20, and the end processing unit 16 that performs the post-compilation processing. And is configured.

【0008】次に、図1の実施例の動作について説明す
る。図2はコンパイル単位であるモジュールの依存関係
を示す概念図、図3はコンパイラを起動するコマンド列
の一例を示す図である。まず、図3(a)に示すコマン
ド列がシステムに投入されることによりコンパイラ1が
起動されると、初期処理部11が起動されコマンド列が
検査され、オプションの有無が記憶される。この後にコ
ンパイル処理のための初期処理が行われ、FEオプショ
ンチェック部12が起動される、FEオプションチェッ
ク部12はコマンド列中に”−FE”オプションが指定
されているか否かを検査する“−FE“オプションが指
定されていなかったときはFE部13の処理はスキップ
するが、指定されていた時はFE部13を起動する。F
E部13はコマンド列の“SOU”オプションで指定さ
れたソースプログラムファイル17からソースプログラ
ムと、”LIB”オプションで指定されたライブラリフ
ァイル18から依存関連情報を入力し、構文チェック、
意味チェックを行い、”IML”オプションで指定した
中間テキストファイル19に中間テキストを出力すると
共に、更新した依存関連情報をライブラリファイル18
に出力する。コマンド列中に”IML”オプションが指
定されなかった場合は、中間テキストファイル19はコ
ンパイラによりテンポラリファイルが割当てられる。続
いて、BEオプションチェック部14が起動される。B
Eオプションチェック部14はコマンド列中に”−B
E”オプションが指定されているか否かを検査する。”
−BE”オプションが指定されていないときはBE部1
5の処理はスキップするが、指定されているときはBE
部15を起動する。BE部15は”IML”オプション
で指定されている中間テキストファイル19から中間テ
キストを入力し、オブジェクトプログラムを生成してオ
ブジェクトプログラムをオブジェクトプログラムファイ
ル20へ出力する。依存関連の処理は既にFE部13で
終了しているので中間テキストからオプジェクトプログ
ラムを生成する処理ではコンパイルの順番は関係ない。
次に、終了処理部16が起動され、必要ならばテンポラ
リファイルなどの解放処理やその他のコンパイラの後処
理を行い処理を終了する。
Next, the operation of the embodiment shown in FIG. 1 will be described. FIG. 2 is a conceptual diagram showing a module dependency as a compilation unit, and FIG. 3 is a diagram showing an example of a command sequence for activating a compiler. First, when the compiler 1 is activated by inputting the command sequence shown in FIG. 3A into the system, the initial processing unit 11 is activated, the command sequence is inspected, and the presence or absence of options is stored. After this, initial processing for compiling processing is performed, and the FE option checking unit 12 is activated. The FE option checking unit 12 checks whether the "-FE" option is specified in the command string "-". When the FE "option is not specified, the processing of the FE unit 13 is skipped, but when it is specified, the FE unit 13 is activated. F
The E section 13 inputs the source program from the source program file 17 specified by the "SOU" option of the command sequence and the dependency related information from the library file 18 specified by the "LIB" option, and performs syntax check,
The meaning is checked, the intermediate text is output to the intermediate text file 19 specified by the "IML" option, and the updated dependency related information is added to the library file 18
Output to. When the "IML" option is not specified in the command string, the intermediate text file 19 is assigned a temporary file by the compiler. Then, the BE option check unit 14 is activated. B
The E option check unit 14 displays "-B" in the command string.
E "Check if the option is specified."
BE section 1 when the -BE "option is not specified
5 is skipped, but BE is specified when specified
The section 15 is activated. The BE unit 15 inputs the intermediate text from the intermediate text file 19 designated by the "IML" option, generates an object program, and outputs the object program to the object program file 20. Since the dependency-related processing has already been completed by the FE unit 13, the order of compilation does not matter in the processing of generating an object program from the intermediate text.
Next, the termination processing unit 16 is activated, and if necessary, processing for releasing temporary files and other post-processing for the compiler is performed, and the processing is terminated.

【0009】図2はモジュールの依存関係を示す概念図
であり、システムが3階層からなっていて、レベル3の
モジュール(c11,c12,c21,c22)はレベ
ル2のモジュール(b1とb2)に依存しており、レベ
ル2のモジュールはレベル1のモジュール(a1)に依
存していることを示している。このとき、コンパイルの
順番はレベル1のモジュール、レベル2のモジュール、
レベル3のモジュールとなる。同じレベルのモジュール
には依存関係は無い。
FIG. 2 is a conceptual diagram showing a module dependency relationship. The system has three layers, and level 3 modules (c11, c12, c21, c22) are level 2 modules (b1 and b2). It shows that the module of level 2 depends on the module (a1) of level 1. At this time, the compilation order is level 1 module, level 2 module,
It will be a Level 3 module. Modules at the same level have no dependencies.

【0010】図3はコマンド列の例を示す図で、図3
(a)はコマンドの基本形の例であり、図3(b)およ
び(c)は図2で示したモジュールをコンパイルすると
きのコマンド列を示している。図3(b)はFE部13
の処理を全モジュールに対して行い、依存関係の検査、
ソースプログラムの誤りなどを除去し、中間テキストを
作成するところまで行わせるものであり、図3(c)は
BE部15の処理を全モジュールに対して行い、中間テ
キストからオブジェクトプログラムを生成するものであ
る。
FIG. 3 is a diagram showing an example of a command sequence.
FIG. 3A is an example of the basic form of a command, and FIGS. 3B and 3C show command sequences when compiling the module shown in FIG. FIG. 3B shows the FE unit 13.
Process for all modules, check dependency,
This is to remove errors in the source program and to create an intermediate text. In FIG. 3C, the processing of the BE unit 15 is performed for all modules to generate an object program from the intermediate text. Is.

【0011】図4は本発明の第2の実施例の構成図であ
る。図4の実施例は図1の実施例のFE部13とBEオ
プションチェック部14との間に、コマンド列のオプシ
ョンによってコンパイラを起動する各種のコンパイラ起
動用コマンド列をコマンド列テキストファイル22中に
作成するコマンド列作成部21を設けたものである。
FIG. 4 is a block diagram of the second embodiment of the present invention. In the embodiment of FIG. 4, between the FE unit 13 and the BE option check unit 14 of the embodiment of FIG. A command sequence creating unit 21 for creating is provided.

【0012】図4の実施例では図1の実施例中で同名
称、同符号のものは、それぞれ同じ処理を行なうが、F
Eオプションチェック部12はコマンド列中に”−F
E”オプションが指定されているときはFE部13起動
するが、”−FE”オプションが指定されていなかった
ときはFE部13とコマンド列作成部21との処理をス
キップする。そしてコマンド列作成部21はFE部13
の処理が行なわれたときは、その処理に続いて起動さ
れ、コマンド列中のオプションによりコンパイラを起動
する各種のコンパイラ起動用コマンド列をコマンド列テ
キストファイル22に作成する。このコマンド列テキス
トファイル22は中間テキストからオブジェクトプログ
ラムを作成したり、全モジュールのリコンパイル、ある
いはモジュールの一部を修正したりするときに、コンパ
イラを起動するために使用する。またコマンド列テキス
トファイル中のコマンド列はモジュールのコンパイル順
に作成される。
In the embodiment of FIG. 4, those having the same name and the same reference numerals in the embodiment of FIG.
The E option check unit 12 displays "-F" in the command string.
When the "E" option is specified, the FE unit 13 is activated, but when the "-FE" option is not specified, the processes of the FE unit 13 and the command string creating unit 21 are skipped. The part 21 is the FE part 13
When the above process is performed, various command lines for starting the compiler, which are started after the process and start the compiler according to the options in the command string, are created in the command string text file 22. The command string text file 22 is used to activate the compiler when creating an object program from intermediate text, recompiling all modules, or modifying a part of the modules. The command strings in the command string text file are created in the order of module compilation.

【0013】図5はコマンド列作成部21の処理のフロ
ー図で、”−c”,”−mkfe”,”−mkbe”,
および”−mkfbe”オプションを設け、それぞれこ
れらのオプションによりコマンド列テキストファイルの
クリア(ステップ102)、ソースプログラムから中間
テキストを生成するコンパイルコマンド列の作成(ステ
ップ103)、中間テキストからオブジェクトプログラ
ムを生成するコンパイルコマンド列の作成(ステップ1
04)、およびソースプログラムからオブジェクトプロ
グラムを生成するコンパイルコマンド列の作成(ステッ
プ105)し、ステップ102では続いて生成したコマ
ンド列をコマンド列テキストファイルの最後に登録し
(ステップ110)、終了する。またステップ103、
104、105では続いて登録スイッチがオンかを調べ
(ステップ106)、オンでなければオンにして(ステ
ップ107)、生成したコマンド列がコマンド列テキス
トファイルに既に登録済みかを調べ(ステップ10
8)、登録済でなければ生成したコマンド列で置換し、
以降のテキストを削除して(ステップ109)、終了す
る。またステップ106で登録スイッチがオンであると
き、およびステップ108で登録済みのときはステップ
110に移る。
FIG. 5 is a flow chart of the processing of the command string creating section 21. The command strings "-c", "-mkfe", "-mkbe",
And "-mkfbe" option are provided, and the command sequence text file is cleared by these options (step 102), the compile command sequence for generating intermediate text from the source program is generated (step 103), and the object program is generated from the intermediate text. Create a compile command sequence to execute (Step 1
04), and a compile command sequence for generating an object program from the source program is created (step 105), and in step 102, the subsequently generated command sequence is registered at the end of the command sequence text file (step 110), and the process ends. Also, step 103,
In steps 104 and 105, it is subsequently checked whether the registration switch is on (step 106). If not, it is turned on (step 107), and it is checked whether the generated command string is already registered in the command string text file (step 10).
8) If not registered, replace with the generated command string,
The subsequent texts are deleted (step 109) and the process ends. If the registration switch is turned on in step 106 and if the registration is completed in step 108, the process proceeds to step 110.

【0014】[0014]

【発明の効果】以上説明したように本発明によれば、依
存関係のあるモジュールをソースプログラム上で明白に
定義している言語ではコンパイルの順番も明白に定義さ
れているので、まず依存関連の処理が全て済んでからオ
ブジェクトプログラムを生成することにより、オブジェ
クトプログラムの生成処理、すなわちバックエンド部を
起動する処理は依存関係の更新回数に関係なく一回にな
り、コンパイル作業の効率が向上するという効果があ
る。また、中間テキストからオブジェクトプログラムを
生成するためのコマンド列や全モジュールを順番通りに
コンパイルするコマンド列を自動生成することにより、
このコマンド列を使用することによりコンパイル作業時
のミスを回避できるという効果がある。
As described above, according to the present invention, in a language in which dependent modules are explicitly defined in the source program, the order of compilation is also explicitly defined. By generating the object program after all the processing is completed, the object program generation process, that is, the process of activating the backend unit, is performed once regardless of the number of updates of the dependency relationships, which improves the efficiency of compilation work. effective. In addition, by automatically generating the command sequence for generating the object program from the intermediate text and the command sequence for compiling all modules in order,
The use of this command sequence has the effect of avoiding mistakes during compilation work.

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

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

【図2】本発明が適用されるソースプログラムのモジュ
ール間の依存関係を示す概念図である。
FIG. 2 is a conceptual diagram showing a dependency relationship between modules of a source program to which the present invention is applied.

【図3】図1の実施例を説明するためのコマンド列の例
を示す図である。
FIG. 3 is a diagram showing an example of a command sequence for explaining the embodiment of FIG.

【図4】本発明の第2の実施例の構成図である。FIG. 4 is a configuration diagram of a second embodiment of the present invention.

【図5】図4の実施例のコマンド列作成部の処理のフロ
ー図である。
FIG. 5 is a flowchart of processing of a command string creating unit according to the embodiment of FIG.

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

1,2 コンパイラ 11 初期処理部 12 FEオプションチェック部 13 FE部 14 BEオプションチェック部 15 BE部 16 終了処理部 17 ソースプログラムファイル 18 ライブラリファイル 19 中間テキストファイル 20 オブジェクトプログラムファイル 21 コマンド列作成部 22 コマンド列テキストファイル 1, 2 compiler 11 initial processing unit 12 FE option check unit 13 FE unit 14 BE option check unit 15 BE unit 16 end processing unit 17 source program file 18 library file 19 intermediate text file 20 object program file 21 command sequence creation unit 22 command Column text file

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 コンパイル単位であるモジュール間に依
存関係を定義する機能を有するコンパイル処理方式にお
いて、コンパイラを起動するコマンド列の読込みとコマ
ンド列のチェックとをして各種の初期処理を行う初期処
理部と、コマンド列中にフロントエンド処理のための”
FE”オプションが指定されているか否かをチェックす
るFEオプションチェック部と、”FE”オプションが
指定されているときに起動され、ソースプログラムを読
込んで構文チェック処理、意味チェック処理を行い、依
存関係データをライブラリから入力あるいはライブラリ
へ出力することによって依存関係処理を行い、ソースプ
ログラムを中間テキストに変換し中間テキストファイル
に出力するFE部と、中間テキスト生成後に人手により
コンパイル順を定めた後に、コマンド列中にバックエン
ド処理のための”BE”オプションが指定されているか
否かをチェックするBEオプションチェック部と、”B
E”オプションが指定されているときに起動され中間テ
キストファイルから中間テキストを読込みオブジェクト
プログラムに変換しオブジェクトプログラムファイルに
出力するBE部と、このBE部の処理の後にコンパイル
処理の終了処理を行う終了処理部とを含むことを特徴と
するコンパイル処理方式。
1. In a compile processing system having a function of defining a dependency between modules as a compile unit, an initial process of reading a command sequence for activating the compiler and checking the command sequence to perform various initial processes. Part and "for frontend processing in command sequence"
FE option check part that checks whether the FE "option is specified, and is started when the" FE "option is specified. It reads the source program and performs syntax check processing and semantic check processing, and the dependency The FE part that performs dependency processing by inputting or outputting data from the library to the source program and converting the source program to intermediate text and outputting it to the intermediate text file, and after manually defining the compile order after generating the intermediate text, execute the command A BE option check section for checking whether or not the "BE" option for backend processing is specified in the row, and "B"
The BE section that is started when the E "option is specified, reads the intermediate text from the intermediate text file, converts it into an object program, and outputs it to the object program file, and the processing of this BE section and the end processing of the compile processing A compilation processing method including a processing unit.
【請求項2】 コンパイル単位であるモジュール間に依
存関係を定義する機能を有するコンパイル処理方式にお
いて、コンパイラを起動するコマンド列の読込みとコマ
ンド列のチェックとをして各種の初期処理を行う初期処
理部と、コマンド列中にフロントエンド処理のための”
FE”オプションが指定されているか否かをチェックす
るFEオプションチェック部と、”FE”オプションが
指定されているときに起動されソースプログラムを読込
んで構文チェック処理、意味チェック処理を行い、依存
関係データをライブラリから入力あるいはライブラリへ
出力することによって依存関係処理を行い、ソースプロ
グラムを中間テキストに変換し中間テキストファイルに
出力するFE部と、コマンド列中のオプションによって
コンパイラを起動する各種のコンパイラ起動用コマンド
列をモジュールのコンパイル順にコマンド列テキストフ
ァイル中に作成するコマンド列作成部と、コマンド列中
にバックエンド処理のための”BE”オプションが指定
されているか否かをチェックするBEオプションチェッ
ク部と、”BE”オプションが指定されているときに起
動され中間テキストファイルから中間テキストを読込み
オブジェクトプログラムに変換しオプジェクトプログラ
ムファイルに出力するBE部と、このBE部の処理の後
にコンパイル処理の終了処理を行う終了処理部とを含む
ことを特徴とするコンパイル処理方式。
2. In a compile processing method having a function of defining a dependency between modules as a compile unit, an initial process of reading a command sequence for activating a compiler and checking the command sequence to perform various initial processes. Part and "for frontend processing in command sequence"
FE option check part that checks whether the FE "option is specified, and when the" FE "option is specified, the source program is read to perform syntax check processing and semantic check processing, and the dependency data FE section that performs dependency processing by inputting or outputting to the library from the library, converting the source program to intermediate text and outputting to the intermediate text file, and for starting various compilers that start the compiler by the option in the command string A command string creation unit that creates command strings in the command string text file in the order of module compilation, and a BE option check unit that checks whether the "BE" option for backend processing is specified in the command string. , "BE" Option part, which is started when an option is specified, converts the intermediate text from the intermediate text file into an object program and outputs it to the object program file, and an end processing part that performs the end process of the compile process after the process of this BE part. A compilation processing method characterized by including and.
JP19380293A 1993-08-05 1993-08-05 Compile processing system Withdrawn JPH0749788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19380293A JPH0749788A (en) 1993-08-05 1993-08-05 Compile processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19380293A JPH0749788A (en) 1993-08-05 1993-08-05 Compile processing system

Publications (1)

Publication Number Publication Date
JPH0749788A true JPH0749788A (en) 1995-02-21

Family

ID=16314021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19380293A Withdrawn JPH0749788A (en) 1993-08-05 1993-08-05 Compile processing system

Country Status (1)

Country Link
JP (1) JPH0749788A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210116872A1 (en) * 2012-08-27 2021-04-22 Johnson Controls Technology Company Syntax translation from first syntax to second syntax based on string analysis
US11762362B2 (en) 2017-03-24 2023-09-19 Johnson Controls Tyco IP Holdings LLP Building management system with dynamic channel communication
US11920810B2 (en) 2017-07-17 2024-03-05 Johnson Controls Technology Company Systems and methods for agent based building simulation for optimal control

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210116872A1 (en) * 2012-08-27 2021-04-22 Johnson Controls Technology Company Syntax translation from first syntax to second syntax based on string analysis
US11754982B2 (en) * 2012-08-27 2023-09-12 Johnson Controls Tyco IP Holdings LLP Syntax translation from first syntax to second syntax based on string analysis
US20230333519A1 (en) * 2012-08-27 2023-10-19 Johnson Controls Tyco IP Holdings LLP Syntax translation from first syntax to second syntax based on string analysis
US12474679B2 (en) 2012-08-27 2025-11-18 Tyco Fire & Security Gmbh Syntax translation from first syntax to second syntax based on string analysis
US11762362B2 (en) 2017-03-24 2023-09-19 Johnson Controls Tyco IP Holdings LLP Building management system with dynamic channel communication
US11920810B2 (en) 2017-07-17 2024-03-05 Johnson Controls Technology Company Systems and methods for agent based building simulation for optimal control
US12270560B2 (en) 2017-07-17 2025-04-08 Johnson Controls Technology Company Systems and methods for digital twin-based equipment control

Similar Documents

Publication Publication Date Title
EP0905617B1 (en) Method for generating a java bytecode data flow graph
JP2811990B2 (en) Program processing device and program processing method
US5606697A (en) Compiler system for language processing program
US9535664B1 (en) Computerized software development process and management environment
CN118312153A (en) Compiler backend code generation method, device, and storage medium
JPH0749788A (en) Compile processing system
GB2420638A (en) Method of substituting code fragments in Internal Representation
JP2000029678A (en) Program language conversion method, conversion device, and recording medium
Mössenböck Compiler Construction: Fundamentals and Applications
JPH1185536A (en) Automatic error correction apparatus and method for source program
Jain et al. An interactive method for extracting grammar from programs
CN119807010B (en) Source code processing method and device and electronic equipment
JPH07121379A (en) Multilingual compiler
JP2000242504A (en) Compiler device
JPH05197561A (en) Compilation system
JPH06290052A (en) Recompiling system
CN120610714A (en) High-confidence construction and formal verification method of synchronous modeling language code generator
CN118377469A (en) A prompt-based method for automatically compiling and building C++ projects
JPH02100732A (en) Program grammar checking system
JP3018783B2 (en) Compilation method
CN117931171A (en) Application development method and system, readable storage medium and electronic equipment
JPH06103054A (en) Coding check sheet generation system
JPS59231649A (en) Output processing system for compiled program list
JPS58169637A (en) Compile processing system
JPH06222928A (en) Loop optimizing method

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: 20001031