JP2005215862A - Automatic build instruction document generating method, and program and system therefor - Google Patents

Automatic build instruction document generating method, and program and system therefor Download PDF

Info

Publication number
JP2005215862A
JP2005215862A JP2004019910A JP2004019910A JP2005215862A JP 2005215862 A JP2005215862 A JP 2005215862A JP 2004019910 A JP2004019910 A JP 2004019910A JP 2004019910 A JP2004019910 A JP 2004019910A JP 2005215862 A JP2005215862 A JP 2005215862A
Authority
JP
Japan
Prior art keywords
program
build
programs
executable
instruction
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
JP2004019910A
Other languages
Japanese (ja)
Inventor
Hitotsugu Yano
仁嗣 矢野
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 JP2004019910A priority Critical patent/JP2005215862A/en
Publication of JP2005215862A publication Critical patent/JP2005215862A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To automatically generate build instruction document which causes no incorrectness in build order of a source program having a mutual reference relation with an execution-form program and designates correct build order at a time of build when the generation of the execution-form program is blocked. <P>SOLUTION: All the programs constituting a source program group 10 and each line of program composition information are searched by automatic processing by an automatic program generating device 2 to detect the presence or absence of reference of each program to another execution-form program. When it is detected that the reference to the execution-form program is made, each program is sorted in sequence order so that a reference object program may be located preceding the program, to which the reference is detected to be made, to make the sequence order of the sorted program the conversion order of each program, and the build instruction document is automatically generated. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、ビルド時に実行形式プログラムを互いに参照する関係にあるソースプログラム群を構成する複数のプログラム及びプログラム構成情報を一連の実行形式プログラムに変換する際に各プログラムの変換順序を指定するためのビルド指示書の自動作成方法およびビルド指示書自動作成プログラムと、ビルド指示書作成機能付プログラム自動生成装置、ならびに、このプログラム自動生成装置を備えたプログラム実行システムに関する。   The present invention is to specify a conversion order of each program when converting a plurality of programs and program configuration information constituting a source program group having a relation to refer to each other at the time of building into a series of executable programs. The present invention relates to an automatic creation method of a build instruction, a build instruction automatic creation program, a program automatic generation device with a build instruction creation function, and a program execution system including the program automatic generation device.

設計情報と実行形式プログラムとの間の中間生成物となるソースプログラム群を設計情報に基いて自動的に生成するプログラム自動生成装置や、ソースプログラム群を実行形式プログラムに変換するビルド装置が既に公知である。   A program automatic generation device that automatically generates a source program group as an intermediate product between design information and an executable program based on the design information, and a build device that converts the source program group into an executable program are already known. It is.

ビルド時に実行形式プログラムを互いに参照する関係にあるソースプログラム群を実行形式プログラムに変換する際には、ソースプログラム群中のプログラムまたはプログラム構成情報の中でまだ実行形式プログラムに変換されていないプログラムが参照されていると正常な変換処理が行えなくなるので、予め、ソースプログラム群を構成する各プログラムの変換順序を指定するビルド指示書を作成し、このビルド指示書の指示に従ってソースプログラム群を各プログラム毎に実行形式プログラムに変換していく必要がある。例えば、サブプログラムをコールしているメインプログラムを実行形式プログラムに変換する場合において、当該サブプログラムを実行形式プログラムに変換する前に当該メインプログラムを実行形式プログラムに変換しようとすると、サブプログラムに相当する実行形式プログラムが存在しないため、当該メインプログラムの実行形式プログラムへの変換作業でエラーが発生して変換作業が停止してしまうといった問題がある。   When converting a source program group that refers to an executable program to each other at the time of building into an executable program, a program in the source program group or a program that has not yet been converted into an executable program is included in the program configuration information. If it is referenced, normal conversion processing cannot be performed, so a build instruction that specifies the conversion order of each program that makes up the source program group is created in advance, and the source program group is assigned to each program according to the instructions in this build instruction sheet. It is necessary to convert it into an executable program every time. For example, when a main program that calls a subprogram is converted to an executable program, if the main program is converted to an executable program before the subprogram is converted to an executable program, it corresponds to the subprogram. Since there is no executable program to be converted, there is a problem that an error occurs in the conversion work of the main program into the executable program and the conversion work stops.

このビルド指示書は、従来、手作業で新規作成するか、或いは、予め準備された雛形を利用して一部を手作業で書き換えることによって作成されていたので、人手作業ゆえの記述誤りによって正しいビルド順が指定できなくなる場合があり、また、手作業が存在することによって人件費の効率化が阻害されるといった問題があった。   Conventionally, this build instruction has been created manually or by manually rewriting a part using a template prepared in advance, so that it is correct due to a description error due to manual work. There are cases where the build order cannot be specified, and there is a problem that the efficiency of labor costs is hindered by the presence of manual work.

特に、昨今の大規模化したプログラム群の開発環境では、多数のメインプログラムやサブプログラムを複数の拠点で独立的に開発することも多く、人手に頼ってビルド指示書を作成すること自体、手間やコストの関係から困難になりつつある。   In particular, in recent development environments for large-scale program groups, many main programs and subprograms are often independently developed at multiple bases, and it is difficult to create build instructions by relying on human resources. It is becoming difficult because of the cost.

プログラムのビルド順序を並び替えるための技術としては、ソースプログラム中のファンクションを解析し、実行頻度の高い順にファンクションを並べ替えてソースプログラムを実行形式プログラムに変換する順序を指定するようにしたものが特許文献1として提案されているが、このものは単に実行形式プログラムの実行に必要とされる所要時間を短縮することを目的としたものに過ぎず、ビルド時に実行形式プログラムを互いに参照する関係にあるソースプログラムの相互の参照関係を考慮したものではない。よって、前記と同様、ビルド順の指定の不手際によってコンパイル作業自体に支障を来たすといった可能性がある。   A technique for rearranging the build order of programs is to analyze the functions in the source program and specify the order in which the source programs are converted into executable programs by rearranging the functions in the order of execution frequency. Although proposed as Patent Document 1, this is merely for the purpose of shortening the time required for execution of the executable program, and has a relationship of referring to the executable program at the time of building. It does not take into account the mutual reference relationship of certain source programs. Therefore, as described above, there is a possibility that the compile operation itself may be hindered due to the failure to specify the build order.

なお、設計情報に基いてソースプログラムを生成するプログラム自動生成装置それ自体については、例えば、引用文献2に開示されるように既に公知の技術であり、CASEツールやプログラム自動生成装置等の分野で頻繁に利用されている。   Note that the automatic program generation device itself that generates a source program based on design information is a well-known technique as disclosed in, for example, Citation 2, and is used in the field of CASE tools, automatic program generation devices, and the like. It is used frequently.

特開2000−56983号公報JP 2000-56983 A 特開平8−328841号公報Japanese Patent Laid-Open No. 8-328841

そこで、本発明の課題は、前記従来技術の不都合を改善し、人手作業による記述誤り、特に、実行形式プログラムの作成を阻害するビルド時に実行形式プログラムを互いに参照する関係にあるソースプログラムのビルド順の不正をなくして正しいビルド順を指定するビルド指示書を自動的に生成することのできるビルド指示書の自動作成方法,ビルド指示書自動作成プログラム,ビルド指示書作成機能付プログラム自動生成装置,ならびに,このプログラム自動生成装置を備えたプログラム実行システムを提供することにある。   Accordingly, an object of the present invention is to improve the inconveniences of the above-described prior art and to make a build order of source programs that have a relationship of referring to each of the executable programs at the time of build, which is a manual description error, particularly, obstructing creation of the executable program. Build instruction automatic creation method, build instruction automatic creation program, program automatic generation device with build instruction creation function, which can automatically generate a build instruction that specifies the correct build order without illiciting An object of the present invention is to provide a program execution system provided with this automatic program generation device.

本発明によるビルド指示書の自動作成方法は、ビルド時に実行形式プログラムを互いに参照する関係にあるソースプログラム群を構成する複数のプログラムを一連の実行形式プログラムに変換する際に前記各プログラムの変換順序を指定するためのビルド指示書の自動作成方法であり、前記課題を達成するため、特に
設計情報に基いてソースプログラムを生成したプログラム自動生成装置によって、ソースプログラム群を構成する全てのプログラム及びプログラム構成情報の各行をサーチして各プログラムにおける他の実行形式プログラムの参照の有無を検出し、
他の実行形式プログラムの参照が検出された場合には、参照が検出されたプログラムよりも参照対象のプログラムが先に位置するように前記各プログラムのソーティングを行い、ソーティングされたプログラムの並び順を各プログラムの変換順序としてビルド指示書を生成することを特徴とした構成を有する。
The method for automatically creating a build instruction according to the present invention converts a plurality of programs constituting a group of source programs having a relationship of referring to executable programs at the time of building into a series of executable programs. In order to achieve the above-mentioned problem, in particular, all the programs and programs that constitute the source program group by the automatic program generation device that generates the source program based on the design information. Search each line of configuration information to detect the presence or absence of references to other executable programs in each program,
When a reference to another executable program is detected, the respective programs are sorted so that the program to be referenced is positioned before the program from which the reference is detected, and the order of the sorted programs is changed. A build instruction is generated as the conversion order of each program.

