JPH05158673A - Different-kind program generation device - Google Patents

Different-kind program generation device

Info

Publication number
JPH05158673A
JPH05158673A JP32442391A JP32442391A JPH05158673A JP H05158673 A JPH05158673 A JP H05158673A JP 32442391 A JP32442391 A JP 32442391A JP 32442391 A JP32442391 A JP 32442391A JP H05158673 A JPH05158673 A JP H05158673A
Authority
JP
Japan
Prior art keywords
program
code
generation
fixed
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP32442391A
Other languages
Japanese (ja)
Inventor
Noriyuki Enomoto
典行 榎本
Ryota Suehiro
亮太 末広
Nobuaki Tanaka
伸明 田中
Yoshihiko Suzuki
芳彦 鈴木
Petsuchi Ibuan
ペッチ イヴァン
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP32442391A priority Critical patent/JPH05158673A/en
Publication of JPH05158673A publication Critical patent/JPH05158673A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To facilitate maintenance control over fixed program codes of a library, etc., of all information equipments which are used on a network required for generation as to the different-kind program generation device which is utilized for application program development in different-kind computer network environment. CONSTITUTION:This device is provided with a fixed program code storage part 15 stored with fixed program code parts, required for the generation program of all information equipments on the network, as program source codes by equipment kinds and versions and a stored information control part 16 which performs network-wide control over the storage part. Consequently, if the program codes of the library of a certain kind of equipment on the network needs to be altered or added, the program codes containing the updated fixed program codes can automatically be generated only by updating the program codes of the fixed program code storage part 15.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、異機種コンピュータネ
ットワーク環境でアプリケーションプログラムの開発に
利用する異機種プログラム生成装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a heterogeneous program generation device used for developing an application program in a heterogeneous computer network environment.

【0002】[0002]

【従来の技術】近年、異機種プログラム生成装置は異機
種上でRPC(Remote Procedure Call:遠隔手続き呼
び出し)を実現するスタブジェネレータなどに利用され
ている。このような異機種プログラム生成装置の例とし
て、フィリップス ビー ギブソンによるもの(Philli
p B. Gibbons,"A Stub Generator for MultilanguagesR
PC in Heterogeneous Environments",IEEE Transaction
s on Software Engineering,Vol.SE-13,No.1,pp.77-87,
Jun.1987)などが知られており、また、異機種上でRP
Cを実現した例として、ブレインらによるもの(Brain
N. Bershad,Dennis T. Ching,Edward D. Lazowska,Jan
Sanislo,and Michael Schwartz,"A Remote Procedure C
all Facility for Interconnecting Heterogeneous Com
puter Systems",IEEE Transactions on Software Engin
eering,Vol.SE-13,No.8,Aug.1987)が知られている。
2. Description of the Related Art In recent years, a heterogeneous program generator has been used as a stub generator or the like for realizing RPC (Remote Procedure Call) on a heterogeneous model. An example of such a heterogeneous program generator is the one by Phillips Bee Gibson (Philli
p B. Gibbons, "A Stub Generator for MultilanguagesR
PC in Heterogeneous Environments ", IEEE Transaction
s on Software Engineering, Vol.SE-13, No.1, pp.77-87,
Jun.1987), etc. are also known, and RP on different models
As an example of realizing C, one by Brain et al. (Brain
N. Bershad, Dennis T. Ching, Edward D. Lazowska, Jan
Sanislo, and Michael Schwartz, "A Remote Procedure C
all Facility for Interconnecting Heterogeneous Com
puter Systems ", IEEE Transactions on Software Engin
eering, Vol.SE-13, No.8, Aug.1987) is known.

