JPH0981394A - Compiling method managing device - Google Patents
Compiling method managing deviceInfo
- Publication number
- JPH0981394A JPH0981394A JP7239439A JP23943995A JPH0981394A JP H0981394 A JPH0981394 A JP H0981394A JP 7239439 A JP7239439 A JP 7239439A JP 23943995 A JP23943995 A JP 23943995A JP H0981394 A JPH0981394 A JP H0981394A
- Authority
- JP
- Japan
- Prior art keywords
- file
- group
- compiler
- makefile
- management
- 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
Landscapes
- Devices For Executing Special Programs (AREA)
- Stored Programmes (AREA)
Abstract
(57)【要約】
【課題】本発明は、コンパイル方法を管理するコンパイ
ル方法管理装置に関し、専門的な知識がなくても簡易か
つ確実にコンパイル方法を指定してコンパイル可能にす
ることを目的とする。
【解決手段】コンパイル方法を予め登録する情報ファイ
ルと、この情報ファイルの一覧中からグループに使用す
るものを選択および実行プログラムの1つあるいは複数
の仕様書を取り込んで管理ファイルを作成する管理ファ
イル作成手段と、作成した管理ファイルをもとにコンパ
イル制御を行うために必要なメイクファイルを作成する
メイクファイル作成手段と、このメイクファイルに従っ
て仕様書コンパイラ、言語コンパイラ、アセンブラ、お
よびリンカのうちの該当するものを制御して実行可能形
式の実行プログラムを生成する実行手段とを備えるよう
に構成する。
(57) Abstract: The present invention relates to a compiling method management device for managing a compiling method, and an object thereof is to make it possible to specify a compiling method easily and surely without requiring specialized knowledge. To do. SOLUTION: An information file for registering a compilation method in advance and a management file creation for creating a management file by selecting one to be used for a group from a list of this information file and incorporating one or more specifications of an execution program Means and a makefile creating means for creating a makefile necessary for controlling compilation based on the created management file, and a make compiler corresponding to one of the specification compiler, language compiler, assembler, and linker according to this makefile. And an execution unit configured to control an object and generate an executable program in an executable format.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、仕様書をコンパイ
ルして実行可能形式の実行プログラムを生成するときの
コンパイル方法を管理するコンパイル方法管理装置に関
するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compiling method management device for managing a compiling method when compiling specifications and generating an executable program in an executable format.
【0002】[0002]
【従来の技術】従来、ソースプログラムをコンパイルす
るに必要な処理を全てオペレータが入力してメイクファ
イルに記述し、このメイクファイルを使ってソースプロ
グラム(仕様書)を指定された仕様書コンパイラ、言語
コンパイラ、アセンブラ、リンカを使って実行可能形式
の実行プロブラムを生成するようにしていた。2. Description of the Related Art Conventionally, an operator inputs all the processing required to compile a source program and describes it in a makefile, and the source file (specification) is specified using this makefile. The compiler, assembler, and linker were used to generate an executable program in an executable format.
【0003】[0003]
【発明が解決しようとする課題】上述したように従来の
手法では、複数のコンパイル方法を使用する場合は、コ
ンパイル数分のメイクファイルをオペレータがそれぞれ
記述する必要があり、その記述が極めて大変であるとい
う問題があった。As described above, in the conventional method, when a plurality of compiling methods are used, it is necessary for the operator to describe as many make files as the number of compilations, which is extremely difficult to describe. There was a problem.
【0004】また、メイクファイルに全てのコンパイル
方法を予め記述しておき、コンパイル時に条件式で指定
してコンパイルの制御の流れをそれぞれ切り分ける手法
では、条件式で指定する必要があり、しばしば条件式を
間違ったり、条件式の知識を習熟した熟練者でないと切
り分けできないという問題があった。Further, in a method in which all the compiling methods are described in the makefile in advance and the control flow of the compilation is divided by specifying the conditional expressions at the time of compilation, it is necessary to specify the conditional expressions, and often the conditional expressions are used. There was a problem that it could not be separated unless it was wrong or it was not an expert who was familiar with the knowledge of conditional expressions.
【0005】本発明は、これらの問題を解決するため、
コンパイル方法を情報ファイルに予め登録し、情報ファ
イル一覧からグループに該当するものを選択および仕様
書を作成して管理ファイルを作成し、この管理ファイル
をもとにメイクファイルを自動生成してコンパイルし、
専門的な知識がなくても簡易かつ確実にコンパイル方法
を指定してコンパイル可能にすることを目的としてい
る。The present invention solves these problems.
The compile method is registered in advance in the information file, the one corresponding to the group is selected from the information file list, the specification file is created to create the management file, and the make file is automatically generated and compiled based on this management file. ,
The purpose is to make it possible to compile by specifying the compile method easily and surely without specialized knowledge.
【0006】[0006]
【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、管理ファ
イル作成手段2は、情報ファイルの一覧中からグループ
に使用するものを選択および実行プログラムの1つある
いは複数の仕様書などを取り込んで管理ファイル6を作
成するものである。[Means for Solving the Problems] Means for solving the problems will be described with reference to FIG. In FIG. 1, the management file creating means 2 creates a management file 6 by selecting one to be used for a group from a list of information files and taking in one or more specifications of an execution program.
【0007】メイクファイル作成手段3は、管理ファイ
ル6をもとにコンパイル制御を行うために必要なメイク
ファイル7を作成するものである。実行手段4は、メイ
クファイル7に従って仕様書コンパイラ、言語コンパイ
ラ、アセンブラ、およびリンカのうちの該当するものを
制御して実行可能形式の実行プログラム8を生成するも
のである。The makefile creating means 3 creates a makefile 7 necessary for controlling compilation based on the management file 6. The execution unit 4 controls an appropriate one of a specification compiler, a language compiler, an assembler, and a linker according to the makefile 7 to generate an executable program 8 in an executable format.
【0008】情報ファイル5は、コンパイル方法を登録
したものである。管理ファイル6は、グループ毎にコン
パイル方法および仕様書などを登録して管理するもので
ある。The information file 5 is a file in which a compilation method is registered. The management file 6 is for registering and managing a compilation method, specifications, etc. for each group.
【0009】メイクファイル7は、コンパイル制御を行
うために必要な情報を格納したものである。次に、動作
を説明する。The makefile 7 stores information necessary for controlling compilation. Next, the operation will be described.
【0010】管理ファイル作成手段2が情報ファイル5
の一覧中からグループに使用するものを選択および実行
プログラムの1つあるいは複数の仕様書を取り込んで管
理ファイル6を作成し、メイクファイル作成手段3が作
成した管理ファイル6をもとにコンパイル制御を行うた
めに必要なメイクファイル7を作成し、実行手段4がメ
イクファイル7に従って仕様書コンパイラ、言語コンパ
イラ、アセンブラ、およびリンカのうちの該当するもの
を制御して実行可能形式の実行プログラム8を生成する
ようにしている。The management file creating means 2 uses the information file 5
Select the one to be used for the group from the list, and create the management file 6 by incorporating one or more specifications of the execution program, and compile control based on the management file 6 created by the makefile creating means 3. The makefile 7 necessary for execution is created, and the execution means 4 controls an appropriate one of the specification compiler, the language compiler, the assembler, and the linker according to the makefile 7 to generate the executable program 8 in the executable format. I am trying to do it.
【0011】この際、メイクファイル作成手段3がグル
ープ毎に作成された管理ファイル6の一覧から該当する
管理ファイル6が選択されたことに対応して、選択され
た管理ファイル6からメイクファイル7を自動生成し、
実行手段4がこのメイクファイル7に従って仕様書コン
パイラ、言語コンパイラ、アセンブラ、およびリンカの
うちの該当するものを制御して実行可能形式の実行プロ
グラム8を生成するようにしている。At this time, in response to the corresponding management file 6 being selected from the list of management files 6 created for each group by the make file creating means 3, the make file 7 is selected from the selected management files 6. Automatically generated,
The execution means 4 controls an appropriate one of a specification compiler, a language compiler, an assembler, and a linker according to the makefile 7 to generate an executable program 8 in an executable format.
【0012】従って、コンパイル方法を情報ファイル5
に予め登録し、情報ファイル一覧からグループに該当す
るものを選択および仕様書を作成して管理ファイル6を
登録し、この管理ファイル6をもとにメイクファイル7
を自動生成してコンパイルすることにより、専門的な知
識がなくても簡易かつ確実にコンパイル方法を指定して
コンパイルすることが可能となる。Therefore, the compile method is set to the information file 5
Registered in advance, select the information corresponding to the group from the information file list, create the specifications, and register the management file 6, and based on this management file 6, makefile 7
By automatically generating and compiling, it is possible to easily and surely specify the compiling method and compile without specialized knowledge.
【0013】[0013]
【発明の実施の形態】次に、図1から図7を用いて本発
明の実施の形態および動作を順次詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, an embodiment and operation of the present invention will be described in detail sequentially with reference to FIGS.
【0014】図1は、本発明のシステム構成図を示す。
図1において、処理装置1は、プログラムに従って各種
処理を行うものであって、ここでは、管理ファイル作成
手段2、メイクファイル作成手段3、および実行手段4
などから構成されるものである。FIG. 1 shows a system configuration diagram of the present invention.
In FIG. 1, a processing device 1 performs various processes according to a program, and here, a management file creating means 2, a make file creating means 3, and an executing means 4 are provided.
It is composed of etc.
【0015】管理ファイル作成手段2は、情報ファイル
5の一覧中からグループに使用するものが選択させたこ
とに対応して、この選択され情報ファイル5および実行
プログラムを作成するに必要な1つあるいは複数の仕様
書、更に各種オプションを取り込んで管理ファイル6を
作成するものである。The management file creating means 2 responds to the selection of the information file 5 to be used for the group from the list of the information files 5, one of which is necessary for creating the selected information file 5 and the execution program. The management file 6 is created by incorporating a plurality of specifications and various options.
【0016】メイクファイル作成手段3は、管理ファイ
ル6に格納されたグループのコンパイル方法および各種
オプションなどをもとにコンパイル制御を行うために必
要な情報を作成しメイクファイル7に格納するものであ
る。The make file creating means 3 creates the information necessary for controlling the compilation based on the group compiling method and various options stored in the management file 6 and stores it in the make file 7. .
【0017】実行手段4は、メイクファイル7に従って
仕様書コンパイラ、言語コンパイラ、アセンブラ、およ
びリンカのうちの該当するものを制御して実行可能形式
の実行プログラム8を生成するものである。The execution means 4 controls an appropriate one of a specification compiler, a language compiler, an assembler, and a linker according to the makefile 7 to generate an executable program 8 in an executable format.
【0018】情報ファイル5は、実行プログラムの例え
ばチップ名に対応づけてコンパイル方法(仕様書コンパ
イラ、言語コンパイラ、アセンブラ、リンカの種別)を
登録したものである。The information file 5 is a file in which a compilation method (specification compiler, language compiler, assembler, linker type) is registered in association with, for example, a chip name of an execution program.
【0019】管理ファイル6は、グループ毎に情報ファ
イル5の内容および実行プログラムを作成するために必
要な仕様書、各種オプションなどを登録して管理するも
のである。The management file 6 is for registering and managing the contents of the information file 5 and specifications and various options necessary for creating an execution program for each group.
【0020】メイクファイル7は、管理ファイル6に登
録されているグループ毎のコンパイル方法、仕様書、各
種オプションをもとに、仕様書コンパイラ、言語コンパ
イラ、アセンブラ、リンカを制御するための情報を格納
したものである。The makefile 7 stores information for controlling the specification compiler, language compiler, assembler, and linker based on the compilation method, specifications, and various options for each group registered in the management file 6. It was done.
【0021】実行プログラム8は、コンパイルした後の
実行可能形式のプログラムである。入力装置9は、各種
データ入力や指示入力などを行うものである。表示装置
10は、各種データなどを表示するものである。The execution program 8 is an executable program after being compiled. The input device 9 is used to input various data and instructions. The display device 10 displays various data and the like.
【0022】次に、図2を用いて図1の構成で管理ファ
イルを作成するときの手順を詳細に説明する。図2の
(a)は、管理ファイル作成フローチャートを示す。Next, the procedure for creating the management file with the configuration of FIG. 1 will be described in detail with reference to FIG. FIG. 2A shows a management file creation flowchart.
【0023】図2の(a)において、S1は、パス単位
に情報ファイルを作成する。これは、例えば後述する図
4の(a)で点線で囲んだグループ(パス)単位に仕様
書から実行プログラムが作成されるまでに使用する、仕
様書コンパイラ、言語コンパイラ、アセンブラ、リンカ
の種別を決定し、情報ファイル5に格納する。この情報
ファイル5は、使用できる全ての仕様書コンパイラ、言
語コンパイラ、アンセブラ、リンカの種別の組み合わせ
を作成して登録する。In FIG. 2A, S1 creates an information file for each path. This is, for example, the type of specification compiler, language compiler, assembler, and linker used until the execution program is created from the specification in units of groups (paths) surrounded by dotted lines in FIG. It is determined and stored in the information file 5. This information file 5 creates and registers all combinations of specifications compilers, language compilers, assemblers, and linkers that can be used.
【0024】S2は、情報ファイルの一覧を表示する。
これは、管理ファイルを作成するために、予め作成した
情報ファイル5の一覧を表示する。S3は、グループに
該当する情報ファイルを選択する。これは、予め作成し
た情報ファイル5の一覧を画面上に表示し、その一覧か
ら作成しようとしているグループ、例えば図4の(a)
の左側のグループ1に使用するアセンブル方法を記述し
た情報ファイル5を1つ選択する。In step S2, a list of information files is displayed.
This displays a list of information files 5 created in advance in order to create a management file. In S3, an information file corresponding to the group is selected. This is because the list of the information files 5 created in advance is displayed on the screen and the group to be created from the list, for example, (a) in FIG.
Select one information file 5 describing the assembly method to be used for the group 1 on the left side of.
【0025】S4は、実行プログラムの仕様書を作成す
る。これは、例えば図4の(a)の左側のグループ1の
場合には、仕様書A、B、Cの3つの仕様書をオペレー
タが作成する。In step S4, specifications of the execution program are created. For example, in the case of the group 1 on the left side of FIG. 4A, the operator creates three specifications A, B, and C.
【0026】S5は、管理ファイルを作成、及び仕様書
ごとのオプションの登録を行う。これは、S3で選択し
た情報ファイル5の内容(コンパイル方法)、S4で作
成した仕様書に加えて、仕様書ごとのオプション(コン
パイラのオプション)の登録を行う。In step S5, a management file is created and options are registered for each specification. This registers the contents (compile method) of the information file 5 selected in S3 and the specifications (compiler options) for each specifications in addition to the specifications created in S4.
【0027】S6は、終わりか判別する。YESの場合
には、終了する。NOの場合、例えば図4の(a)のグ
ループ1の管理ファイル6の作成を終了した場合には、
更にグループ2があるので、S1以降を繰り返し、グル
ープ2の管理ファイル6を作成する。At step S6, it is determined whether or not the process is finished. If YES, the process ends. In the case of NO, for example, when the creation of the management file 6 of the group 1 in FIG.
Further, since there is a group 2, the management file 6 for the group 2 is created by repeating S1 and subsequent steps.
【0028】以上によって、予め使用できるコンパイル
方法(仕様書コンパイラ、言語コンパイラ、アセンブ
ラ、リンカの種別)をパス単位に決めて情報ファイル5
に登録しておき、情報ファイル5の一覧から作成しよう
としているグループの管理ファイル6に適切なものを1
つ選択してその内容(コンパイル方法)を取り出すと共
に、実行プログラムの仕様書を作成、各種オプションを
設定して管理ファイル6を作成する。これにより、グル
ープ毎に管理ファイル6を簡易に専門的な知識が無くて
も簡易作成することが可能である。As described above, the compile method (specification compiler, language compiler, assembler, linker type) that can be used in advance is determined for each path and the information file 5
Register the information in the information file 5 and select the appropriate management file 6 for the group you are going to create from the list.
One of them is selected and the contents (compilation method) are taken out, a specification of the execution program is created, various options are set, and the management file 6 is created. As a result, it is possible to easily create the management file 6 for each group without requiring specialized knowledge.
【0029】図2の(b)は、情報ファイル例を示す。
この情報ファイル5は、実行プログラムのチップ名に対
応づけて、仕様書コンパイラ、言語コンパイラ、アセン
ブラ、リンカを図示のように予め登録するものである。FIG. 2B shows an example of the information file.
This information file 5 is for registering a specification compiler, a language compiler, an assembler, and a linker in advance in association with the chip name of the execution program as shown in the figure.
【0030】図3は、本発明の管理ファイル作成説明図
を示す。図3において、S11は、情報ファイル5を予
め作成して登録した様子を示す。ここで、情報ファイル
5には、図示の下記の項目を登録する。FIG. 3 shows an explanatory diagram of creating a management file according to the present invention. In FIG. 3, S11 shows a state in which the information file 5 is created and registered in advance. Here, the following items shown in the figure are registered in the information file 5.
【0031】・言語系列:C言語 ・コンパイラの種類:C言語A ・リンカの種類:リンカA ・アセンブラパス有無:有とアセンブラA、あるいは無 ・オプションプログラム: S12は、S11の情報ファイル5の一覧中からパス1
用、あるいはパス2用の情報ファイル1あるいは情報フ
ァイル2を選択して取り出した様子を示す。-Language series: C language-Compiler type: C language A-Linker type: Linker A-Assembler path presence / absence: Yes and no assembler A-Option program: S12 is a list of information files 5 of S11 Pass 1 from the inside
The information file 1 or the information file 2 for the path 2 or the path 2 is selected and taken out.
【0032】S13は、管理ファイルの作成を行う。こ
れは、S12で一覧から選択して取り出したグループに
使用する情報ファイルの内容について、各種指定を行
い、下段の管理ファイル6の作成を行う。In step S13, a management file is created. In this case, various designations are made for the contents of the information file used for the group selected and extracted from the list in S12, and the lower management file 6 is created.
【0033】・グループ名の指定 ・コンパイラのオプションの指定 ・その他の指定 S14は、仕様書の作成を行う。これは、実行プログラ
ムの仕様書を作成する。例えば後述する図4の(a)の
グループ1、2の場合には、下記の仕様書を作成する。-Group name designation-Compiler option designation-Other designations S14 creates specifications. This creates a specification of the executing program. For example, in the case of groups 1 and 2 of FIG. 4A described later, the following specifications are created.
【0034】・グループ1 ・仕様書A ・仕様書B ・仕様書C ・グループ2 ・仕様書C ・仕様書D S15は、作成された管理ファイル6の例を示す。この
管理ファイル6は、図示の下記項目を登録する。-Group 1-Specification A-Specification B-Specification C-Group 2-Specification C-Specification D S15 shows an example of the created management file 6. The management file 6 registers the following items shown in the figure.
【0035】・グループ名称:グループ1 ・使用する言語系統 ・コンパイラ、リンカの種類、アセンブラパスの有無 ・コンパイラのオプション(グループのデフォルト) ・仕様書A:コンパイルのオプション、グループのデフ
ォルト ・仕様書B:コンパイルのオプション、グループのデフ
ォルト ・仕様書C:コンパイルのオプション、例外指定 以上のように、予め登録した情報ファイル5の一覧から
グループに使用する情報ファイル5を選択してその内容
(コンパイル方法など)を取り出すと共に、仕様書の作
成、オプションの設定などを行い、管理ファイル6を簡
易かつ間違いなく作成することが可能である。-Group name: Group 1-Language system used-Compiler, linker type, assembler path presence-Compiler options (group defaults) -Specification A: compile options, group defaults-Specification B : Compile option, group default-Specification C: Compile option, exception specification As described above, the information file 5 to be used for the group is selected from the list of the information files 5 registered in advance and its contents (compile method, etc.) ) Is taken out, the specifications are created, the options are set, etc., and the management file 6 can be created easily and without error.
【0036】図4は、本発明のグループ説明図を示す。
図4の(a)は、グループ1(パス1)とグループ2
(パス2)との2つがある場合を示す。グルーブ1は仕
様書A、B、Cをもとに実行プログラム1にコンパイル
するものであり、グルーブ2は仕様書C、Dをもとに実
行プログラム2をコンパイルするものである。ここで、
グループ1(パス1)、グループ2(パス2)は、実行
プログラム1、2を実行するチップに対応づけて設定し
たものである。グループ1、グループ2は、それぞれ図
示の下記の仕様書コンパイラ、言語コンパイラ、アセン
ブラ、リンカを使用して実行プログラムを生成するもの
である(図5の(a)参照)。FIG. 4 shows a group explanatory diagram of the present invention.
FIG. 4A shows a group 1 (path 1) and a group 2
The case where there are two (path 2) is shown. The groove 1 is for compiling the execution program 1 based on the specifications A, B and C, and the groove 2 is for compiling the execution program 2 based on the specifications C and D. here,
Group 1 (pass 1) and group 2 (pass 2) are set in association with chips that execute the execution programs 1 and 2. Group 1 and group 2 generate an execution program using the following specification compiler, language compiler, assembler, and linker, respectively (see FIG. 5A).
【0037】 グループ 仕様書コンパイラ 言語コンパイラ アセンブラ リンカ 1 C言語用 A A A 2 C言語用 B B B 図4の(b)は、グループ3(パス3)の場合を示す。
グルーブ3は仕様書V、Wをもとに実行プログラム3に
コンパイルするものである。ここで、グループ3(パス
3)は、実行プログラム3を実行するチップに対応づけ
て設定したものである。グループ3は、図示の下記の仕
様書コンパイラ、言語コンパイラ、アセンブラ、リンカ
を使用して実行プログラムを生成するものである(図5
の(b)参照)。Group Specification Compiler Language Compiler Assembler Linker 1 For C language A A A 2 For C language B B B FIG. 4B shows the case of group 3 (pass 3).
The groove 3 is to be compiled into the execution program 3 based on the specifications V and W. Here, the group 3 (path 3) is set in association with the chip that executes the execution program 3. Group 3 is to generate an execution program by using the following specification compiler, language compiler, assembler, and linker shown in FIG.
(B)).
【0038】 グループ 仕様書コンパイラ 言語コンパイラ アセンブラ リンカ 3 C言語用 B なし B 図4の(c)は、グループ4(パス4)の場合を示す。
グルーブ4は仕様書X、Yをもとに実行プログラム4に
コンパイルするものである。ここで、グループ4(パス
4)は、実行プログラム4を実行するチップに対応づけ
て設定したものである。グループ4は、図示の下記の仕
様書コンパイラ、言語コンパイラ、アセンブラ、リンカ
を使用して実行プログラムを生成するものである(図5
の(c)参照)。Group Specification Compiler Language Compiler Assembler Linker 3 For C Language B None B FIG. 4C shows the case of group 4 (pass 4).
The groove 4 is to be compiled into the execution program 4 based on the specifications X and Y. Here, the group 4 (path 4) is set in association with the chip that executes the execution program 4. Group 4 is for generating an execution program by using the following specification compiler, language compiler, assembler, and linker shown in FIG.
(C)).
【0039】 グループ 仕様書コンパイラ 言語コンパイラ アセンブラ リンカ 4 COBOL言語用 COBOL なし X 図5は、本発明の情報ファイル例を示す。Group Specification Compiler Language Compiler Assembler Linker 4 For COBOL Language COBOL None X FIG. 5 shows an example of an information file of the present invention.
【0040】図5の(a)は、図4の(a)のグループ
1、2の情報ファイル5の例を示す。ここでは、グルー
プ1、2について図示のように登録する。図5の(b)
は、図4の(b)のグループ3の情報ファイル5の例を
図4の(a)のグループ2との対比で示す。ここでは、
グループ3について図示のように登録する。FIG. 5A shows an example of the information file 5 of the groups 1 and 2 in FIG. 4A. Here, the groups 1 and 2 are registered as illustrated. FIG. 5B
Shows an example of the information file 5 of the group 3 of FIG. 4B in comparison with the group 2 of FIG. 4A. here,
Group 3 is registered as shown.
【0041】図5の(c)は、図4の(c)のグループ
4の情報ファイル5の例を図4の(b)のグループ3と
の対比で示す。ここでは、グループ4について図示のよ
うに登録する。FIG. 5C shows an example of the information file 5 of the group 4 of FIG. 4C in comparison with the group 3 of FIG. 4B. Here, the group 4 is registered as illustrated.
【0042】次に、図6および図7を用いて、管理ファ
イル6を用いて実行プログラム8にコンパイルするとき
の手順を説明する。図6は、本発明の実行フローチャー
トを示す。Next, the procedure for compiling the execution program 8 using the management file 6 will be described with reference to FIGS. 6 and 7. FIG. 6 shows an execution flowchart of the present invention.
【0043】図6において、S21は、グループ一覧を
表示する。これは、既述したグループ毎に登録した管理
ファイル6のグループ一覧を表示する。S22は、グル
ープに該当する管理ファイルを選択する。In FIG. 6, S21 displays a group list. This displays the group list of the management file 6 registered for each group described above. In S22, the management file corresponding to the group is selected.
【0044】S23は、メイクファイルを作成する。こ
れは、S22で選択したグループの管理ファイル6をも
とに、仕様書コンパイラ、言語コンパイラ、アンセブ
ラ、リンカを制御するために必要な情報を作成しメイク
ファイル7に格納する。In step S23, a make file is created. This creates the information necessary for controlling the specification compiler, language compiler, assembler, and linker based on the management file 6 of the group selected in S22, and stores it in the makefile 7.
【0045】S24は、仕様書コンパイルする。これ
は、S23で作成したメイクファイル7に従い、後述す
る図7の仕様書コンパイラ71を制御して仕様書を例え
ばC言語ソースにコンパイル(変換)する。In step S24, the specifications are compiled. According to the makefile 7 created in S23, this controls the specification compiler 71 of FIG. 7 described later to compile (convert) the specification into, for example, a C language source.
【0046】S25は、言語コンパイルする。これは、
例えばC言語ソースをアセンブラソースにコンパイル
(変換)する。S26は、アセンブルする。これは、例
えばアセンブラソースを目的言語にプログラムにアセン
ブル(変換)する。In step S25, the language is compiled. this is,
For example, the C language source is compiled (converted) into an assembler source. S26 assembles. This assembles (converts) an assembler source into a program into a target language, for example.
【0047】S27は、リンクする。これは、S26で
アセンブルした複数の目的言語のプログラムをリンクし
て実行可能形式の実行プログラムにする。S28は、実
行可能形式の実行プログラムを完成する。S27 is linked. This links the programs in the plurality of target languages assembled in S26 into an executable program in an executable format. S28 completes the executable program in the executable format.
【0048】以上によって、管理ファイル6の一覧から
該当グループの管理ファイルを選択し、この管理ファイ
ル6から自動的にメイクファイル7を作成し、このメイ
クファイル7に従い、仕様書コンパイラ71、言語コン
パイラ72、アセンブラ73、およびリンカ74を制御
し、実行可能形式の実行プログラム8を自動生成するこ
とが可能となる。As described above, the management file of the corresponding group is selected from the list of the management files 6, the makefile 7 is automatically created from this management file 6, and the specification compiler 71 and the language compiler 72 are made according to this makefile 7. , The assembler 73 and the linker 74 can be controlled to automatically generate the executable program 8 in an executable format.
【0049】図7は、本発明のコンパイル説明図を示
す。図7において、S31は、画面上に表示した管理フ
ァイル6の一覧から該当するグループの管理ファイル6
を1つ指定する。FIG. 7 shows a compilation explanatory diagram of the present invention. In FIG. 7, S31 is the management file 6 of the corresponding group from the list of management files 6 displayed on the screen.
Specify one.
【0050】S32は、S31で指定された管理ファイ
ル6を取り出した様子を示す。S33は、S32の管理
ファイル6をもとにメイクファイル7を自動生成した様
子を示す。In step S32, the management file 6 designated in step S31 is taken out. In S33, the make file 7 is automatically generated based on the management file 6 in S32.
【0051】S34は、S33で自動生成したメイクフ
ァイル7をもとに、仕様書コンパイラ71、言語コンパ
イラ72、アンセブラ73、およびリンカ74を制御し
て実行可能形式の実行プログラムをコンパイルする様子
を示す。In step S34, based on the makefile 7 automatically generated in step S33, the specification compiler 71, the language compiler 72, the assembler 73, and the linker 74 are controlled to compile an executable program in an executable format. .
【0052】以上のように、管理ファイル6の一覧から
グループに該当する管理ファイル6を選択するのみで、
メイクファイル7を自動生成して仕様書から実行プログ
ラム8を自動的にコンパイルすることが可能となる。As described above, by simply selecting the management file 6 corresponding to the group from the list of management files 6,
It is possible to automatically generate the makefile 7 and automatically compile the execution program 8 from the specifications.
【0053】[0053]
【発明の効果】以上説明したように、本発明によれば、
コンパイル方法を情報ファイル5に予め登録し、情報フ
ァイル一覧からグループに該当するものを選択および仕
様書を作成して管理ファイル6を作成し、この管理ファ
イル6をもとにメイクファイル7を自動生成してコンパ
イルする構成を採用しているため、専門的な知識がなく
ても簡易かつ確実にコンパイル方法を指定して複数の仕
様書から実行可能形式の実行プログラム8をコンパイル
することができる。これらにより、言語的知識の無いオ
ペレータであってもコンパイル方法を設定し、コンパイ
ルを簡単かつ確実に行うことが可能となった。As described above, according to the present invention,
The compile method is registered in advance in the information file 5, the one corresponding to the group is selected from the information file list, the specification file is created to create the management file 6, and the make file 7 is automatically generated based on the management file 6. Since the configuration for compiling is used, it is possible to compile the executable program 8 in an executable format from a plurality of specifications by simply and surely designating the compiling method without specialized knowledge. As a result, even an operator who has no linguistic knowledge can set the compile method and compile easily and surely.
【図1】本発明のシステム構成図である。FIG. 1 is a system configuration diagram of the present invention.
【図2】本発明の管理ファイル作成説明図(その1)で
ある。FIG. 2 is an explanatory diagram (No. 1) of creating a management file of the present invention.
【図3】本発明の管理ファイル作成説明図(その2)で
ある。FIG. 3 is an explanatory diagram (Part 2) of creating a management file of the present invention.
【図4】本発明のグループ説明図である。FIG. 4 is a group explanatory diagram of the present invention.
【図5】本発明の情報ファイル例である。FIG. 5 is an example of an information file of the present invention.
【図6】本発明の実行フローチャートである。FIG. 6 is an execution flowchart of the present invention.
【図7】本発明のコンパイル説明図である。FIG. 7 is an explanatory diagram of compiling according to the present invention.
1:処理装置 2:管理ファイル作成手段 3:メイクファイル作成手段 4:実行手段 5:情報ファイル 6:管理ファイル 7:メイクファイル 71:仕様書コンパイラ 72:言語コンパイラ 73:アセンブラ 74:リンカ 8:実行プログラム 9:入力装置 10:表示装置 1: Processor 2: Management file creation means 3: Make file creation means 4: Execution means 5: Information file 6: Management file 7: Make file 71: Specification compiler 72: Language compiler 73: Assembler 74: Linker 8: Execution Program 9: Input device 10: Display device
Claims (2)
ルと、 この情報ファイルの一覧中からグループに使用するもの
を選択および実行プログラムの1つあるいは複数の仕様
書を取り込んで管理ファイルを作成する管理ファイル作
成手段と、 作成した管理ファイルをもとにコンパイル制御を行うた
めに必要なメイクファイルを作成するメイクファイル作
成手段と、 このメイクファイルに従って仕様書コンパイラ、言語コ
ンパイラ、アセンブラ、およびリンカのうちの該当する
ものを制御して実行可能形式の実行プログラムを生成す
る実行手段とを備えたことを特徴とするコンパイル方法
管理装置。1. An information file in which a compilation method is registered in advance, and a management file for selecting a file to be used for a group from a list of the information files and creating a management file by incorporating one or more specifications of an execution program. Creating means, and a makefile creating means for creating a makefile necessary for controlling compilation based on the created management file, and a makefile corresponding to one of the specification compiler, language compiler, assembler, and linker according to this makefile. A compiling method management device, comprising: an execution unit configured to control what is executed to generate an executable program in an executable format.
プ毎に作成された管理ファイルの一覧から該当する管理
ファイルが選択されたことに対応して、選択された管理
ファイルからメイクファイルを自動生成し、上記実行手
段がこのメイクファイルに従って仕様書コンパイラ、言
語コンパイラ、アセンブラ、およびリンカのうちの該当
するものを制御して実行可能形式の実行プログラムを生
成することを特徴とする請求項1記載のコンパイル方法
管理装置。2. The make file creating means automatically creates a make file from the selected management file in response to selection of a corresponding management file from the list of management files created for each group. 2. The compiling method according to claim 1, wherein the execution means controls an appropriate one of a specification compiler, a language compiler, an assembler, and a linker according to the makefile to generate an executable program in an executable format. Management device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7239439A JPH0981394A (en) | 1995-09-19 | 1995-09-19 | Compiling method managing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7239439A JPH0981394A (en) | 1995-09-19 | 1995-09-19 | Compiling method managing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0981394A true JPH0981394A (en) | 1997-03-28 |
Family
ID=17044795
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7239439A Pending JPH0981394A (en) | 1995-09-19 | 1995-09-19 | Compiling method managing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0981394A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007257046A (en) * | 2006-03-20 | 2007-10-04 | Fujitsu Ltd | Software generation apparatus for multiple OS versions and software generation support program for multiple OS versions |
-
1995
- 1995-09-19 JP JP7239439A patent/JPH0981394A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007257046A (en) * | 2006-03-20 | 2007-10-04 | Fujitsu Ltd | Software generation apparatus for multiple OS versions and software generation support program for multiple OS versions |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5615308A (en) | Rule-based production system adapted for complex procedures flow | |
| US6829759B1 (en) | System and method for generating a translation display | |
| US5511167A (en) | Program processing method and apparatus for producing a data flow type program | |
| JPH0981394A (en) | Compiling method managing device | |
| US20070022405A1 (en) | Method and system for software design | |
| US20040117775A1 (en) | Automatic compilation of electronic telecommunications system message generation code | |
| JP3059011B2 (en) | Compiling device | |
| EP0244928A1 (en) | Improvements relating to control flow in computers | |
| EP1577757A2 (en) | Method for generating an executable workflow code from an unstructured cyclic process model | |
| JP3025984B2 (en) | Logical operation control unit | |
| Lee et al. | Sequence control for integrated structural design models | |
| JPH09305411A (en) | Program execution device for compilation type program | |
| JPH1083328A (en) | Pseudo input / output realization method for unit test | |
| JPS63305419A (en) | Editing system for code data | |
| JPH11265293A (en) | Script processor | |
| JPH06195249A (en) | Name designation method | |
| JPH04153737A (en) | Output system for compile updating information | |
| JPH0425969A (en) | Compiling system which is made into definition arrangement vector under if sentence | |
| JPH01136241A (en) | Program link system | |
| JPS62242238A (en) | How to modify the source program | |
| JPH0784770A (en) | Program pattern customizing system | |
| CN111052077A (en) | Transforming device and transforming method | |
| JPS6398031A (en) | Check system for suffix value | |
| JPH0778071A (en) | Package program generation method | |
| JPS6398045A (en) | Simulation method |