他の実行形式プログラムの参照を必要としないプログラムは単独で実行形式プログラムに変換することができ、また、他の実行形式プログラムの参照を必要とするプログラムは、参照対象となるプログラムを実行形式プログラムに変換してからでないと実行形式プログラムに変換することができない。
従って、ソースプログラム群を構成する全てのプログラム及びプログラム構成情報の各行をプログラム自動生成装置によってサーチし、各プログラムにおける他の実行形式プログラムの参照の有無を検出して、参照が検出されたプログラムよりも参照対象のプログラムが先に位置するように各プログラムをソーティングし、ソーティングされたプログラムの並び順を各プログラムの変換順序としてビルド指示書を生成して、このビルド指示書に指定された順序でソースプログラムから実行形式プログラムへの変換作業つまり所謂コンパイル作業を行うようにすれば、確実に変換処理を達成することができる。
A program that does not require reference to another executable program can be converted into an executable program alone, and a program that requires reference to another executable program can be referred to as an executable program. It must be converted to an executable program before it can be converted.
Therefore, all the programs constituting the source program group and each line of the program configuration information are searched by the program automatic generation device, the presence / absence of reference to other executable programs in each program is detected, and the program from which the reference is detected is detected. Also sort each program so that the program to be referenced is located first, generate a build instruction using the sorted program order as the conversion order of each program, and in the order specified in this build instruction. If the conversion work from the source program to the executable program, that is, the so-called compiling work is performed, the conversion process can be achieved reliably.

参照が検出されたプログラムよりも参照対象のプログラムを先に位置させるソーティング作業は、例えば、ソースプログラム群を構成する全てのプログラム及びプログラム構成情報の各行をサーチして各プログラムにおける他のプログラムの参照の有無を検出した後、
単独でビルド可能なプログラムと他の実行形式プログラムの参照を必要とするプログラムとを識別し、各プログラムを、単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順に並べ替えることで実現され得る。
For example, the sorting operation for positioning the program to be referred to before the program in which the reference is detected includes, for example, searching all the lines constituting the source program group and each line of the program configuration information to refer to other programs in each program. After detecting the presence or absence of
Identify programs that can be built independently and programs that require reference to other executable programs, and each program can be built independently, programs referenced as executable programs when building other programs, This can be realized by rearranging the programs that require reference to other executable programs at the time of building.

前述したように、他の実行形式プログラムの参照を必要とするプログラムよりも先に他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムを実行形式プログラムに変換しておくことで確実に変換処理を達成することができる。   As described above, the conversion process is ensured by converting the program that is referred to as the executable program when building the other program to the executable program before the program that requires the reference of the other executable program. Can be achieved.

より具体的には、このソーティング作業は、ソースプログラム群を構成する全てのプログラム及びプログラム構成情報の各行をサーチして各プログラムのビルド時における他の実行形式プログラム参照の有無を検出した後、
他の実行形式プログラムの参照が検出された場合には、他の実行形式プログラムの参照が検出されたプログラムと参照対象のプログラムの各々を象徴する値を1レコードとして第一のファイルおよび第二のファイルに書き出す一方、他の実行形式プログラムの参照が検出されなかった場合には、当該プログラムを象徴する値を1レコードとして第二のファイルにのみ書き出し、
前記第一のファイルの先頭から順にレコードを1レコード毎に読み込んで第三のファイルに書き出す第一のレコード書き出し工程と、このレコードに含まれる参照対象のプログラムを象徴する値をプログラムを象徴する値として有するレコードを第二のファイルから読み込んで該第三のファイルに次の1レコードとして書き出す第二のレコード書き出し工程とを実行した後、前記第二のレコード書き出し工程で第三のファイルに書き出したレコードに参照対象のプログラムを象徴する値が含まれているか否かを判定し、参照対象のプログラムを象徴する値が含まれていれば第二のレコード書き出し工程を繰り返し実行する一方、参照対象のプログラムを象徴する値が含まれていなければ、第一のファイルからのレコードの読み込みが終わるまで、前記第一のレコード書き出し工程と第二のレコード書き出し工程とを繰り返し実行する参照先ファイル生成工程と、
前記第二のファイルに書き込まれたレコードから参照対象のプログラムを象徴する値を記憶していないレコードを書き出しの順に逆行して抽出してビルド順一覧ファイルに書き出す単独ビルド可能プログラムを象徴する値の書き出し工程と、前記第三のファイルに書き込まれたレコードから参照対象のプログラムを象徴する値を記憶しているレコードの参照対象のプログラムを象徴する値を書き出しの順に逆行して抽出してビルド順一覧ファイルに書き出す参照先プログラムを象徴する値の書き出し工程と、前記第三のファイルに書き込まれたレコードのプログラムを象徴する値を書き出しの順に逆行して抽出して前記ビルド順一覧ファイルに書き出すプログラムを象徴する値の書き出し工程と、
前記ビルド順一覧ファイルの先頭から順にプログラムを象徴する値の重複を削除するビルド順一覧ファイル生成工程とをプログラム自動生成装置の内部処理として実行することによって確実に実現できる。
More specifically, this sorting work is performed by searching all lines constituting the source program group and each line of the program configuration information and detecting the presence or absence of other executable program references at the time of building each program.
When a reference to another executable program is detected, a value representing each of the program in which the reference of the other executable program is detected and the program to be referred to is set as one record and the first file and the second When a reference to another executable program is not detected while writing to a file, a value symbolizing the program is written as one record only to the second file,
A first record writing step of reading records one by one in order from the top of the first file and writing them to a third file, and a value that symbolizes the program to be referred to included in this record. The second record writing step is executed to read the record having as the second record from the second file and writing it as the next one record to the third file, and then writing to the third file in the second record writing step. It is determined whether or not the record includes a value that symbolizes the reference target program. If the value that symbolizes the reference target program is included, the second record writing process is repeatedly executed, while the reference target If no value representing the program is included, the record from the first file is read. , A reference destination file generating step of repeatedly executing the said first record writing step and the second record writing process,
A record of a value that symbolizes a single buildable program that is extracted from the record written in the second file by reversely extracting a record that does not store a value that symbolizes the reference target program and writing it to the build order list file. In the writing process, the value that symbolizes the reference target program of the record that stores the value that symbolizes the reference target program is extracted from the record written in the third file by going backwards in the order of writing and build order. A process of writing a value symbolizing a reference destination program to be written to a list file, and extracting a value symbolizing a program of a record written to the third file by going backwards in the order of writing and writing to the build order list file The process of exporting values that symbolize
This can be reliably realized by executing, as an internal process of the automatic program generation device, the build order list file generation step for deleting duplication of values symbolizing the program in order from the top of the build order list file.

この場合、単独ビルド可能プログラムを象徴する値の書き出し工程において書き出されたプログラムを象徴する値は、単独でビルド可能なプログラムを表す値であり、また、参照先プログラムを象徴する値の書き出し工程において書き出されたプログラムを象徴する値は、ビルド時に他のプログラムで実行形式プログラムとして参照されるプログラムを象徴する値であって、更に、プログラムを象徴する値の書き出し工程において書き出されたプログラムを象徴する値は、ビルド時に他の実行形式プログラムを参照する必要のあるプログラムを象徴する値を含み、且つ、現時点で書き出されていないプログラムを象徴する値を補完したものとなる。
従って、最終的に、ビルド順一覧ファイルの先頭から順にプログラムを象徴する値の重複を削除することによって、単独でビルド可能なプログラム,ビルド時に他のプログラムで実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの並びを崩すことなく、且つ、重複を回避してソースプログラム群を構成する全てのプログラムを実行形式プログラムに変換することができる。
In this case, the value that symbolizes the program written in the value writing process that symbolizes the independently buildable program is the value that represents the program that can be independently built, and the value writing process that symbolizes the reference destination program. The value that symbolizes the program written in is a value that symbolizes the program that is referred to as an executable program in another program at the time of building, and is further written in the value writing process that symbolizes the program The value that symbolizes includes a value that symbolizes a program that needs to refer to another executable program at the time of build, and complements a value that symbolizes a program that has not been written at the present time.
Therefore, the program that can be built independently by deleting duplicate values that symbolize the program in order from the top of the build order list file, a program that is referred to as an executable program by other programs at the time of build, and build It is possible to convert all the programs constituting the source program group into executable programs without breaking the arrangement of programs that sometimes require reference to other executable programs, and avoiding duplication.

本発明によるビルド指示書自動作成プログラムは、前記と同様の課題を達成するため、設計情報に基いてソースプログラム群を生成するプログラム自動生成装置のプロセッサを、
ソースプログラム群を構成する各プログラム及びプログラム構成情報の各行をサーチして単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別する弁別手段と、前記各プログラムを単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングしてビルド指示書を生成するビルド指示書作成手段として機能させることを特徴とする構成を有する。
In order to achieve the same problem as described above, a program for automatically creating a build instruction according to the present invention includes a processor of an automatic program generation device that generates a source program group based on design information.
Search each program and each line of the program configuration information that constitutes the source program group, and refer to programs that can be built independently, programs that are referenced as executable programs when building other programs, and other executable programs that are built when building Discriminating means for discriminating into necessary programs, a program capable of independently building each program, a program referenced as an executable program when building another program, and a reference to another executable program when building A build instruction creating means for generating a build instruction by sorting in the order of programs to be executed.

この場合、弁別手段は、ソースプログラム群を構成する各プログラムの各々を単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別し、ビルド指示書作成手段が、この弁別結果に基いて、各プログラムを単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングしてビルド指示書を生成する。
プログラム自動生成装置のプロセッサが実施する具体的な内部処理については既に述べた通りである。
In this case, the discriminating means refers to a program that can independently build each of the programs constituting the source program group, a program that is referred to as an executable program at the time of building another program, and a reference to another executable program at the time of building. Based on the results of the discrimination, the build instruction creation means discriminates it from the required program, the program that can build each program independently, the program referenced as an executable program when building other programs, A build instruction is generated by sorting in order of programs that require reference to other executable programs.
Specific internal processing executed by the processor of the automatic program generation device is as described above.