【0003】以下、従来の異機種プログラム生成装置に
ついて説明する。図5は従来の異機種プログラム生成装
置の全体構成図を示すものである。図5において、51
は生成するプログラムのRPCインタフェースを記述し
た生成パラメータである。52は生成パラメータを解析
し解析木として作成する解析部である。53は解析部に
よって作成された解析木である。54は生成する機種の
言語仕様情報を格納した言語仕様情報格納部である。5
5は生成する機種のデータ表現情報を格納したデータ表
現情報格納部である。56は解析した生成パラメータの
解析木と該当機種の言語仕様情報とデータ表現情報から
機種対応の生成パラメータで要求したRPCインタフェ
ースを実現するプログラムコードを生成するプログラム
コード生成部である。57は指定された機種のRPCイ
ンタフェースを実現する生成したプログラムコードであ
る。58は生成したRPCインタフェースプログラムコ
ードをコンパイルする該当機種のコンパイラである。5
9はコンパイラ58によってコンパイルされたRPCイ
ンタフェースプログラムのオブジェクトコードである。
510は指定された機種でRPCを実行するRPC実行
ライブラリである。511はコンパイルされたRPCイ
ンタフェースプログラムオブジェクトコード59とRP
C実行ライブラリ510を結合し、生成パラメータ51
で要求されたRPCを実現するRPC実行プログラムで
ある。
A conventional heterogeneous program generator will be described below. FIG. 5 shows an overall configuration diagram of a conventional heterogeneous program generation device. In FIG. 5, 51
Is a generation parameter describing the RPC interface of the program to be generated. An analysis unit 52 analyzes the generated parameters and creates an analysis tree. Reference numeral 53 is an analysis tree created by the analysis unit. A language specification information storage unit 54 stores the language specification information of the model to be generated. 5
A data expression information storage unit 5 stores data expression information of the model to be generated. Reference numeral 56 denotes a program code generation unit that generates a program code that realizes the RPC interface requested by the generation parameter corresponding to the model, from the analyzed tree of the generated parameters analyzed, the language specification information of the model, and the data expression information. Reference numeral 57 is a generated program code for realizing the RPC interface of the designated model. Reference numeral 58 is a compiler of a corresponding model that compiles the generated RPC interface program code. 5
Reference numeral 9 is an object code of the RPC interface program compiled by the compiler 58.
Reference numeral 510 is an RPC execution library for executing RPC with a designated model. 511 is a compiled RPC interface program object code 59 and RP
The C execution library 510 is combined to generate the generation parameter 51.
It is an RPC execution program that realizes the RPC required by.

【0004】以上のように構成された異機種プログラム
生成装置について、以下その動作について説明する。ま
ず、生成パラメータ51を解析部52が読み込み解析
し、解析木53を作成する。この後、プログラムコード
生成部56は、解析した解析木53に基づいて、実行時
に指定された機種の言語仕様情報格納部53及びデータ
表現仕様情報格納部54からその機種の言語仕様情報と
データ表現仕様情報をそれぞれ読み込み参照して、その
機種に適した生成パラメータ51で要求したRPCイン
タフェースを実現するプログラムのソースコード57を
生成し出力する。出力したRPCインタフェースプログ
ラムのソースコード57は、RPCを実行する機種のコ
ンパイラ58を使用してコンパイルし、RPCインタフ
ェースプログラムのオブジェクトコード59を生成す
る。このRPCインタフェースオブジェクトコード59
とその機種のRPC実行ライブラリ510を結合し、指
定された機種で実行可能な生成パラメータで要求された
RPC機能を実現するRPC実行プログラム511を作
成する。
The operation of the heterogeneous program generating apparatus configured as described above will be described below. First, the analysis unit 52 reads and analyzes the generation parameter 51, and creates the parse tree 53. After that, the program code generation unit 56, based on the analyzed parse tree 53, uses the language specification information storage unit 53 and the data expression specification information storage unit 54 of the model specified at the time of execution to acquire the language specification information and the data expression of the model. The specification information is read and referred to, and the source code 57 of the program that realizes the RPC interface requested by the generation parameter 51 suitable for the model is generated and output. The source code 57 of the output RPC interface program is compiled by using a compiler 58 of a model that executes RPC to generate an object code 59 of the RPC interface program. This RPC interface object code 59
And the RPC execution library 510 of that model are combined to create an RPC execution program 511 that realizes the RPC function requested by the generation parameter executable by the specified model.

【0005】[0005]

【発明が解決しようとする課題】しかしながら上記の構
成では、機種で実行可能なRPC実行ライブラリをマシ
ン単位に持たなければならないので、OSや通信ソフト
ウェア等の基本ソフトウェアとのインタフェースの変更
や新機能の追加によって、RPCライブラリを変更し、
該当する機種の全ての情報機器上のライブラリに反映し
なければばらず、1つのマシンに複数バージョンのライ
ブラリが存在する場合の管理なども含めて保守に多くの
時間を用するという課題を有していた。
However, in the above configuration, since it is necessary to have an RPC execution library that can be executed by a model in each machine, a change in the interface with the basic software such as the OS or communication software or a new function is required. Change the RPC library by adding,
It has to be reflected in the libraries on all information devices of the corresponding model, and there is a problem that it takes a lot of time for maintenance, including management when multiple versions of libraries exist in one machine. Was there.