本発明によるビルド指示書作成機能付プログラム自動生成装置は、前記と同様の課題を達成するため、ソースプログラム群を構成する各プログラム及びプログラム構成情報の各行をサーチして単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別する弁別手段と、弁別された前記各プログラムを単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングしてビルド指示書を生成するビルド指示書作成手段とを備えたことを特徴とする構成を有する。   In order to achieve the same problem as described above, the program automatic generation apparatus with a build instruction creation function according to the present invention is a program that can be independently built by searching each line of the source program group and each line of the program configuration information. Discrimination means for discriminating between a program that is referred to as an executable program at the time of building another program and a program that requires reference to another executable program at the time of building, and a program that can independently build each of the discriminated programs And a build instruction creation means for generating a build instruction by sorting in order of a program that is referred to as an executable program at the time of building another program and a program that requires reference to another executable program at the time of building It has the structure characterized by this.

前記と同様、弁別手段が各プログラムを単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別し、ビルド指示書作成手段が、この弁別結果に基いて、各プログラムを単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングすることでビルド指示書が生成される。   As described above, the discrimination means discriminates each program into a program that can be built independently, a program that is referred to as an executable program when building another program, and a program that requires reference to another executable program when building. Based on the discrimination result, the build instruction creation means can refer to programs that can build each program independently, programs that are referred to as executable programs when building other programs, and references to other executable programs when building. Build instructions are generated by sorting in the order of required programs.

ビルド指示書作成機能付プログラム自動生成装置には、更に、生成されたビルド指示書とプログラム自動生成装置に入力された実行形式プログラムの配置設計情報とに基いて実行形式プログラムの配置を特定する配置指示書を自動生成する配置指示書自動生成機能を併設することができる。   The automatic program generation device with a build instruction creation function further includes an arrangement for specifying the arrangement of the executable program based on the generated build instruction and the layout design information of the executable program input to the automatic program generator. A placement instruction automatic generation function for automatically generating instructions can be provided.

ビルド指示書はプログラム自動生成装置の内部処理によって自動生成されるので、ビルド指示書の生成後、実行形式プログラムの配列を決めるビルド指示書と実行形式プログラムの格納先を特定する配置設計情報とに基いて、実行形式プログラムの配置を特定する配置指示書を自動生成することができる。   Since the build instruction is automatically generated by the internal processing of the automatic program generation device, after the build instruction is generated, the build instruction that determines the layout of the executable program and the layout design information that specifies the storage location of the executable program are included. Based on this, it is possible to automatically generate an arrangement instruction for specifying the arrangement of the executable program.

本発明によるプログラム実行システムは、ソースプログラム群の生成に必要とされる設計情報と実行形式プログラムの配置設計情報を格納する業務仕様データ保管装置と、この業務仕様データ保管装置に格納された設計情報に基いてソースプログラム群を生成するプログラム自動生成装置と、前記ソースプログラム群を構成するプログラム及びプログラム構成情報を実行形式プログラムに変換する順序を指定するビルド指示書と前記ソースプログラム群とに基いて実行形式プログラムを生成するビルド装置と、前記プログラム自動生成装置およびビルド装置で生成されたプログラム群を格納する自動生成物保管装置と、前記実行形式プログラムを格納して実行する実行装置とを備えたプログラム実行システムであり、前記と同様の課題を達成するため、特に、
前記プログラム自動生成装置は、ソースプログラム群を構成する各プログラム及びプログラム構成情報の各行をサーチして単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別する弁別手段と、弁別された各プログラムを単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングしてビルド指示書を生成するビルド指示書作成手段と、生成されたビルド指示書および前記業務仕様データ保管装置からプログラム自動生成装置に入力された実行形式プログラムの配置設計情報に基いて実行形式プログラムの配置を特定する配置指示書を自動生成する配置指示書自動生成機能とを備え、
前記実行装置は、自動生成物保管装置に格納された実行形式プログラムを前記配置指示書に基いて格納し実行するように構成されていることを特徴とする構成を有する。
A program execution system according to the present invention includes a business specification data storage device that stores design information required for generating a source program group and layout design information of an executable program, and design information stored in the business specification data storage device. An automatic program generation device that generates a source program group based on the program, a program that constitutes the source program group, a build instruction that specifies the order in which program configuration information is converted into an executable program, and the source program group A build device that generates an executable program, an automatic product storage device that stores the program automatic generation device and a program group generated by the build device, and an execution device that stores and executes the executable program A program execution system that achieves the same tasks as above Because, in particular,
The program automatic generation device searches for each program constituting the source program group and each line of the program configuration information to independently build a program that can be built and a program that is referred to as an executable program at the time of building other programs and other programs at the time of building. Discriminating means for discriminating programs that need to be referred to executable programs, programs that can build each discriminated program independently, programs that are referenced as executable programs when building other programs, and others that are built Build instruction creation means for generating a build instruction by sorting in the order of the program that requires reference to the executable program, and the program is automatically input from the generated build instruction and the business specification data storage device to the program automatic generation device. The executable program And a placement instruction automatic generation function for automatically generating a layout instruction form based on the total information specifying the placement of the executable program,
The execution device is configured to store and execute an execution format program stored in the automatic product storage device based on the arrangement instruction.

つまり、このプログラム実行システムは、本発明によるビルド指示書作成機能付のプログラム自動生成装置に、業務仕様データ保管装置とビルド装置と自動生成物保管装置と実行装置とを組み合わせて構築されたプログラム実行システムである。
業務仕様データ保管装置にはソースプログラム群の生成に必要とされる設計情報と実行形式プログラムの配置設計情報とが格納され、これらの情報をプログラム自動生成装置が読み込んでソースプログラム群を生成し、自動生成物保管装置に格納する。
更に、プログラム自動生成装置の弁別手段が、ソースプログラム群を構成する各プログラム及びプログラム構成情報の各行をサーチして単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別し、プログラム自動生成装置のビルド指示書作成手段がプログラムのソーティングを行ってビルド指示書を生成し、自動生成物保管装置に格納する。
そして、ビルド指示書の生成後、プログラム自動生成装置の配置指示書自動生成機能が作動して、自動生成物保管装置に格納されているビルド指示書と業務仕様データ保管装置から入力された配置設計情報とに基いて配置指示書を自動生成し、自動生成物保管装置に格納する。
一方、ビルド装置は、ビルド指示書の指示に従ってソースプログラム群の各プログラムを順に変換して実行形式プログラムを作成し、この実行形式プログラムを自動生成物保管装置に格納する。
最終的に、実行装置が、自動生成物保管装置に格納されている実行形式プログラムを配置指示書に従って格納し、この実行形式プログラムを実行することになる。
In other words, this program execution system is a program execution system constructed by combining a business specification data storage device, a build device, an automatic product storage device, and an execution device with the automatic program generation device with a build instruction creation function according to the present invention. System.
The business specification data storage device stores design information required for generating a source program group and layout design information for an executable program, and the program automatic generation device reads the information to generate a source program group. Store in automatic product storage.
Furthermore, the program automatic generation device discriminating means searches for each program constituting the source program group and each line of the program configuration information, and a program that can be independently built and a program that is referred to as an executable program when building another program And a program that requires reference to another executable program at the time of build, and the build instruction creation means of the program automatic generation device sorts the program to generate a build instruction, which is stored in the automatic product storage device. Store.
Then, after the build instruction is generated, the automatic layout instruction generation function of the automatic program generation device is activated, and the layout design input from the build instruction stored in the automatic product storage device and the business specification data storage device An arrangement instruction is automatically generated based on the information and stored in the automatic product storage device.
On the other hand, the build apparatus sequentially converts each program of the source program group in accordance with the instructions in the build instruction document to create an executable program, and stores the executable program in the automatic product storage device.
Finally, the execution device stores the execution format program stored in the automatic product storage device according to the arrangement instruction, and executes the execution format program.

本発明は、プログラム自動生成装置によってソースプログラム群が生成された時点で、ソースプログラム群を構成する全てのプログラム及びプログラム構成情報の各行をサーチして各プログラムのビルド時における他の実行形式プログラムの参照の有無を検出し、他の実行形式プログラムの参照が検出された場合には、参照が検出されたプログラムよりも参照対象のプログラムが先に位置するように各プログラムのソーティングを行い、ソーティングされたプログラムの並び順を各プログラムの変換順序としてビルド指示書を生成するようにしたので、まだ実行形式プログラムに変換されていないまたは古い版の実行形式プログラムの参照によって実行形式プログラムの作成が阻害される問題が解消され、ビルド指示書に指定された順序でソースプログラム群から実行形式プログラムへの変換作業を行うだけで、ソースプログラム群を構成する全てのプログラムを確実に実行形式プログラムに変換することができる。
しかも、ビルド指示書を生成するために必要とされる機能はプログラム自動生成装置に実装されているので、人手作業による記述誤りの問題は解消され、手間の削減や人件費等のコストの効率化も達成され得る。
The present invention searches for all the programs constituting the source program group and each line of the program configuration information at the time when the source program group is generated by the automatic program generation device, and stores other executable programs at the time of building each program. When the presence or absence of a reference is detected and a reference to another executable program is detected, each program is sorted so that the program to be referenced is positioned before the program for which the reference is detected. The build instructions are generated with the order of the selected programs as the conversion order of each program, so creation of executable programs is hindered by references to executable programs that have not yet been converted to executable programs. Problems are resolved, and the software is run in the order specified in the build instructions. Only performs conversion operations into executable program from the scan program group can be converted to reliably executable program to all the programs constituting the source programs.
In addition, the functions required to generate the build instructions are implemented in the automatic program generation device, eliminating the problem of description errors due to manual work, reducing labor, and improving the efficiency of labor costs. Can also be achieved.

図1は、本発明によるビルド指示書の自動作成方法を実現するためのビルド指示書自動作成プログラムを組み込んだビルド指示書作成機能付プログラム自動生成装置を中心に構成されたプログラム実行システムの構成の概略について示した機能ブロック図である。   FIG. 1 shows a configuration of a program execution system mainly composed of an automatic program generation apparatus with a build instruction creation function incorporating a build instruction automatic creation program for realizing an automatic creation method of a build instruction according to the present invention. It is the functional block diagram shown about the outline.