【0006】本発明は、上記従来技術の課題を解決する
もので、ネットワーク全体で使用している全機種の生成
に必要な実行ライブラリの維持管理を容易にできる異機
種プログラム生成装置を提供することを目的とする。
The present invention solves the above-mentioned problems of the prior art, and provides a heterogeneous program generation device capable of easily maintaining and managing the execution library necessary for generating all the models used in the entire network. With the goal.

【0007】[0007]

【課題を解決するための手段】この目的を達成するため
にに本発明は、実行ライブラリ等の生成プログラムに必
要となる固定的なネットワーク上の全情報機器のプログ
ラムコード部分を、プログラムソースコードとして機種
及びバージョン単位に格納する機種別固定プログラムコ
ード格納部と、これをネットワークワイドに管理する格
納情報管理部を備えた構成となっている。
In order to achieve this object, the present invention uses, as a program source code, a program code portion of all fixed information devices on a network required for a generation program such as an execution library. It is configured to include a model-specific fixed program code storage unit for storing in units of model and version, and a stored information management unit for managing the program code storage unit on a network-wide basis.

【0008】[0008]

【作用】本発明は上記構成によって、ネットワーク上の
ある機種のライブラリのプログラムコードについて変更
や追加が発生した場合、固定プログラムコード格納部の
プログラムコードに対して変更や追加を行うだけで、ネ
ットワーク上の該当する機種の全マシンの保守を行うこ
とができ、プログラムコード生成時は、利用者が生成パ
ラメータで指定した機種及びバージョンをもとにネット
ワークワイドに管理している格納情報管理部に要求し、
固定プログラムコード格納部から該当する実行ライブラ
リのソースコードを読み込み、生成するプログラムコー
ドに付加することによって、更新されたライブラリを含
んだプログラムコードを自動的に生成できる。このよう
に、生成プログラムコードに使用するライブラリ等の固
定プログラムコードの保守や維持は、ネットワークワイ
ドに維持管理している固定プログラムコード格納部に格
納されているプログラムコードに対してのみ行えばよ
く、ライブラリ等の固定プログラムコードの維持管理を
容易に行うことができる。
According to the present invention, when the program code of the library of a certain model on the network is changed or added by the above configuration, the program code of the fixed program code storage section is simply changed or added to the network. It is possible to perform maintenance on all machines of the applicable model, and at the time of program code generation, the user is requested to the stored information management section that manages network-wide based on the model and version specified by the generation parameter. ,
By reading the source code of the corresponding execution library from the fixed program code storage unit and adding it to the generated program code, the program code including the updated library can be automatically generated. As described above, the maintenance and maintenance of the fixed program code such as the library used for the generated program code may be performed only for the program code stored in the fixed program code storage unit maintained and managed network-wide, Maintenance of fixed program code such as a library can be easily performed.

【0009】[0009]

【実施例】以下、本発明の一実施例について図面を参照
しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0010】図1は本発明の一実施例における異機種間
でRPCを実現する異機種プログラム生成装置の全体構
成図である。図1において、11は手続き名や転送する
データ型や実行する機種名、ライブラリのバージョン番
号等の生成するプログラムのRPCインタフェースを記
述した生成パラメータ、12は生成パラメータ11を読
み込み解析し解析木を生成する解析部、13は生成パラ
メータ解析後の解析木、14は記述されたRPCインタ
フェース生成パラメータ11の内容によって生成するプ
ログラムコード内容が変る可変部コードのプログラム生
成に必要なネットワーク上の全情報機器の言語仕様情報
等を機種単位に格納した可変コード生成情報格納部、1
5はRPCを実現するために機種によって異なる通信ソ
フトウェアとインタフェースし送信及び受信などの制御
処理やバッファ管理処理を行うライブラリや送受信デー
タと機種のデータ表現に適した引数/結果データのデー
タ変換を行うライブラリ等の機種固定のライブラリのプ
ログラムソースコードをネットワーク上の全情報機器に
ついて機種及びバージョン単位に格納した固定プログラ
ムコード格納部、16は可変コード生成情報格納部14
と固定プログラムコード格納部15をネットワークワイ
ドに維持管理する格納情報管理部、17は生成パラメー
タで指定された機種を基に可変コード生成情報格納部1
4から読み込まれた可変コード部生成情報データ、18
は解析木13と可変コード部生成情報データ17を参照
しプログラム可変コード部及び機種別固定プログラムコ
ード格納部を参照しプログラム固定コード部を生成し出
力するプログラムコード生成部、19は生成パラメータ
で指定されたRPCを実現する生成した要求機種のRP
C実行プログラムソースコードである。
FIG. 1 is an overall configuration diagram of a heterogeneous program generating apparatus for realizing RPC between different models according to an embodiment of the present invention. In FIG. 1, 11 is a generation parameter describing the RPC interface of a program to be generated, such as a procedure name, a data type to be transferred, a model name to be executed, and a library version number, and 12 is an analysis tree generated by reading and analyzing the generation parameter 11. An analysis unit, 13 is a parse tree after the generation parameter analysis, 14 is a variable part code whose program code content changes depending on the contents of the described RPC interface generation parameter 11 of all information devices on the network necessary for program generation Variable code generation information storage unit that stores language specification information etc. for each model, 1
Reference numeral 5 is a library for interfacing with different communication software depending on the model in order to realize RPC and performing control processing such as transmission and reception and buffer management processing, and data conversion of transmission / reception data and argument / result data suitable for data representation of the model A fixed program code storage unit in which the program source code of a fixed library such as a library is stored in units of model and version for all information devices on the network, and 16 is a variable code generation information storage unit 14.
And a storage information management unit for maintaining and managing the fixed program code storage unit 15 network-wide, and 17 a variable code generation information storage unit 1 based on the model specified by the generation parameter.
Variable code portion generation information data read from No. 4, 18
Is a program code generator that refers to the parse tree 13 and the variable code portion generation information data 17, refers to the program variable code portion and the model-specific fixed program code storage portion, and generates and outputs the program fixed code portion, and 19 is designated by a generation parameter. RP of the requested model that realizes the specified RPC
It is a C execution program source code.