このプログラム実行システム1は、図1に示される通り、ビルド指示書作成機能付プログラム自動生成装置2(以下、単にプログラム自動生成装置という),業務仕様データ保管装置3,自動生成物保管装置4,ビルド装置5および実行装置6によって構成される。   As shown in FIG. 1, the program execution system 1 includes a program automatic generation device 2 with a build instruction creation function (hereinafter simply referred to as an automatic program generation device), a business specification data storage device 3, an automatic product storage device 4, and the like. It is comprised by the build apparatus 5 and the execution apparatus 6.

但し、業務仕様データ保管装置3と自動生成物保管装置4については単一の記憶装置によって構成してもよく、また、プログラム自動生成装置2とビルド装置5についても単一のコンピュータによって構成することが可能である。   However, the business specification data storage device 3 and the automatic product storage device 4 may be configured by a single storage device, and the automatic program generation device 2 and the build device 5 may also be configured by a single computer. Is possible.

業務仕様データ保管装置3は、ソースプログラム群の生成に必要とされる設計情報としての共通部品データ7と業務仕様データ8、および、実行形式プログラムの配置設計情報である配置情報データ9を記憶する。設計情報のうち、共通部品データ7は各種の業務に共通した設計情報であり、業務仕様データ8は業務に固有の設計情報である。また、配置情報データ9は、共通部品データ7と業務仕様データ8に基いてプログラム自動生成装置2が生成したソースプログラム群10をビルド装置5がコンパイル作業で変換して得た最終的な実行形式プログラム11を実行装置6の中のどの場所にどういう方法で配置するかを特定するための配置設計情報である。   The business specification data storage device 3 stores common part data 7 and business specification data 8 as design information required for generating a source program group, and layout information data 9 which is layout design information of an execution format program. . Of the design information, the common part data 7 is design information common to various business operations, and the business specification data 8 is design information unique to the business operations. Further, the arrangement information data 9 is a final execution format obtained by the build apparatus 5 converting the source program group 10 generated by the automatic program generation apparatus 2 based on the common component data 7 and the business specification data 8 by the compiling work. This is layout design information for specifying in what method and where the program 11 is placed in the execution device 6.

プログラム自動生成装置2は、設計情報としての共通部品データ7および業務仕様データ8に基いてソースプログラム群10を自動生成する従来と同様の自動プログラミング機能に加え、自らが生成したソースプログラム群10の各プログラム行をサーチして単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別する弁別手段と、弁別された各プログラムを単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングしてビルド指示書12を生成するビルド指示書作成手段を有し、更に、生成されたビルド指示書12と業務仕様データ保管装置3から読み込んだ配置情報データ9に基いて実行形式プログラム11の配置を特定する配置指示書13を自動生成する配置指示書自動生成機能を備える。   The automatic program generation device 2 includes a source program group 10 generated by itself, in addition to an automatic programming function similar to the conventional one that automatically generates a source program group 10 based on common part data 7 and business specification data 8 as design information. Discrimination means for searching each program line and distinguishing it into a program that can be built independently, a program that is referenced as an executable program when building another program, and a program that requires reference to another executable program when building , Sorted programs can be built independently, programs that are referred to as executable programs when building other programs, and programs that require reference to other executable programs when building Build instructions to generate And an arrangement instruction for automatically generating an arrangement instruction 13 for specifying the arrangement of the execution program 11 based on the generated build instruction 12 and the arrangement information data 9 read from the business specification data storage device 3. Equipped with automatic document generation function.

また、自動生成物保管装置4は、プログラム自動生成装置2で生成されたソースプログラム群10とビルド指示書12および配置指示書13を格納するための記憶装置である。   The automatic product storage device 4 is a storage device for storing the source program group 10, the build instruction 12 and the arrangement instruction 13 generated by the automatic program generation device 2.

ビルド装置5は、自動生成物保管装置4に格納されているビルド指示書12の指示に従ってソースプログラム群10の各プログラムを指定順で実行形式プログラム11に変換する。この実行形式プログラム11も、プログラム自動生成装置2で生成されたソースプログラム群10やビルド指示書12および配置指示書13と共に自動生成物保管装置4に格納される。   The build device 5 converts each program of the source program group 10 into the execution format program 11 in the specified order in accordance with the instructions of the build instruction sheet 12 stored in the automatic product storage device 4. This execution format program 11 is also stored in the automatic product storage device 4 together with the source program group 10, the build instruction 12 and the arrangement instruction 13 generated by the automatic program generation device 2.

最終的に、実行装置6が、自動生成物保管装置4に格納されている実行形式プログラム11を配置指示書13の指示に従って実行装置6内のメモリに格納し、この実行形式プログラムを実行する。   Finally, the execution device 6 stores the execution format program 11 stored in the automatic product storage device 4 in the memory in the execution device 6 in accordance with the instruction of the arrangement instruction sheet 13 and executes this execution format program.

図2はプログラム実行システム1における全体的な処理の流れを示したフローチャートである。   FIG. 2 is a flowchart showing the overall processing flow in the program execution system 1.

まず、予め準備した共通部品データ7と業務仕様データ8および配置情報データ9を業務仕様データ保管装置3に格納しておく(ステップA1〜ステップA3)。   First, the common component data 7, work specification data 8, and arrangement information data 9 prepared in advance are stored in the work specification data storage device 3 (step A1 to step A3).

次に、プログラム自動生成装置2を起動して共通部品データ7と業務仕様データ8を業務仕様データ保管装置3から読み込み、プログラム自動生成装置2のプログラム自動生成機能を作動させ、共通部品データ7と業務仕様データ8に基いてソースプログラム群10を自動的に生成する。このプログラム自動生成機能に関しては公知である。
そして、ここで生成されたソースプログラム群10とビルド指示書12および配置指示書13が、自動生成物保管装置4に格納される(以上、ステップA4)。
Next, the automatic program generation device 2 is activated to read the common component data 7 and the business specification data 8 from the business specification data storage device 3, and the automatic program generation function of the automatic program generation device 2 is activated. A source program group 10 is automatically generated based on the business specification data 8. This automatic program generation function is known.
The generated source program group 10, the build instruction sheet 12, and the arrangement instruction sheet 13 are stored in the automatic product storage device 4 (step A4).

プログラム自動生成装置2によってソースプログラム群10を生成する際に配置指示書13を自動的に生成するようにしているので、配置指示書13の作成に関わる人為的な記述誤りを防ぐことができる。   Since the arrangement instruction 13 is automatically generated when the source program group 10 is generated by the automatic program generation device 2, an artificial description error related to the creation of the arrangement instruction 13 can be prevented.

次いでビルド装置5が起動され、自動生成物保管装置4に格納されているビルド指示書12の指示に従ってソースプログラム群10の各プログラムを指定順で実行形式プログラム11に変換する。この変換作業によって変換された実行形式プログラム11も、プログラム自動生成装置2で生成されたソースプログラム群10やビルド指示書12および配置指示書13と共に自動生成物保管装置4に格納される(ステップA5)。   Next, the build device 5 is activated, and each program of the source program group 10 is converted into the executable program 11 in the specified order in accordance with the instructions of the build instruction sheet 12 stored in the automatic product storage device 4. The executable program 11 converted by this conversion work is also stored in the automatic product storage device 4 together with the source program group 10, the build instruction 12 and the arrangement instruction 13 generated by the automatic program generation device 2 (step A5). ).

次に、自動生成物保管装置4に格納されている実行形式プログラム11を実行装置6が配置指示書13の指示に従って実行装置6内に格納し(ステップA6)、最後に、この実行装置6が当該実行形式プログラム11を実行する(ステップA7)。   Next, the execution device 6 stores the execution format program 11 stored in the automatic product storage device 4 in the execution device 6 according to the instruction of the arrangement instruction 13 (step A6). Finally, the execution device 6 The execution format program 11 is executed (step A7).

ここで、プログラム自動生成装置2における弁別手段やビルド指示書作成手段の処理動作の具体例について、図3のフローチャートと図4〜図10の概念図を参照して詳細に説明する。   Here, a specific example of the processing operation of the discriminating unit and the build instruction creating unit in the automatic program generation device 2 will be described in detail with reference to the flowchart of FIG. 3 and the conceptual diagrams of FIGS.

このうち、図3のフローチャートは図2におけるステップA4の主要部、つまり、ビルド指示書12の自動作成に関わる処理を示したもので、ソースプログラム群10のプログラム自動生成に関わる公知の処理に関しては説明を省略している。   Among these, the flowchart of FIG. 3 shows the main part of step A4 in FIG. 2, that is, the process related to the automatic creation of the build instruction sheet 12. Regarding the known process related to the automatic program generation of the source program group 10, The explanation is omitted.

また、図4はプログラム自動生成装置2で生成されたビルド時に実行形式プログラムを互いに参照する関係にあるソースプログラム群10の一例を示した一覧表であり、ソースプログラム群10を構成する各プログラムの内容については具体的な記載を省略し、プログラムを象徴する値としてのプログラム名a,b,c,・・・によってプログラムを代表させている。例えば、図4における第1行目のソースプログラムa,cについて言えば、aが参照する側のプログラムであり、cはaによって参照される参照対象のプログラムである。図4における第2行目のソースプログラムbには参照対象のプログラムは存在しない。他のプログラムに係る記載の意味合いもこれと同様である。   FIG. 4 is a list showing an example of the source program group 10 having a relationship of referring to the executable program generated at the time of building generated by the automatic program generation device 2, and for each program constituting the source program group 10. The detailed description of the contents is omitted, and the programs are represented by program names a, b, c,... As values symbolizing the programs. For example, regarding the source programs a and c on the first line in FIG. 4, a is a program referred to by a, and c is a program to be referenced referenced by a. There is no program to be referenced in the source program b on the second line in FIG. The meanings of descriptions relating to other programs are the same as above.