【0011】110は生成したRPC実行プログラムソ
ースコード19をコンパイルする該当機種のコンパイラ
である。111はコンパイラ110によってコンパイル
された生成パラメータで要求されたRPCを実現するR
PC実行プログラムである。
Reference numeral 110 is a compiler of a corresponding model for compiling the generated RPC execution program source code 19. Reference numeral 111 is an R that realizes the RPC required by the generated parameters compiled by the compiler 110.
It is a PC execution program.

【0012】以上のように構成された異機種プログラム
生成装置について、図2に示すフローチャートを用いて
前処理の動作を説明する。まず、解析部12は、生成パ
ラメータ11を読み込み21、生成パラメータ11の文
法チェックを行う22。その結果を判断し23、もし、
誤りがある場合、エラーメッセージを出力して処理を中
止する29。誤りがない場合、生成パラメータの解析結
果を解析木13として作成する24。プログラムコード
生成部18はRPC実行プログラムソースコード19を
出力するファイルを作成する25。作成された解析木1
3を参照して、生成パラメータ11で指定された機種を
もとに、格納情報管理部16に対して該当する機種の可
変コード生成情報を要求し、要求を受けた格納情報管理
部16は、ネットワークワイドに管理している可変コー
ド生成情報格納部16から該当する機種の可変コード生
成情報を検索する26。
With respect to the heterogeneous program generating apparatus configured as described above, the operation of preprocessing will be described with reference to the flowchart shown in FIG. First, the analysis unit 12 reads 21 the generation parameter 11 and checks 22 the grammar of the generation parameter 11. Judge the result 23, if
If there is an error, an error message is output and the processing is stopped 29. If there is no error, the analysis result of the generation parameter is created as the analysis tree 13 24. The program code generator 18 creates a file for outputting the RPC execution program source code 19 25. Created parse tree 1
3, based on the model specified by the generation parameter 11, the storage information management unit 16 is requested for the variable code generation information of the corresponding model, and the storage information management unit 16 that has received the request The variable code generation information of the corresponding model is retrieved 26 from the variable code generation information storage unit 16 managed network-wide.

【0013】その結果を判断し27、もし、その情報が
存在するならば、可変コード部生成情報データ17とし
て異機種プログラム生成装置の内部に作成する28。も
し、要求した機種の情報が、存在しないならばエラーメ
ッセージを出力し処理を終了する29。
The result is judged 27, and if the information exists, it is created 28 as the variable code part generation information data 17 in the heterogeneous program generation device. If the requested model information does not exist, an error message is output and the process ends 29.

【0014】次に、図3に示すフローチャートを用いて
プログラムコード生成処理の動作を説明する。プログラ
ムコード生成部18は、解析木13と要求機種の可変コ
ード部生成情報データ17を参照しながら、要求機種の
要求されたRPCインタフェースを実現する可変コード
部を生成し31、作成したRPC実行プログラムソース
コードファイル19へ出力する32。要求されたRPC
インタフェースを実現する全ての可変コード部の生成を
終了したか検査し33、終了していない場合31と32
の処理を繰り返す。終了した場合、プログラムコード生
成部18は、生成パラメータ11で指定された機種及び
バージョン番号をもとに格納情報管理部16に対して、
該当する機種及びバージョンの固定プログラムコードを
要求し、要求を受けた格納情報管理部16は、ネットワ
ークワイドに管理している固定プログラムコード格納部
15から該当する機種及びバージョンの固定プログラム
コードを検索し34、その結果を判断する35。もし、
要求した機種及びバージョンの固定プログラムコードが
存在しないならばエラーメッセージを出力し処理を終了
する39。
Next, the operation of the program code generation process will be described with reference to the flowchart shown in FIG. The program code generation unit 18 refers to the analytic tree 13 and the variable code unit generation information data 17 of the requested model, generates a variable code unit that realizes the requested RPC interface of the requested model 31, and creates the RPC execution program. Output 32 to the source code file 19. RPC requested
It is checked whether the generation of all variable code parts that realize the interface has been completed 33, and if not completed, 31 and 32
The process of is repeated. When finished, the program code generation unit 18 tells the stored information management unit 16 based on the model and version number specified by the generation parameter 11.
The stored information management unit 16 that requests the fixed program code of the corresponding model and version retrieves the fixed program code of the corresponding model and version from the fixed program code storage unit 15 that is managed network-wide. 34, judge the result 35. if,
If the fixed program code of the requested model and version does not exist, an error message is output and the processing ends 39.

【0015】存在するならば、プログラムコード生成部
18はこの固定プログラムコードの中から生成パラメー
タ11で指定されたRPCを実現するために必要なプロ
グラムコードを選択し36、RPC実行プログラムソー
スコード19の固定コード部として作成したRPC実行
プログラムソースコードファイル19へ出力する37。
生成パラメータ11で要求されたRPCを実行するため
に必要な全てのライブラリの固定コード部の出力を終了
した時38、プログラムコード生成処理を終了する。
If it exists, the program code generation unit 18 selects a program code necessary for realizing the RPC designated by the generation parameter 11 from the fixed program code 36, and the RPC execution program source code 19 is selected. Output 37 to the RPC execution program source code file 19 created as the fixed code part 37.
When the output of the fixed code parts of all the libraries required to execute the RPC requested by the generation parameter 11 is completed 38, the program code generation process is completed.

【0016】全てのライブラリの固定コード部の出力を
終了していない場合、37の処理を繰り返す。生成した
RPC実行プログラムソースコード19は、該当する機
種のコンパイラ110によってコンパイルされ、要求す
る機種でRPCを実現するRPC実行プログラムコード
111ができる。
If the output of the fixed code parts of all the libraries is not completed, the process of 37 is repeated. The generated RPC execution program source code 19 is compiled by the compiler 110 of the applicable model, and the RPC execution program code 111 that realizes the RPC in the requested model is created.

【0017】図4にRPCインタフェースの生成パラメ
ータの例41とこれを異機種プログラム生成装置42が
読み込み生成したRPCを実現するクライアント側のR
PC実行プログラムソースコード43の可変コード部4
31と固定コード部432の内容及び固定プログラムコ
ード格納部44を示す。生成パラメータ41は要求する
機種M1及びバージョン番号1、RPCの手続き名fu
nction1、送信する引数データはarg1及びa
rg2、受信する結果データはarg3とリターン値で
それぞれデータ型がfloat、int、float、
intと指定されている。
FIG. 4 shows an example 41 of RPC interface generation parameters and the R on the client side for realizing the RPC generated by the heterogeneous program generation device 42.
Variable code part 4 of PC execution program source code 43
31 and the contents of the fixed code section 432 and the fixed program code storage section 44 are shown. The generation parameter 41 is the requested model M1, version number 1, RPC procedure name fu
naction1, argument data to be transmitted is arg1 and a
rg2, the result data to be received is arg3 and a return value, and the data types are float, int, float,
Specified as int.