そして、図5,図6,図7の各々は、プログラムを象徴する値となるプログラム名を書き出す際に使用される第一,第二,第三のファイルの構造の概略を示したもので、ここでは、これらのファイルの各々を参照先一覧表A,B,Cと呼称している。   5, 6, and 7 schematically show the structure of the first, second, and third files used when writing the program name that is a value that represents the program. Here, each of these files is referred to as a reference list A, B, C.

また、図8は最終的にビルド指示書12として機能することになるビルド順一覧ファイルの構造の概略を示したもので、ここでは、このファイルをビルド順一覧表と呼称している。   FIG. 8 shows an outline of the structure of a build order list file that finally functions as the build instruction sheet 12. Here, this file is called a build order list.

これらの参照先一覧表A,B,Cとビルド順一覧表は、実際には、プログラム自動生成装置2内に構築される一時記憶用のファイルであり、このうちビルド順一覧表については、ビルド指示書12の自動作成に関わる処理が完了した時点で、ビルド指示書12として業務仕様データ保管装置3に格納して保存されるようになっている。   These reference destination lists A, B, and C and the build order list are actually temporary storage files built in the automatic program generation apparatus 2. Among these, the build order list is the build order list. When processing related to the automatic creation of the instruction sheet 12 is completed, it is stored and stored in the business specification data storage device 3 as the build instruction sheet 12.

次に、図3を参照して具体的な処理動作を説明する。   Next, a specific processing operation will be described with reference to FIG.

まず、プログラム自動生成装置2を用いてソースプログラム群10を自動生成する前述のステップA4の処理の実行中に、ビルド時に他の実行形式プログラムを参照するソースプログラムまたはメイクファイル等のプログラム構成情報の行の生成が検出された場合、他の実行形式プログラムの参照が検出されたプログラムを象徴するプログラム名と参照対象のプログラムを象徴するプログラム名とを1レコードとして図5に示されるような参照先一覧表Aおよび図6に示されるような参照先一覧表Bの各々に出力する。
また、他の実行形式プログラムの参照が検出されなかった場合には、当該プログラムを象徴するプログラム名を1レコードとして参照先一覧表Bにのみ出力する。
これらの処理は、1つの実行形式プログラムの元となるソースプログラム一式が生成される度に行われるので、結果的に、ソースプログラム群10を構成する全てのプログラムに対して行われることになる(以上、ステップB1)。
First, during the execution of the processing of the above-described step A4 for automatically generating the source program group 10 using the automatic program generation device 2, the program configuration information such as a source program or makefile that refers to another executable program at the time of building is described. When the generation of a row is detected, a reference destination as shown in FIG. 5 is made up with a program name symbolizing a program from which a reference to another executable program is detected and a program name symbolizing a reference target program as one record. It outputs to each of the list A and the reference list B as shown in FIG.
If no reference to another executable program is detected, the program name symbolizing the program is output only to the reference list B as one record.
Since these processes are performed every time a set of source programs as a source of one executable program is generated, as a result, the processes are performed for all programs constituting the source program group 10 ( Step B1).

従って、例えば、図4における第1行目のソースプログラムa,cが生成された時点では、参照先一覧表Aおよび参照先一覧表Bの第1行に図5および図6に示されるようにして夫々プログラム名a,cが書き出されることになる。次いで、図4における第2行目のソースプログラムbが生成されるが、この場合、参照対象のプログラムは存在しないので、参照先一覧表Bの第2行にのみ図6に示されるようにしてプログラム名bが書き出される(参照先一覧表Aに対する書き出しは行われない)。そして、図4における第3行目のソースプログラムcが生成されるが、この場合も、参照対象のプログラムは存在しないので、参照先一覧表Bの第3行にのみ図6に示されるようにしてプログラム名cが書き出される。また、図4における第4行目のソースプログラムd,bが生成されると、参照先一覧表Aの第2行および参照先一覧表Bの第4行に図5および図6に示されるようにして夫々プログラム名d,bが書き出されることになる。ソースプログラム群10の全てのプログラムをサーチして係る処理が繰り返し実行される結果、図4に示されるようなソースプログラム群10からは、最終的に、図5,図6に示されるような参照先一覧表A,Bが得られることになる。   Therefore, for example, when the source programs a and c on the first line in FIG. 4 are generated, the first lines of the reference destination list A and the reference destination list B are shown in FIG. 5 and FIG. Thus, program names a and c are written, respectively. Next, the source program b on the second line in FIG. 4 is generated. In this case, since there is no program to be referred to, only the second line of the reference list B is as shown in FIG. The program name b is written (writing to the reference list A is not performed). Then, the source program c on the third line in FIG. 4 is generated. In this case as well, there is no program to be referred to, so that only the third line of the reference list B is shown in FIG. Program name c is written out. When the source programs d and b on the fourth line in FIG. 4 are generated, the second line of the reference destination list A and the fourth line of the reference destination list B are shown in FIG. 5 and FIG. Thus, the program names d and b are written, respectively. As a result of searching for all the programs in the source program group 10 and repeatedly executing such processing, the source program group 10 as shown in FIG. 4 is finally referred to as shown in FIGS. The destination lists A and B are obtained.

このようにして参照先一覧表A,Bに対するプログラム名の書き出し処理が終わると、参照先一覧表Aの先頭から順にレコードを1レコード毎に読み込んで図7に示されるような参照先一覧表Cに書き出す第一のレコード書き出し工程(ステップB2)と、このレコードに含まれる参照対象のプログラムを象徴するプログラム名を有するレコードを参照先一覧表Bから読み込んで参照先一覧表Cに次の1レコードとして書き出す第二のレコード書き出し工程(ステップB3)とを実行した後、第二のレコード書き出し工程で参照先一覧表Cに書き出したレコードに参照対象のプログラムを象徴するプログラム名が含まれているか否かを判定する(ステップB4)。   When the program name writing process for the reference list A and B is completed in this way, the records are read one by one from the top of the reference list A and the reference list C as shown in FIG. The first record writing process (step B2) to be written to the record, and the record having the program name symbolizing the program to be referenced contained in this record is read from the reference list B and the next one record in the reference list C After the second record writing process (step B3) to be written out as a record, whether or not the record written in the reference list C in the second record writing process includes a program name symbolizing the program to be referred to. Is determined (step B4).

そして、参照対象のプログラムを象徴するプログラム名が含まれていれば、前記と同様にして第二のレコード書き出し工程(ステップB3)を繰り返し実行する一方、参照対象のプログラムを象徴するプログラム名が含まれていなければ、ステップB2の処理で1回ずつ行われる参照先一覧表Aからのレコードの読み込みが完了するまで、第一のレコード書き出し工程(ステップB2)と第二のレコード書き出し工程(ステップB3)を参照先ファイル生成工程として繰り返し実行する。   If the program name symbolizing the reference target program is included, the second record writing step (step B3) is repeatedly executed in the same manner as described above, while the program name symbolizing the reference target program is included. If not, the first record writing process (step B2) and the second record writing process (step B3) until the reading of records from the reference destination list A, which is performed once in the process of step B2, is completed. ) Is repeatedly executed as a reference file generation step.

従って、例えば、図5,図6に示される参照先一覧表A,Bの例では、まず、参照先一覧表Aの先頭から第1行のレコードが読み込まれ、プログラム名a,cが参照先一覧表Cの第1行に図7に示されるようにして書き出される(第一のレコード書き出し工程)。そして、このレコードには参照対象のプログラム名cが含まれているので、更に、この参照対象プログラム名cをプログラム名として有するレコードが参照先一覧表Bの第3行から読み込まれ、このプログラム名cが、参照先一覧表Cの第2行に図7に示されるようにして書き出されることになる(第二のレコード書き出し工程)。ここで読み込まれた参照先一覧表Bの第3行のレコードには参照対象のプログラム名は含まれていないので、第二のレコード書き出し工程は一旦終了し、改めて、参照先一覧表Aから第2行のレコードが読み込まれて、そのプログラム名d,bが参照先一覧表Cの第3行に図7に示されるようにして書き出され(第一のレコード書き出し工程)、この参照対象プログラム名bをプログラム名として有するレコードが参照先一覧表Bの第2行から読み込まれ、このプログラム名bが、参照先一覧表Cの第4行に図7に示されるようにして書き出されることになる(第二のレコード書き出し工程)。ここで読み込まれた参照先一覧表Bの第2行のレコードには参照対象のプログラム名は含まれていないので、第二のレコード書き出し工程は一旦終了し、改めて、参照先一覧表Aから第3行のレコードが読み込まれる。
なお、図5の例では参照されるプログラムが1つのみであるから、第二のレコード書き出し工程は各1回ずつ実行されるだけであるが、1つの参照する側のプログラムが連続的に複数のプログラムを参照している場合、つまり、図5の左欄に1つの参照する側のプログラムがあって右欄に複数の参照される側のプログラムが連続的に記載されるような状況下にあっては、ステップB3における第二のレコード書き出し工程は其の参照の数だけ繰り返し実行されることになる。
Therefore, for example, in the examples of the reference destination lists A and B shown in FIGS. 5 and 6, first, the record of the first row is read from the top of the reference destination list A, and the program names a and c are referred to. It is written in the first row of the list C as shown in FIG. 7 (first record writing step). Since this record includes the program name c to be referenced, a record having the program name c as the program name to be referenced is read from the third row of the reference list B, and this program name c is written in the second row of the reference destination list C as shown in FIG. 7 (second record writing step). Since the record of the reference target program is not included in the record of the third row of the reference destination list B read here, the second record writing process is temporarily ended, and the reference destination list A starts from the reference destination list A again. When two lines of records are read, the program names d and b are written in the third line of the reference list C as shown in FIG. 7 (first record writing step). A record having the name b as the program name is read from the second line of the reference list B, and this program name b is written in the fourth line of the reference list C as shown in FIG. (Second record writing process). Since the record of the reference target program name is not included in the record in the second row of the reference destination list B read here, the second record writing process is temporarily ended, and the reference destination list A starts from the reference destination list A. Three lines of records are read.
In the example of FIG. 5, since only one program is referred to, the second record writing process is executed only once each time. In other words, in the situation where there is one program on the left side in FIG. 5 and a plurality of programs on the right side are continuously described in the right column. In this case, the second record writing process in step B3 is repeatedly executed for the number of references.