【0018】固定プログラムコード格納部44は、各機
種のプログラムコードが格納され、各機種のプログラム
コードは、バージョン単位に格納されている。生成パラ
メータ41で指定された機種M1の指定されたバージョ
ン1のプログラムコードは、斜線で示している。生成さ
れたRPC実行プログラムソースコード43の可変コー
ド部431は、生成パラメータで41指定されたRPC
手続き名function1の呼び出される部分、機種
固有のfloat型引数arg1を送信データへ変換す
る固定コードのfloat型RPC送信データ変換ライ
ブラリを呼び出す部分、機種固有のint型引数arg
2を送信データへ変換する固定コードのint型RPC
送信データ変換ライブラリを呼び出す部分、RPCを要
求をするために固定コードのRPC送信ライブラリを呼
び出す部分、RPCの結果を受信するために固定コード
のRPC受信ライブラリを呼び出す部分、受信データを
生成パラメータで指定された機種固有のfloat型結
果arg3へ変換する固定コードのRPC受信データ変
換ライブラリを呼び出す部分、受信データを生成パラメ
ータで指定された機種固有のint型リターン値へ変換
する固定コードのRPC受信データ変換ライブラリを呼
び出す部分、結果を要求したアプリケーションへ返す部
分からなる。一方、生成されたRPC実行プログラムソ
ースコード43の固定コード部432は、生成パラメー
タで指定された機種M1及びバージョン1の固定プログ
ラムコードを固定プログラムコード格納部44から検索
し読み込んだfloat型RPC送信データ変換ライブ
ラリ、int型RPC送信データ変換ライブラリ、fl
oat型RPC受信データ変換ライブラリ、int型R
PC受信データ変換ライブラリ、RPC送信ライブラ
リ、RPC受信ライブラリからなる。固定コード部のこ
れらのライブラリは、機種やバージョンが変れば、固定
プログラムコード格納部43から読み込むその内容が変
るために生成された内容も変る。なお、本実施例の生成
されたRPC実行プログラムソースコードは、C言語で
記述されたものとして示しているが、他のどんなプログ
ラミング言語でもよい。
The fixed program code storage unit 44 stores the program code of each model, and the program code of each model is stored in version units. The program code of the designated version 1 of the model M1 designated by the generation parameter 41 is indicated by the diagonal lines. The variable code portion 431 of the generated RPC execution program source code 43 is the RPC specified by the generation parameter 41.
The part where the procedure name function1 is called, the part that calls the float type RPC transmission data conversion library of the fixed code that converts the model-specific float type argument arg1 into the transmission data, and the model-specific int type argument arg
Fixed code int type RPC that converts 2 into transmission data
The part that calls the send data conversion library, the part that calls the fixed code RPC send library to request the RPC, the part that calls the fixed code RPC receive library to receive the RPC result, and specify the receive data with the generation parameter The fixed-code RPC receive data conversion library that converts the fixed-code RPC receive-data conversion library to convert to the model-specific float-type result arg3. It consists of the part that calls the library and the part that returns the result to the requesting application. On the other hand, the fixed code section 432 of the generated RPC execution program source code 43 retrieves the fixed program code of the model M1 and version 1 specified by the generation parameter from the fixed program code storage section 44 and reads the float type RPC transmission data. Conversion library, int type RPC transmission data conversion library, fl
Oat type RPC receive data conversion library, int type R
It comprises a PC reception data conversion library, an RPC transmission library, and an RPC reception library. These libraries of the fixed code section change the contents read from the fixed program code storage section 43 when the model or version changes, so the generated contents also change. Although the generated RPC execution program source code of this embodiment is shown as being written in C language, any other programming language may be used.

【0019】以上のように本実施例によれば、ネットワ
ーク上の情報機器の全機種のRPCを実現する実行ライ
ブラリのプログラムコード部分を、プログラムソースコ
ードとして機種及びバージョン単位に格納する固定プロ
グラムコード格納部と、これをネットワークワイドに管
理する格納情報管理部生を設けることにより、RPCラ
イブラリのプログラムコードの変更、あるいは、新たな
バージョンのプログラムコード追加が発生した場合、固
定プログラムコード格納部に存在する該当機種の該当バ
ージョンのRPCライブラリのプログラムコードを更新
あるいは新バージョンのプログラムコードの追加を行う
だけで、ネットワークの全マシン上で、更新されたRP
Cライブラリコードを含んだRPC実行プログラムコー
ドを生成することができる。
As described above, according to the present embodiment, the fixed program code storage for storing the program code portion of the execution library for realizing the RPC of all the models of the information equipment on the network as the program source code in the model and the version unit. Section and a storage information management section for managing this section in a network-wide manner, the program code of the RPC library is changed, or a new version of the program code is added, it exists in the fixed program code storage section. By updating the program code of the RPC library of the corresponding version of the model or adding the program code of the new version, the updated RP on all machines in the network
RPC execution program code including C library code can be generated.

【0020】[0020]