このようにして参照先ファイル生成工程が繰り返し実行される結果、最終的に、この例では図7に示されるような参照先一覧表Cが得られることになる。   As a result of repeatedly executing the reference destination file generation step in this way, finally, in this example, a reference destination list C as shown in FIG. 7 is obtained.

次いで、弁別手段およびビルド指示書作成手段は、参照先一覧表Bに書き込まれたレコードから参照対象のプログラム名を記憶していないレコードのみを抽出し、これらのレコードを書き出しの順に逆行して図8に示されるようなビルド順一覧表に順に書き出す単独ビルド可能プログラムを象徴する値の書き出し工程を実行する(ステップB5)。   Next, the discriminating means and the build instruction creating means extract only records that do not store the program name to be referred to from the records written in the reference destination list B, and reverse these records in the order of writing. A value writing process symbolizing a single buildable program to be sequentially written in the build order list as shown in FIG. 8 is executed (step B5).

従って、例えば、図6に示される参照先一覧表Bの例では、第2行,第3行,第6行,第7行のレコードが抽出され、これらのレコードに記憶されたプログラム名b,c,f,gが書き出しの順に逆行してg,f,c,bの順で、図8に示されるようにして、ビルド順一覧表の第1行,第2行,第3行,第4行に書き出されることになる。図6の参照先一覧表Bからも明らかなように、これらのプログラムは他の実行形式プログラムの参照を必要とせずに単独で実行形式プログラムに変換可能なプログラムである。このようにして、ビルド順一覧表の先頭部分には、まず、単独でビルド可能なプログラムを表すプログラム名が弁別して記憶されることになる。   Therefore, for example, in the example of the reference destination list B shown in FIG. 6, the records of the second row, the third row, the sixth row, and the seventh row are extracted, and the program name b, stored in these records, As shown in FIG. 8, c, f, and g are reversed in the order of writing and in the order of g, f, c, and b, as shown in FIG. It will be written in 4 lines. As is clear from the reference destination list B in FIG. 6, these programs are programs that can be independently converted into an executable program without requiring reference to another executable program. In this way, first, program names representing programs that can be independently built are discriminated and stored at the top of the build order list.

次いで、弁別手段およびビルド指示書作成手段は、参照先一覧表Cに書き込まれたレコードから参照対象となるプログラムを象徴するプログラム名を記憶しているレコードのみを抽出し、その参照対象プログラム名を書き出しの順に逆行してビルド順一覧表に書き出す参照先プログラムを象徴する値の書き出し工程を実行する(ステップB6)。   Next, the discriminating means and the build instruction creating means extract only the record storing the program name symbolizing the program to be referred to from the record written in the reference destination list C, and the reference target program name is extracted. A process of writing a value representing a reference destination program to be written in the build order list by going backward in the order of writing is executed (step B6).

従って、例えば、図7に示される参照先一覧表Cの例では、第1行,第3行,第5行のレコードが抽出され、これらのレコードに記憶された参照対象のプログラム名c,b,fが書き出しの順に逆行してf,b,cの順で、図8に示されるようにして、ビルド順一覧表の第5行,第6行,第7行に書き出されることになる。図7の参照先一覧表Cからも明らかなように、これらのプログラムは他のプログラムによって参照されるプログラムであって、これらのプログラムが先に実行形式プログラムに変換されない限り、これらのプログラムを参照しているプログラムを実行形式プログラムに変換することはできない。このようにして、図8に示されるビルド順一覧表においては、単独でビルド可能なプログラムを表すプログラム名のグループの後に次いで、参照元となる他のプログラムよりも先に実行すべきプログラムを象徴するプログラム名のグループが弁別して記憶されることになる。   Therefore, for example, in the example of the reference destination list C shown in FIG. 7, the records of the first row, the third row, and the fifth row are extracted, and the program names c and b of the reference targets stored in these records are extracted. , F are reversed in the order of writing, and are written in the fifth, sixth, and seventh lines of the build order list as shown in FIG. 8 in the order of f, b, and c. As is clear from the reference list C in FIG. 7, these programs are programs that are referred to by other programs, and these programs are referred to unless they are first converted into executable programs. Cannot be converted into an executable program. In this way, in the build order list shown in FIG. 8, a program name group representing a program that can be independently built is followed by a program to be executed before another program that is a reference source. A group of program names to be discriminated is memorized.

次いで、弁別手段およびビルド指示書作成手段は、参照先一覧表Cに書き込まれたレコードを代表するプログラム名を全て抽出し、書き出しの順に逆行してビルド順一覧表に書き出すプログラムを象徴する値の書き出し工程を実行する(ステップB7)。   Next, the discriminating means and the build instruction creating means extract all program names representing the records written in the reference destination list C, go back in the order of writing, and represent values representing the programs to be written in the build order list. The writing process is executed (step B7).

従って、例えば、図7に示される参照先一覧表Cの例では、第1行,第2行,第3行,第4行,第5行,第6行のレコードが全て抽出され、これらのレコードに記憶されたプログラム名a,c,d,b,e,fが書き出しの順に逆行してf,e,b,d,c,aの順で、図8に示されるようにして、ビルド順一覧表の第8行,第9行,第10行,第11行,第12行,第13行に書き出されることになる。図8のビルド順一覧表からも明らかなように、このプログラムを象徴する値の書き出し工程が終わった段階では、単独でビルド可能なプログラムを象徴するプログラム名のグループと参照元となる他のプログラムよりも先に実行すべきプログラムを象徴するプログラム名のグループに次いで、他のプログラムを参照する必要のあるプログラムのプログラム名を含んだ全てのプログラム名が、一部重複した状態で、ビルド順一覧表に漏れなく記憶されることになる。   Therefore, for example, in the example of the reference destination list C shown in FIG. 7, all the records of the first row, the second row, the third row, the fourth row, the fifth row, and the sixth row are extracted. The program names a, c, d, b, e, and f stored in the record are reversed in the order of writing, and the build is performed in the order of f, e, b, d, c, and a as shown in FIG. The data is written in the eighth, ninth, tenth, eleventh, twelfth, and thirteenth rows of the order list. As is clear from the build order list of FIG. 8, at the stage where the process of writing values that symbolize this program is completed, a group of program names that symbolize a program that can be independently built and other programs that serve as reference sources Next to the program name group that symbolizes the program to be executed before, all the program names including the program names of programs that need to refer to other programs are partially duplicated, and the build order list It will be stored in the table without omission.

そして最後に、ビルド指示書作成手段が、ビルド順一覧表の先頭から順にプログラム名の重複を削除することにより、他のプログラムの参照を必要としないプログラムの名称のグループ,他のプログラムで参照されるプログラムの名称のグループ,他のプログラムの参照を必要とするプログラムの名称のグループといった並び順を崩すことなく、ビルド順一覧表から重複するプログラム名を抹消し、最終的に、このビルド順一覧表の内容をビルド指示書12として業務仕様データ保管装置3に格納するビルド順一覧ファイル生成工程を実行する(ステップB8)。   And finally, the build instruction creation means is referred to by other program groups and program name groups that do not require reference to other programs by removing duplicate program names from the top of the build order list. Delete the duplicate program names from the build order list without losing the order of the program names and other program names that need to be referenced by other programs. A build order list file generation step is executed in which the contents of the table are stored in the business specification data storage device 3 as the build instruction sheet 12 (step B8).

従って、例えば、図8に示されるビルド順一覧表の例では、第2行に記憶されたプログラム名cと重複する第5行,第8行のレコードが削除され、第3行に記憶されたプログラム名cと重複する第7行,第12行のレコードが削除され、第4行に記憶されたプログラム名bと重複する第6行,第10行のレコードが削除され、最終的には、図8に示されるビルド順一覧表の第1行,第2行,第3行,第4行,第9行,第11行,第13行に残されたプログラム名g,f,c,b,e,d,aのプログラム名が、図9に示されるようにしてビルド順一覧表の第1行,第2行,第3行,第4行,第5行,第6行,第7行に記憶され、このビルド順一覧表がビルド指示書12として利用されることになる。   Therefore, for example, in the example of the build order list shown in FIG. 8, the records in the fifth and eighth lines that overlap with the program name c stored in the second line are deleted and stored in the third line. The records in the seventh and twelfth lines that overlap with the program name c are deleted, the records in the sixth and tenth lines that overlap with the program name b stored in the fourth line are deleted, and finally, Program names g, f, c, b left in the first, second, third, fourth, ninth, eleventh, and thirteenth rows of the build order list shown in FIG. , E, d, a as shown in FIG. 9, the first row, second row, third row, fourth row, fifth row, sixth row, seventh row of the build order list. The build order list is used as the build instruction sheet 12.

このように、ビルド指示書12によって指示されるプログラムの変換順序は、他のプログラムの参照を必要とするプログラムと参照対象となるプログラムとの関係において、必ず、参照を必要とするプログラムよりも参照対象となるプログラムの方が先に位置するようにソーティングされ、このビルド指示書12に従ってソースプログラム群10の各プログラムを順に実行形式プログラムに変換することが可能となる。   In this way, the conversion order of the program specified by the build instruction 12 is always referred to more than the program that requires reference in the relationship between the program that requires reference to another program and the program to be referenced. Sorting is performed so that the target program is positioned first, and each program of the source program group 10 can be sequentially converted into an executable program according to the build instruction 12.

例えば、図4に示されるソースプログラム群10と図9に示されるビルド順一覧表からも分かるように、この例では、ソースプログラム群10の第1行におけるプログラムaがプログラムcの参照を必要とし、ソースプログラム10の第4行におけるプログラムdがプログラムbの参照を必要とし、ソースプログラム群10の第5行におけるプログラムeがプログラムfの参照を必要としているが、図9のビルド順一覧表では、参照を必要とするプログラムaよりも参照対象となるプログラムcが先に位置し、参照を必要とするプログラムdよりも参照対象となるプログラムbが先に位置し、参照を必要とするプログラムeよりも参照対象となるプログラムfが先に位置し、これらの関係が崩れることはない。   For example, as can be seen from the source program group 10 shown in FIG. 4 and the build order list shown in FIG. 9, in this example, the program a in the first line of the source program group 10 requires reference to the program c. The program d in the fourth line of the source program 10 requires reference to the program b, and the program e in the fifth line of the source program group 10 requires reference to the program f. In the build order list of FIG. The program c to be referred to precedes the program a that requires reference, the program b to be referred to precedes the program d that requires reference, and the program e that requires reference In addition, the program f to be referred to is positioned first, and the relationship between these is not lost.

次に、図10を参照して本発明を適用したプログラム実行システムの他の一実施例について簡単に説明する。   Next, another embodiment of the program execution system to which the present invention is applied will be briefly described with reference to FIG.

このプログラム実行システム22は、図1に示したプログラム実行システム1の構成要素に加え、更に、ビルド開始指示装置23を併設したものであり、ビルド開始指示装置23からビルド日時(ソースプログラム群を実行形式プログラムに変換した日時)とバージョン番号(ソースプログラム群及び実行形式プログラムの世代を表す値)を入力してビルドの実行を指示することにより、前述したビルド指示書12および配置指示書13に加え、更に、ビルド日時とバージョン番号とを含むバージョン情報24が生成され、このバージョン情報24がビルド指示書12および配置指示書13と共に自動生成物保管装置4に格納されるようになっている。   In addition to the components of the program execution system 1 shown in FIG. 1, the program execution system 22 is further provided with a build start instruction device 23. The build start instruction device 23 executes the build date and time (execute the source program group). In addition to the build instruction 12 and the arrangement instruction 13 described above, the execution date is instructed by inputting the date and time converted into the format program) and the version number (a value representing the generation of the source program group and the executable program). Furthermore, version information 24 including the build date and version number is generated, and this version information 24 is stored in the automatic product storage device 4 together with the build instruction 12 and the arrangement instruction 13.

本発明は、複雑な相互依存関係をもつ大量のプログラムのビルド順を自動的に決定するといった用途に適用できる。   The present invention can be applied to a purpose of automatically determining the build order of a large number of programs having complicated interdependencies.

本発明を適用したプログラム実行システムの構成の概略について示した機能ブロック図である。It is the functional block diagram shown about the outline of the structure of the program execution system to which this invention is applied. プログラム実行システムにおける全体的な処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the whole process in a program execution system. プログラム自動生成装置のプロセッサによって実行されるビルド指示書の自動作成処理について示したフローチャートである。It is the flowchart shown about the automatic creation process of the build instruction document performed by the processor of a program automatic generation apparatus. プログラム自動生成装置で生成されたソースプログラム群の一例を一覧表で示したものである。An example of a group of source programs generated by the automatic program generation device is shown in a list. プログラムを象徴する値を書き出す際に使用される参照先一覧表A(第一のファイル)の構造の概略を示した概念図である。It is the conceptual diagram which showed the outline of the structure of the reference destination list A (1st file) used when writing out the value which symbolizes a program. プログラムを象徴する値を書き出す際に使用される参照先一覧表B(第二のファイル)の構造の概略を示した概念図である。It is the conceptual diagram which showed the outline of the structure of the reference destination list B (2nd file) used when writing the value which symbolizes a program. プログラムを象徴する値を書き出す際に使用される参照先一覧表C(第三のファイル)の構造の概略を示した概念図である。It is the conceptual diagram which showed the outline of the structure of the reference destination list C (3rd file) used when writing the value which symbolizes a program. ビルド順一覧ファイル(ビルド順一覧表)の構造の概略を示した概念図である。It is the conceptual diagram which showed the outline of the structure of a build order list file (build order list). 最終的に得られるビルド順一覧ファイル(ビルド順一覧表)の一例を示した概念図である。It is the conceptual diagram which showed an example of the build order list file (build order list) finally obtained. 本発明を適用したプログラム実行システムの他の構成例について示した機能ブロック図である。It is the functional block diagram shown about the other structural example of the program execution system to which this invention is applied.

符号の説明Explanation of symbols

1 プログラム実行システム
2 ビルド指示書作成機能付プログラム自動生成装置
3 業務仕様データ保管装置
4 自動生成物保管装置
5 ビルド装置
6 実行装置
7 共通部品データ(ソースプログラム群の生成に必要とされる設計情報)
8 業務仕様データ(ソースプログラム群の生成に必要とされる設計情報)
9 配置情報データ(配置設計情報)
10 ソースプログラム群
11 実行形式プログラム
12 ビルド指示書
13 配置指示書
22 プログラム実行システム
23 ビルド開始指示装置
24 バージョン情報
A 参照先一覧表(第一のファイル)
B 参照先一覧表(第二のファイル)
C 参照先一覧表(第三のファイル)
DESCRIPTION OF SYMBOLS 1 Program execution system 2 Program automatic generation apparatus with a build instruction preparation function 3 Business specification data storage apparatus 4 Automatic product storage apparatus 5 Build apparatus 6 Execution apparatus 7 Common part data (Design information required for generation of source program group) )
8 Business specification data (design information required for generating source programs)
9 Placement information data (placement design information)
10 Source Program Group 11 Executable Program 12 Build Instruction 13 Placement Instruction 22 Program Execution System 23 Build Start Instructing Device 24 Version Information A Reference List (First File)
B Reference list (second file)
C Reference list (third file)

Claims (7)