【発明の効果】以上のように本発明は、ネットワーク上
の情報機器の全機種の実行ライブラリ等の生成プログラ
ムに必要となる固定的なプログラムコード部分を、プロ
グラムソースコードとして機種及びバージョン単位に格
納する固定プログラムコード格納部と、これをネットワ
ークワイドに管理する格納情報管理部を設けることによ
り、プログラムコードの変更、あるいは、新たなバージ
ョンのプログラムコード追加が発生した場合、ネットワ
ークワイドに維持管理しているこの機種別固定プログラ
ムコード格納部に存在する該当機種の該当するバージョ
ンのプログラムコードを変更あるいは追加するだけで、
更新された固定プログラムコードを使用したプログラム
コードを自動生成することができ、実行ライブラリ等の
固定プログラムコードの維持管理を容易に行うことがで
きる優れた異機種プログラム生成装置を実現できるもの
である。
As described above, according to the present invention, a fixed program code portion required for a generation program such as an execution library for all models of information equipment on a network is stored as a program source code in units of model and version. By providing a fixed program code storage unit and a storage information management unit that manages this program network-wide, when a program code is changed or a new version of the program code is added, it is maintained and managed network-wide. Just by changing or adding the program code of the applicable version of the applicable model existing in this model-specific fixed program code storage,
It is possible to realize an excellent heterogeneous program generation device capable of automatically generating a program code using an updated fixed program code and easily performing maintenance of fixed program codes such as an execution library.

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

【図1】本発明の一実施例における異機種プログラム生
成装置の全体構成図
FIG. 1 is an overall configuration diagram of a heterogeneous program generation device according to an embodiment of the present invention.

【図2】本発明の一実施例における異機種プログラム生
成装置の前処理動作を示すフローチャート
FIG. 2 is a flowchart showing a preprocessing operation of the heterogeneous program generation device according to the embodiment of the present invention.

【図3】同実施例における異機種プログラム生成装置の
プログラムコード生成処理動作を示すフローチャート
FIG. 3 is a flowchart showing a program code generation processing operation of the heterogeneous program generation device in the embodiment.

【図4】同実施例における異機種プログラム生成装置を
使用した生成パラメータ及び生成プログラムの例図
FIG. 4 is an example diagram of a generation parameter and a generation program using the heterogeneous program generation device in the embodiment.

【図5】従来の異機種プログラム生成装置の全体構成図[FIG. 5] Overall configuration diagram of a conventional heterogeneous program generation device

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

11 生成パラメータ 12 解析部 13 解析木 14 可変コード生成情報格納部 15 固定プログラムコード格納部 16 格納情報管理部 17 可変部コード生成情報データ 18 プログラムコード生成部 19 RPC実行プログラムソースコード 110 コンパイラ 111 RPC実行プログラム 21 生成パラメータ読み込み処理 22 文法チェック処理 23 チェック結果検査処理 24 解析木作成処理 25 プログラムコード出力ファイル作成処理 26 可変コード生成情報格納部検索処理 27 可変コード生成情報格納部検索結果検査処理 28 可変部コード生成情報データ作成処理 29 エラーメッセージ出力処理 31 可変コード部生成処理 32 可変コード部出力処理 33 可変コード部生成終了検査処理 34 固定プログラムコード格納部検索処理 35 固定プログラムコード格納部検索結果検査処理 36 固定コード部選択処理 37 固定コード部出力処理 38 固定コード部出力終了検査処理 39 エラーメッセージ出力処理 41 生成パラメータ 42 異機種プログラム生成装置 43 RPC実行プログラムソースコード 431 可変コード部 432 固定コード部 44 固定プログラムコード格納部 11 generation parameter 12 analysis unit 13 analysis tree 14 variable code generation information storage unit 15 fixed program code storage unit 16 storage information management unit 17 variable unit code generation information data 18 program code generation unit 19 RPC execution program source code 110 compiler 111 RPC execution Program 21 Generation parameter reading process 22 Grammar check process 23 Check result inspection process 24 Analysis tree creation process 25 Program code output file creation process 26 Variable code generation information storage unit search process 27 Variable code generation information storage unit search result inspection process 28 Variable unit Code generation information data generation process 29 Error message output process 31 Variable code part generation process 32 Variable code part output process 33 Variable code part generation end inspection process 34 Fixed program code storage Search process 35 Fixed program code storage search result inspection process 36 Fixed code part selection process 37 Fixed code part output process 38 Fixed code part output end inspection process 39 Error message output process 41 Generation parameter 42 Heterogeneous program generation device 43 RPC execution program Source code 431 Variable code part 432 Fixed code part 44 Fixed program code storage part