ビルド時に実行形式プログラムを互いに参照する関係にあるソースプログラム群を構成する複数のプログラムを一連の実行形式プログラムに変換する際に前記各プログラムの変換順序を指定するためのビルド指示書の自動作成方法であって、
設計情報に基いて前記ソースプログラム群を生成したプログラム自動生成装置によって、前記ソースプログラム群を構成する全てのプログラム及びプログラム構成情報の各行をサーチしてビルド時の各プログラムにおける他の実行形式プログラムの参照の有無を検出し、
実行形式プログラムの参照が検出された場合には、参照が検出されたプログラムよりも参照対象のプログラムが先に位置するように前記各プログラムの並び順のソーティングを行い、ソーティングされたプログラムの並び順を各プログラムの変換順序としてビルド指示書を生成することを特徴としたビルド指示書の自動作成方法。
Method for automatically creating a build instruction for designating the conversion order of each program when converting a plurality of programs constituting a group of source programs that refer to each other at the time of building into an executable program group Because
The program automatic generation device that generates the source program group based on the design information searches all lines of the source program group and each line of the program configuration information to find other executable programs in each program at the time of build. Detect the presence of references,
When the reference of the executable program is detected, the sorting order of the programs is sorted so that the program to be referenced is positioned before the program in which the reference is detected. A method for automatically creating a build instruction characterized by generating a build instruction as a conversion order of each program.
前記ソースプログラム群を構成する全てのプログラム及びプログラム構成情報の各行をサーチしてビルド時の各プログラムにおける他の実行形式プログラムの参照の有無を検出した後、
単独でビルド可能なプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとを識別し、前記各プログラムを、単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングを行うことをことを特徴とした請求項1記載のビルド指示書の自動作成方法。
After searching all the programs constituting the source program group and each line of the program configuration information to detect the presence or absence of other executable programs in each program at the time of build,
A program that can be built independently and a program that requires reference to another executable program at the time of building are identified, and each of the programs is referred to as an executable program that can be built independently or when another program is built. 2. The method for automatically creating a build instruction according to claim 1, wherein sorting is performed in the order of a program to be executed and a program that requires reference to another executable program at the time of building.
前記ソースプログラム群を構成する全てのプログラム及びプログラム構成情報の各行をサーチしてビルド時の各プログラムにおける他の実行形式プログラムの参照の有無を検出した後、
プログラムの参照が検出された場合には、プログラムの参照が検出されたプログラムと参照対象のプログラムの各々を象徴する値を1レコードとして第一のファイルおよび第二のファイルに書き出す一方、プログラムの参照が検出されなかった場合には、当該プログラムを象徴する値を1レコードとして前記第二のファイルにのみ書き出し、
前記第一のファイルの先頭から順にレコードを1レコード毎に読み込んで第三のファイルに書き出す第一のレコード書き出し工程と、このレコードに含まれる参照対象のプログラムを象徴する値をプログラムを象徴する値として有するレコードを前記第二のファイルから読み込んで該第三のファイルに次の1レコードとして書き出す第二のレコード書き出し工程とを実行した後、前記第二のレコード書き出し工程で前記第三のファイルに書き出したレコードに参照対象のプログラムを象徴する値が含まれているか否かを判定し、参照対象のプログラムを象徴する値が含まれていれば前記第二のレコード書き出し工程を繰り返し実行する一方、参照対象のプログラムを象徴する値が含まれていなければ、第一のファイルからのレコードの読み込みが終わるまで、前記第一のレコード書き出し工程と第二のレコード書き出し工程とを繰り返し実行する参照先ファイル生成工程と、
前記第二のファイルに書き込まれたレコードから参照対象のプログラムを象徴する値を記憶していないレコードを書き出しの順に逆行して抽出してビルド順一覧ファイルに書き出す単独ビルド可能なプログラムを象徴する値の書き出し工程と、前記第三のファイルに書き込まれたレコードから参照対象のプログラムを象徴する値を記憶しているレコードの参照対象のプログラムを象徴する値を書き出しの順に逆行して抽出してビルド順一覧ファイルに書き出す参照先プログラムを象徴する値の書き出し工程と、前記第三のファイルに書き込まれたレコードのプログラムを象徴する値を書き出しの順に逆行して抽出して前記ビルド順一覧ファイルに書き出すプログラムを象徴する値の書き出し工程と、
前記ビルド順一覧ファイルの先頭から順にプログラムを象徴する値の重複を削除するビルド順一覧ファイル生成工程とを実行して、
参照が検出されたプログラムを象徴する値よりも参照対象のプログラムを象徴する値が先に位置するように前記プログラムを象徴する値のソーティングを行うことを特徴とした請求項1または請求項2記載のビルド指示書の自動作成方法。
After searching all the programs constituting the source program group and each line of the program configuration information to detect the presence or absence of other executable programs in each program at the time of build,
When a program reference is detected, a value representing each of the program in which the program reference is detected and the program to be referenced is written as one record in the first file and the second file, while the program reference is written. Is not detected, the value representing the program is written as one record only in the second file,
A first record writing step of reading records one by one in order from the top of the first file and writing them to a third file, and a value that symbolizes the program to be referred to included in this record. The second record writing step for reading the record having the second record from the second file and writing it as the next record to the third file, and then writing the record to the third file in the second record writing step. It is determined whether or not a value that symbolizes the reference target program is included in the written record, and if the value that symbolizes the reference target program is included, the second record writing step is repeatedly executed, If no value representing the referenced program is included, the record is read from the first file. Until finished, the referenced file generating step of repeatedly executing the said first record writing step and the second record writing process,
A value that symbolizes a program that can be independently built that is extracted from the record written in the second file by reversely extracting a record that does not store a value that symbolizes the reference target program and writing it to the build order list file. And writing and extracting the values symbolizing the program to be referenced from the records written in the third file by going backward in the order of writing. A process of writing a value symbolizing a reference program to be written to the sequential list file and a value symbolizing the program of the record written to the third file are extracted by going backwards in the order of writing and written to the build order list file. The process of writing values that symbolize the program,
Executing a build order list file generation step for removing duplication of values symbolizing the program in order from the top of the build order list file;
3. The value symbolizing the program is sorted so that the value symbolizing the program to be referred to is positioned before the value symbolizing the program from which the reference is detected. How to automatically create build instructions.
設計情報に基いてソースプログラム及びプログラム構成情報を生成するプログラム自動生成装置のプロセッサを、
前記ソースプログラム及びプログラム構成情報を構成する各行をサーチして単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別する弁別手段と、前記各プログラムの並び順を単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングしてビルド指示書を生成するビルド指示書作成手段として機能させるためのビルド指示書自動作成プログラム。
A processor of an automatic program generation device that generates a source program and program configuration information based on design information,
A program that can be independently built by searching each line constituting the source program and program configuration information, a program that is referred to as an executable program at the time of building another program, and a reference to another executable program at the time of building is required Discriminating means for discriminating between programs, programs that can be built independently in the order of the programs, programs that are referenced as executable programs when building other programs, and references to other executable programs when building A build instruction automatic creation program for functioning as a build instruction creation means for generating a build instruction by sorting in order of programs to be executed.
設計情報に基いてソースプログラム及びプログラム構成情報を生成するプログラム自動生成装置であって、
前記ソースプログラム及びプログラム構成情報を構成する各行をサーチして単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別する弁別手段と、弁別された前記各プログラムを単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングしてビルド指示書を生成するビルド指示書作成手段とを備えたことを特徴とするビルド指示書作成機能付プログラム自動生成装置。
An automatic program generation device that generates a source program and program configuration information based on design information,
A program that can be independently built by searching each line constituting the source program and program configuration information, a program that is referred to as an executable program at the time of building another program, and a reference to another executable program at the time of building is required Discriminating means for discriminating between programs, a program capable of independently building each discriminated program, a program referenced as an executable program when building another program, and a reference to another executable program when building And a build instruction creation function-equipped automatic program generation device, comprising: build instruction creation means for generating a build instruction by sorting in order of programs to be executed.
生成されたビルド指示書と前記プログラム自動生成装置に入力された実行形式プログラムの配置設計情報とに基いて実行形式プログラムの配置を特定する配置指示書を自動生成する配置指示書自動生成機能を備えたことを特徴とする請求項5記載のビルド指示書作成機能付プログラム自動生成装置。   Provided with a layout instruction automatic generation function that automatically generates a layout instruction that specifies the layout of an executable program based on the generated build instruction and the layout design information of the executable program input to the program automatic generation device 6. The program automatic generation apparatus with a build instruction creation function according to claim 5, ソースプログラム群の生成に必要とされる設計情報と実行形式プログラムの配置設計情報を格納する業務仕様データ保管装置と、前記業務仕様データ保管装置に格納された設計情報に基いてソースプログラム群を生成するプログラム自動生成装置と、前記ソースプログラム群を構成するプログラム及びプログラム構成情報を実行形式プログラムに変換する順序を指定するビルド指示書と前記ソースプログラム群とに基いて実行形式プログラムを生成するビルド装置と、前記プログラム自動生成装置およびビルド装置で生成されたプログラム群を格納する自動生成物保管装置と、前記実行形式プログラムを格納して実行する実行装置とを備えたプログラム実行システムであって、
前記プログラム自動生成装置は、ソースプログラム群を構成する各プログラム及びプログラム構成情報をサーチして単独でビルド可能なプログラムと他のプログラムのビルド時に実行形式プログラムとして参照されるプログラムとビルド時に他の実行形式プログラムの参照を必要とするプログラムとに弁別する弁別手段と、弁別された各プログラムを単独でビルド可能なプログラム,他のプログラムのビルド時に実行形式プログラムとして参照されるプログラム,ビルド時に他の実行形式プログラムの参照を必要とするプログラムの順にソーティングしてビルド指示書を生成するビルド指示書作成手段と、生成されたビルド指示書および前記業務仕様データ保管装置からプログラム自動生成装置に入力された実行形式プログラムの配置設計情報に基いて実行形式プログラムの配置を特定する配置指示書を自動生成する配置指示書自動生成機能とを備え、
前記実行装置は、前記自動生成物保管装置に格納された実行形式プログラムを前記配置指示書に基いて格納し実行するように構成されていることを特徴とするプログラム実行システム。

A business specification data storage device for storing design information required for generating a source program group and layout design information for an executable program, and generating a source program group based on the design information stored in the business specification data storage device Automatic program generating apparatus for executing the program, and a build apparatus for generating the executable program based on the build instruction specifying the order of converting the program constituting the source program group and the program configuration information into the executable program, and the source program group A program execution system comprising: an automatic product storage device that stores a program group generated by the program automatic generation device and the build device; and an execution device that stores and executes the execution format program,
The program automatic generation device searches for each program constituting the source program group and program configuration information to independently build a program, a program that is referred to as an executable program at the time of building another program, and another execution at the time of build Discriminating means for discriminating into programs that need to refer to formal programs, programs that can build each discriminated program independently, programs that are referenced as executable programs when building other programs, and other executions when building Build instruction creation means for generating a build instruction by sorting in order of programs that require reference to formal programs, and execution of the generated build instruction and the business specification data storage device input to the automatic program generator Format program layout design information And a placement instruction automatic generation function for automatically generating a layout instruction for specifying the arrangement of the executable program on the basis of,
The execution device is configured to store and execute an execution format program stored in the automatic product storage device based on the arrangement instruction.

JP2004019910A 2004-01-28 2004-01-28 Automatic build instruction document generating method, and program and system therefor Withdrawn JP2005215862A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004019910A JP2005215862A (en) 2004-01-28 2004-01-28 Automatic build instruction document generating method, and program and system therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004019910A JP2005215862A (en) 2004-01-28 2004-01-28 Automatic build instruction document generating method, and program and system therefor

Publications (1)

Publication Number Publication Date
JP2005215862A true JP2005215862A (en) 2005-08-11

Family

ID=34903990

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004019910A Withdrawn JP2005215862A (en) 2004-01-28 2004-01-28 Automatic build instruction document generating method, and program and system therefor

Country Status (1)

Country Link
JP (1) JP2005215862A (en)

Similar Documents

Publication Publication Date Title
US10970474B2 (en) Method and system for editing text with a find and replace function leveraging derivations of the find and replace input
JP4541418B2 (en) Programmable controller peripheral device, replacement method and program
Stănciulescu et al. Concepts, operations, and feasibility of a projection-based variation control system
JPH10507016A (en) System, method and compiler preprocessor for conditionally compiling software compilation units
JP3577400B2 (en) System design equipment and data warehouse design system
JP2009104252A (en) Debugging support device and debugging support method
JP5405684B1 (en) Source program programming language converter
JP2009048259A (en) Program conversion method and program for conversion
JP2538630B2 (en) Automatic test item selection system
JP2005215862A (en) Automatic build instruction document generating method, and program and system therefor
US20060168556A1 (en) Engineering system for distributed development and development by a number of users
JP4848772B2 (en) Program generating apparatus and program generating program
JPH06110733A (en) Test case generating device of program
JP2000242485A (en) System and method for supporting programming language translation program development and recording medium
JPH0667871A (en) Automatic program updating system
JPH11154093A (en) Program compiler and storage medium recording compiler program
Painter et al. A model for software plans
JP2001236243A (en) Debug method and recording medium with program for debug recorded
JP2004348667A (en) Program binding support device and program binding support program
JP2012203726A (en) Method and device for analyzing computer program
JP2588788B2 (en) File extraction method
JP2011048492A (en) Program creation support device, creation support method, and creation support program
JPH06168011A (en) Program generating device
CN111367563A (en) Host version merging method and device
JP2007156863A (en) Information processing method, system, and program

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