───────────────────────────────────────────────────── フロントページの続き (72)発明者 鈴木 芳彦 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 (72)発明者 イヴァン ペッチ 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yoshihiko Suzuki 1006 Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. (72) Inventor Ivan Petch 1006 Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 生成パラメータを読み込み解析し解析木
を作成する解析部と、生成プログラムの前記生成パラメ
ータによって変る可変コード部のプログラム生成に必要
なネットワーク上の全情報機器の情報を機種単位に格納
した可変コード生成情報格納部と、ネットワーク上の全
情報機器の生成プログラムの前記生成パラメータによっ
て変わらない固定コード部のプログラムコードを機種別
及びバージョン別に格納した固定プログラムコード格納
部と、前記可変コード生成情報格納部と前記固定プログ
ラムコード格納部をネットワークワイドに維持管理する
格納情報管理部と、前記生成パラメータで指定された機
種及びバージョンを用いて前記格納情報管理部に依頼
し、前記可変コード部生成に必要な当該機種の情報を前
記可変コード生成情報格納部から読み込み生成プログラ
ムの可変コード部の生成及び出力を行い、前記固定コー
ド部生成に必要な当該機種及びバージョンの固定プログ
ラムコードを前記固定プログラムコード格納部から読み
込み生成プログラムの固定コード部の生成及び出力を行
うプログラムコード生成部を備えた異機種プログラム生
成装置。
1. An analysis unit that reads a generation parameter and analyzes it to generate an analysis tree, and stores information of all information devices on a network required for generating a program of a variable code unit that changes depending on the generation parameter of a generation program, for each model. A variable code generation information storage unit, a fixed program code storage unit that stores the program code of the fixed code unit that does not change according to the generation parameter of the generation program of all information devices on the network according to model and version, and the variable code generation A storage information management unit that maintains and manages the information storage unit and the fixed program code storage unit network-wide, and requests the storage information management unit using the model and version specified by the generation parameter to generate the variable code unit. The information of the model required for the variable code generation information Generates and outputs the variable code part of the read generation program from the storage unit, reads the fixed program code of the model and version required for generating the fixed code unit from the fixed program code storage unit, and generates the fixed code unit of the generation program And a heterogeneous program generation device having a program code generation unit for outputting.
JP32442391A 1991-12-09 1991-12-09 Different-kind program generation device Pending JPH05158673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32442391A JPH05158673A (en) 1991-12-09 1991-12-09 Different-kind program generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32442391A JPH05158673A (en) 1991-12-09 1991-12-09 Different-kind program generation device

Publications (1)

Publication Number Publication Date
JPH05158673A true JPH05158673A (en) 1993-06-25

Family

ID=18165634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32442391A Pending JPH05158673A (en) 1991-12-09 1991-12-09 Different-kind program generation device

Country Status (1)

Country Link
JP (1) JPH05158673A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007109252A (en) * 2006-12-04 2007-04-26 Hitachi Ltd Built-in controller and built-in controller development tool

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007109252A (en) * 2006-12-04 2007-04-26 Hitachi Ltd Built-in controller and built-in controller development tool

Similar Documents

Publication Publication Date Title
EP0709773B1 (en) System and method for generating target language code utilizing an object oriented code generator
USRE38104E1 (en) Method and apparatus for resolving data references in generated code
US6381737B1 (en) Automatic adapter/stub generator
US5734907A (en) Method of programming an information processing device for network management applications using generic programming
US5966536A (en) Method and apparatus for generating an optimized target executable computer program using an optimized source executable
US5881289A (en) Remote compiling of source code for cross development
Sellink et al. Restructuring of COBOL/CICS legacy systems
US7849394B2 (en) Linked code generation report
JPH0334018A (en) Method and instrument for capsulating computer program
MXPA04002730A (en) Type bridges.
EP1116105A1 (en) Text object compilation method and system
US5842205A (en) Method and process of inter-machine communication and generalized method for program preparation therefor
KR20080096758A (en) Xna relationship management
EP0520708B1 (en) Method and apparatus for converting high level form abstract syntaxes into an intermediate form
JPH05158673A (en) Different-kind program generation device
Bershad et al. A remote computation facility for a heterogeneous environment
JPH07182179A (en) Object oriented data base managing device
US7958330B2 (en) Compiler program, compiler program recording medium, compile method, and program processing system
JP3328056B2 (en) Information extraction device from parse tree
Bawden Implementing distributed systems using linear naming
US20060048012A1 (en) Context sensitive debug streams with output throttling controls
HUT66465A (en) Interface system for coupling two computer environments
RU2385485C1 (en) System and method of control over programs execution with help of binary applications tracing
Wozniak Swift/T Guide
Bawden Linear graph reduction: confronting the cost of naming