JPH02240729A - Static check system for transfer of parameter of inter-program connection function - Google Patents

Static check system for transfer of parameter of inter-program connection function

Info

Publication number
JPH02240729A
JPH02240729A JP6187289A JP6187289A JPH02240729A JP H02240729 A JPH02240729 A JP H02240729A JP 6187289 A JP6187289 A JP 6187289A JP 6187289 A JP6187289 A JP 6187289A JP H02240729 A JPH02240729 A JP H02240729A
Authority
JP
Japan
Prior art keywords
parameter information
program
calling
parameters
side parameter
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
JP6187289A
Other languages
Japanese (ja)
Inventor
Osamu Chiba
修 千葉
Toru Miwa
徹 三輪
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Kobe 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 KOBE NIPPON DENKI SOFTWARE KK, NEC Corp, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP6187289A priority Critical patent/JPH02240729A/en
Publication of JPH02240729A publication Critical patent/JPH02240729A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To attain strictly the check of the propriety corresponding to the pieces, the number of digits, and the attributes of parameters by comparing the calling side parameter information with the receiving side parameter information via a static linker and checking strivtly the matching property for transfer of parameters in terms of an inter-program connection function. CONSTITUTION:A parameter information analyzing means 19 of a static linker compares the calling side parameter information with the receiving side parameter information of an object program produced by a programming language translation mechanism. Then the means 19 analyzes the relations between the number of pieces, the number of digits, and the attributes of the parameters designated by a call instruction of a calling side program and those of the parameters designated at an inlet point of a called side program. A parameter information analyzing result display means 20 displays the parameter information analyzing result obtained by the means 19. As a result, the propriety can be strictly checked at development of a program for the number of pieces, the number of digits, and the attributes of parameters.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム間連絡機能のパラメータ受け渡し方
式に関し、特にプログラム間で受け渡されるパラメータ
(媒介変数)の妥当性を検査するプログラム間連絡機能
のパラメータ受け渡しにおける静的チエツク方式に関す
る。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a parameter passing method for a communication function between programs, and in particular, a method for passing parameters between programs. Concerning static check method in parameter passing.

〔従来の技術〕[Conventional technology]

計算機システム上のプログラミング言語に用意されてい
るプログラム間連絡機能を使用して利用者が作成したプ
ログラム間でパラメータの受け渡しが行われる場合、通
常の使用形態においては、呼出し側プログラムの呼出し
命令で指定されたパラメータの個数1桁数および属性と
、被呼出し側プログラムの入口点で指定されたパラメー
タの個数9桁数および属性とが一敗することが自然であ
る。
When parameters are passed between programs created by users using the program-to-program communication function provided in the programming language of the computer system, in normal usage, parameters are specified in the calling command of the calling program. It is natural that the one-digit number of parameters specified and the attributes specified at the entry point of the called program will be different from the nine-digit number and attributes of the parameters specified at the entry point of the called program.

従来、この種のプログラム間連絡機能のパラメータ受け
渡しにおけるパラメータの妥当性の検査は、計算機を用
いた検査が行われずにプログラム作成者によるコーディ
ングレビューのみが行われるか、プログラム走行テスト
における全バス走行テストによる動的な方法で行われる
かしていた。
Conventionally, the validity of parameters in parameter passing for this type of program-to-program communication function has been checked only by a coding review by the program creator without using a computer, or by a complete bus running test in a program running test. This is done in a dynamic way.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプログラム間連絡機能のパラメータ受け
渡しにおけるチエツク方式では、パラメータ受け渡しに
おけるパラメータの妥当性の検査が、プログラム作成者
によるコーディングレビューとしてプログラム作成者の
責任となっていたか、あるいはプログラム走行テストに
おける全バス走行テストによる動的な方法で行われてい
たので、プログラム開発時に十分な検査を行うことが困
難であるという欠点がある。
In the above-mentioned conventional checking method for parameter passing in the program-to-program communication function, checking the validity of parameters during parameter passing was the responsibility of the program creator as a coding review by the program creator, or it was the responsibility of the program creator to check the validity of the parameters during parameter passing. Since this was done in a dynamic manner using bus running tests, there is a drawback in that it is difficult to perform sufficient testing during program development.

本発明の目的は、上述の点に鑑み、利用者が作成したプ
ログラム間のパラメータの受け渡しにおいてパラメータ
の個数5桁数および属性に関する妥当性の検査をプログ
ラム開発時に厳密に行うことができるプログラム間連絡
機能のパラメータ受け渡しにおける静的チエツク方式を
提供することにある。
In view of the above-mentioned points, an object of the present invention is to provide inter-program communication that allows the validity of the five-digit number of parameters and attributes to be strictly checked at the time of program development when exchanging parameters between programs created by users. The objective is to provide a static check method for passing function parameters.

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

本発明のプログラム間連絡機能のパラメータ受け渡しに
おける静的チエツク方式は、計算機システム上のプログ
ラミング言語が他のプログラムとの連絡機能を有し前記
プログラミング言語の変数に桁数および属性という共通
した概念が存在しかつ静的リンカによってプログラム間
の連絡機能の解決を行う言語処理系において、呼出し側
プログラムの呼出し命令をフェッチする呼出し命令フェ
ッチ手段と、この呼出し命令フェッチ手段によりフェッ
チされた呼出し命令のもつパラメータの個数2桁数およ
び属性を呼出し側パラメータ情報として取り込む呼出し
側パラメータ情報取込み手段と、この呼出し側パラメー
タ情報取込み手段により取り込まれた呼出し側パラメー
タ情報をオブジェクトプログラム上に設定する呼出し側
パラメータ情報設定手段と、被呼出し側プログラムの入
口点をフェッチする入口点フェッチ手段と、この入口点
フェッチ手段によりフェッチされた入口点のもつパラメ
ータの個数9桁数および属性を受取り側パラメータ情報
として取り込む受取り側パラメータ情報取込み手段と、
この受取り側パラメータ情報取込み手段により取り込ま
れた受取り側パラメータ情報をオブジェクトプログラム
上に設定する受取り側パラメータ情報設定手段とを備え
るプログラミング言語の翻訳機構と、このプログラミン
グ言語の翻訳機構により生成されたオブジェクトプログ
ラム上の呼出し側パラメータ情報と受取り側パラメータ
情報とを比較して呼出し側プログラムの呼出し命令に指
定されたパラメータの個数。
The static check method for parameter passing of the program-to-program communication function of the present invention is such that the programming language on the computer system has a communication function with other programs, and the variables of the programming language have a common concept of number of digits and attributes. In a language processing system that uses a static linker to resolve the communication function between programs, there is a calling instruction fetching means for fetching the calling instruction of the calling program, and a parameter of the calling instruction fetched by this calling instruction fetching means. a calling side parameter information importing means for taking in a two-digit number and attributes as calling side parameter information; and a calling side parameter information setting means for setting the calling side parameter information taken in by the calling side parameter information importing means on an object program. , an entry point fetch means for fetching the entry point of the called program, and a receiving side parameter information importer for taking in the 9-digit number of parameters and attributes of the entry point fetched by this entry point fetching means as receiving side parameter information. means and
a programming language translation mechanism comprising a receiving side parameter information setting means for setting the receiving side parameter information imported by the receiving side parameter information importing means on the object program; and an object program generated by the programming language translation mechanism. The number of parameters specified in the calling command of the calling program by comparing the calling side parameter information and the receiving side parameter information above.

桁数および属性と被呼出し側プログラムの入口点に指定
されたパラメータの個数2桁数および属性との間の関係
を解析するパラメータ情報解析手段と、このパラメータ
情報解析手段により解析されたパラメータ情報解析結果
を表示するパラメータ情報解析結果表示手段とを備える
静的リンカとを有する。
Parameter information analysis means for analyzing the relationship between the number of digits and attributes and the number of digits and attributes specified at the entry point of the called program; and parameter information analysis analyzed by the parameter information analysis means. and a static linker comprising parameter information analysis result display means for displaying the results.

〔作用〕[Effect]

本発明のプログラム間連絡機能のパラメータ受け渡しに
おける静的チエツク方式では、プログラミング言語の翻
訳機構の呼出し命令フェッチ手段が呼出し側プログラム
の呼出し命令をフェッチし、呼出し側パラメータ情報取
込み手段が呼出し命令フェッチ手段によりフェッチされ
た呼出し命令のもつパラメータの個数2桁数および属性
を呼出し側パラメータ情報として取り込み、呼出し側パ
ラメータ情報設定手段が呼出し側パラメータ情報取込み
手段により取り込まれた呼出し側パラメータ情報をオブ
ジェクトプログラム上に設定し、入口点フェッチ手段が
被呼出し側プログラムの入口点をフェッチし、受取り側
パラメータ情報取込み手段が入口点フェッチ手段により
フェッチされた人口点のもつパラメータの個数1桁数お
よび属性を受取り側パラメータ情報として取り込み、受
取り側パラメータ情報設定手段が受取り側パラメータ情
報取込み手段により取り込まれた受取り側パラメータ情
報をオブジェクトプログラム上に設定し、静的リンカの
パラメータ情報解析手段がプログラミング言語の翻訳機
構により生成されたオブジェクトプログラム上の呼出し
側パラメータ情報と受取り側パラメータ情報とを比較し
て呼出し側プログラムの呼出し命令に指定されたパラメ
ータの個数0桁数および属性と被呼出し側プログラムの
入口点に指定されたパラメータの個数9桁数および属性
との間の関係を解析し、パラメータ情報解析結果表示手
段がパラメータ情報解析手段により解析されたパラメー
タ情報解析結果を表示する。
In the static check method for parameter passing of the program-to-program communication function of the present invention, the calling instruction fetching means of the programming language translation mechanism fetches the calling instruction of the calling program, and the calling side parameter information fetching means uses the calling instruction fetching means. The two-digit number of parameters and attributes of the fetched calling instruction are taken in as calling side parameter information, and the calling side parameter information setting means sets the calling side parameter information taken in by the calling side parameter information taking means on the object program. Then, the entry point fetching means fetches the entry point of the called program, and the receiving side parameter information importing means receives the one-digit number of parameters and attributes of the population point fetched by the entry point fetching means as the receiving side parameter information. The receiving side parameter information setting means sets the receiving side parameter information taken in by the receiving side parameter information importing means on the object program, and the parameter information analysis means of the static linker generates the information by the translation mechanism of the programming language. Compare the calling side parameter information and the receiving side parameter information on the object program to determine the number of digits and attributes of parameters specified in the calling command of the calling program and the parameters specified at the entry point of the called program. The relationship between the nine-digit number and the attribute is analyzed, and the parameter information analysis result display means displays the parameter information analysis result analyzed by the parameter information analysis means.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明のプログラム間連絡機能のパラメータ
受け渡しにおける静的チエツク方式の一実施例の構成を
示すブロック図である。本実施例のプログラム間連絡機
能のパラメータ受け渡しにおける静的チエツク方式は、
ソースプログラムlと、プログラミング言語の翻訳機構
2と、オブジェクトプログラム14と、静的リンカ15
と、パラメータ情報解析結果21と、ロードモジュール
22とから、その主要部が構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the static check method for parameter transfer of the inter-program communication function of the present invention. The static check method for passing parameters in the program-to-program communication function of this embodiment is as follows:
Source program l, programming language translation mechanism 2, object program 14, and static linker 15
, the parameter information analysis result 21 , and the load module 22 .

プログラミング言語の翻訳機構2は、字句解析手段3と
、構文解析手段4と、意味解析手段5と、コード生成手
段6と、オブジェクト出力手段7と、呼出し命令フェッ
チ手段8と、呼出し側パラメータ情報取込み手段9と、
呼出し側パラメータ情報設定手段lOと、入口点フェッ
チ手段11と、受取り側パラメータ情報取込み手段12
と、受取り側パラメータ情報設定手段13とを含んで構
成されている。
The programming language translation mechanism 2 includes a lexical analysis means 3, a syntactic analysis means 4, a semantic analysis means 5, a code generation means 6, an object output means 7, a call instruction fetch means 8, and a caller parameter information acquisition unit. means 9;
Calling side parameter information setting means lO, entry point fetching means 11, and receiving side parameter information importing means 12
and receiving side parameter information setting means 13.

なお、第1図中において、複数のプログラミング言語の
翻訳機構2が図示されているのは、少なくとも呼出し側
のソースプログラムlの翻訳および被呼出し側のソース
プログラム1の翻訳が行われなければならないことを表
すためである。
Note that in FIG. 1, the translation mechanism 2 for multiple programming languages is shown because at least the source program 1 on the calling side and the source program 1 on the called side must be translated. This is to represent.

静的リンカ15は、オブジェクト入力手段16と、リン
ク処理手段17と、ロードモジュール出力手段18と、
パラメータ情報解析手段19と、パラメータ情報解析結
果表示手段20とを含んで構成されている。
The static linker 15 includes an object input means 16, a link processing means 17, a load module output means 18,
It is configured to include a parameter information analysis means 19 and a parameter information analysis result display means 20.

第2図を参照すると、オブジェクトプログラム14に設
定される呼出し側パラメータ情報23〜24は、呼出し
先の入口基(プログラム名)と、パラメータの個数と、
パラメータの桁数と、パラメータの属性とをそれぞれ含
んでいる。なお、第2図に示す呼出し側パラメータ情報
23〜24は、呼出し側のソースプログラムl内にN(
正整数)個の呼出し命令があり、それぞれの呼出し命令
にパラメータがni  (i−1,・・・、N)個ある
場合の呼出し側パラメータ情報を示している。
Referring to FIG. 2, the caller parameter information 23 to 24 set in the object program 14 includes the entry base (program name) of the called destination, the number of parameters,
Each includes the number of digits of the parameter and the attribute of the parameter. Note that the calling side parameter information 23 to 24 shown in FIG.
This shows caller parameter information when there are (positive integer) calling instructions and each calling instruction has ni (i-1, . . . , N) parameters.

第3図を参照すると、オブジェクトプログラム14に設
定される受取り側パラメータ情報25〜26は、入口点
の入口基と、パラメータの個数と、パラメータの桁数と
、パラメータの属性とをそれぞれ含んでいる。なお、第
3図に示す受取り側パラメータ情報25〜26は、被呼
出し側のソースプログラムl内にM(正整数)個の入口
点があり、それぞれの入口点にパラメータがmt(i−
1,・・・、M)個ある場合の受取り側パラメータ情報
を示している。
Referring to FIG. 3, the receiving side parameter information 25 to 26 set in the object program 14 includes the entry base of the entry point, the number of parameters, the number of digits of the parameter, and the attribute of the parameter, respectively. . Note that the receiving side parameter information 25 to 26 shown in FIG.
1, . . . , M) receiving side parameter information is shown.

次に、このように構成された本実施例のプログラム間連
絡機能のパラメータ受け渡しにおける静的チエツク方式
の動作について説明する。
Next, a description will be given of the operation of the static check method in parameter passing of the program-to-program communication function of this embodiment configured as described above.

プログラミング言語の翻訳機構2は、ソースプログラム
1を、字句解析手段3により字句解析し、構文解析手段
4により構文解析し、意味解析手段5により意味解析し
、コード生成手段6によりコード生成し、オブジェクト
出力手段7によりオブジェクトプログラム14を出力す
る。
A programming language translation mechanism 2 performs lexical analysis of a source program 1 using a lexical analysis means 3, syntactic analysis using a syntactic analysis means 4, semantic analysis using a semantic analysis means 5, code generation using a code generation means 6, and converts a source program 1 into an object. The object program 14 is outputted by the output means 7.

また、プログラミング言語の翻訳機構2では、字句解析
手段3による字句解析時に、呼出し命令フェッチ手段8
が、呼出し側のソースプログラム1のすべての呼出し命
令のパラメータ情報をオブジェクトプログラム14上に
設定するために、呼出し側のソースプログラム1中の呼
出し命令を認識して取り込む。
In addition, in the programming language translation mechanism 2, when the lexical analysis means 3 performs lexical analysis, the calling instruction fetching means 8
recognizes and imports the calling instructions in the calling source program 1 in order to set parameter information of all calling instructions in the calling source program 1 on the object program 14 .

呼出し側パラメータ情報取込み手段9は、呼出し命令フ
ェッチ手段8により取り込まれた呼出し命令のパラメー
タを解読し、パラメータの個数。
The calling side parameter information fetching means 9 decodes the parameters of the calling instruction fetched by the calling instruction fetching means 8, and determines the number of parameters.

桁数および属性をパラメータ情報として取り込む。Import the number of digits and attributes as parameter information.

呼出し側パラメータ情報設定手段10は、呼出し側パラ
メータ情報取込み手段9により取り込まれたパラメータ
の個数2桁数および属性を呼出し先の入口基(プログラ
ム名)を付して呼出し側パラメータ情報23〜24とし
てオブジェクト出力手段7を介してオブジェクトプログ
ラム14に設定する。
The calling side parameter information setting means 10 adds the two-digit number and attributes of the parameters taken in by the calling side parameter information taking means 9 and the entry base (program name) of the called party as calling side parameter information 23 to 24. It is set in the object program 14 via the object output means 7.

また、プログラミング言語の翻訳機構2では、字句解析
手段3による字句解析時に、入口点フェッチ手段11が
、被呼出し側のソースプログラム1のすべての入口点の
パラメータ情報をオブジェクトプログラム14上に設定
するために、被呼出し側のソースプログラム!中の入口
点を認識して取り込む。
Furthermore, in the programming language translation mechanism 2, when the lexical analysis unit 3 performs lexical analysis, the entry point fetch unit 11 sets parameter information of all entry points of the called source program 1 on the object program 14. , the source program of the called party! Recognize and capture entry points inside.

受取り側パラメータ情報取込み手段12は、入口点フェ
ッチ手段11により取り込まれた人口点のパラメータを
解読し、パラメータの個数1桁数および属性をパラメー
タ情報として取り込む。
The receiving side parameter information importing means 12 decodes the parameters of the population point taken in by the entry point fetching means 11, and takes in the one-digit number of parameters and attributes as parameter information.

受取り側パラメータ情報設定手段13は、受取り側パラ
メータ情報取込み手段12により取り込まれたパラメー
タの個数1桁数および属性を入口点の入口基を付して受
取り側パラメータ情報25〜26としてオブジェクト出
力手段7を介してオブジェクトプログラム14に設定す
る。
The receiving side parameter information setting means 13 adds the one-digit number and attribute of the parameters imported by the receiving side parameter information importing means 12 with the entry base of the entry point, and outputs the object output means 7 as receiving side parameter information 25 to 26. is set in the object program 14 via.

以上の結果、オブジェクトプログラム14上にプログラ
ム間連絡機能のパラメータ受け渡しにおける静的チエツ
クのための呼出し側パラメータ情報23〜24および受
取り側パラメータ情報25〜26が設定される。
As a result of the above, the calling side parameter information 23-24 and the receiving side parameter information 25-26 are set on the object program 14 for the static check in the parameter exchange of the inter-program communication function.

静的リンカ15は、オブジェクト入力手段16により複
数のオブジェクトプログラム14を入力し、リンク処理
手段17によりリンク処理を行って、ロードモジュール
出力手段18によりロードモジュール22を出力する。
The static linker 15 inputs a plurality of object programs 14 through an object input means 16, performs link processing through a link processing means 17, and outputs a load module 22 through a load module output means 18.

また、静的リンカ5では、オブジェクト入力手段16に
よるオブジェクトプログラム14の入力時に、パラメー
タ情報解析手段19が、オブジェクトプログラム14上
の呼出し側パラメータ情報23〜24および受取り側パ
ラメータ情報25〜26を取り込んで、同一の入口基を
有する呼出し側パラメータ情報23〜24と受取り側パ
ラメータ情報25〜26との間でパラメータの個数、パ
ラメータの桁数およびパラメータの属性の整合性(一致
)を検査する。
Further, in the static linker 5, when the object program 14 is input by the object input means 16, the parameter information analysis means 19 takes in the calling side parameter information 23-24 and the receiving side parameter information 25-26 on the object program 14. , the number of parameters, the number of digits of the parameters, and the consistency (match) of the parameter attributes are checked between the calling side parameter information 23-24 and the receiving side parameter information 25-26, which have the same entry group.

パラメータ情報解析結果表示手段20は、パラメータ情
報解析手段19によるパラメータ情報解析結果21をデ
イスプレィ装置等に表示する。
The parameter information analysis result display means 20 displays the parameter information analysis result 21 by the parameter information analysis means 19 on a display device or the like.

以上の結果、利用者は、パラメータ情報解析結果21を
見ることにより、ロードモジュール22(プログラム)
の実行以前にプログラム間連絡機能のパラメータ受け渡
しにおけるパラメータの個数。
As a result of the above, the user can read the load module 22 (program) by looking at the parameter information analysis result 21.
The number of parameters in the parameter passing of the program-to-program communication function before execution.

桁数および属性に関する妥当性をチエツクすることがで
きる。
Validity regarding number of digits and attributes can be checked.

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

以上説明したように本発明は、プログラミング言語の翻
訳機構において呼出し側パラメータ情報および受取り側
パラメータ情報を生成してオブジェクトプログラム上に
付加し、静的リンカにおいて呼出し側パラメータ情報と
受取り側パラメータ情報とを比較してプログラム間連絡
機能におけるパラメータの受け渡しの整合性を厳密にチ
エツクすることにより、プログラム作成者によるコーデ
ィングレビューあるいはプログラム走行テストにおける
全バス走行テストによる方法によらずに、プログラム開
発時に利用者が作成したプログラム間のパラメータの受
け渡しにおいてパラメータの個数1桁数および属性に関
する妥当性の検査を厳密に行うことができるという効果
がある。
As explained above, the present invention generates caller parameter information and receiver parameter information in a programming language translation mechanism, adds them to an object program, and adds the caller parameter information and receiver parameter information in a static linker. By comparing and strictly checking the consistency of parameter passing in the communication function between programs, users can easily check the consistency of parameter passing during program development, without relying on coding reviews by program creators or full bus running tests in program running tests. This has the advantage that the validity of the one-digit number of parameters and attributes can be strictly checked when passing parameters between created programs.

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

第1図は本発明のプログラム間連絡機能のパラメータ受
け渡しにおける静的チエツク方式の一実施例の構成を示
すブロック図、 第2図は第1図中のプログラミング言語の翻訳機構が生
成するオブジェクトプログラムに設定される呼出し側パ
ラメータ情報の内容を示す図、第3図は第1図中のプロ
グラミング言語の翻訳機構が生成するオブジェクトプロ
グラムに設定される受取り側パラメータ情報の内容を示
す図である。 図において、 1・・・ソースプログラム、 2・・・プログラミング言語の翻訳機構、3・・・字句
解析手段、 4・・・構文解析手段、 5・・・意味解析手段、 6・・・コード生成手段、 7・・・オブジェクト出力手段、 8・・・呼出し命令フェッチ手段、 9・・・呼出し側パラメータ情報取込み手段、lO・・
・呼出し側パラメータ情報設定手段、11・・・入口点
フェッチ手段、 12・・・受取り側パラメータ情報取込み手段、13・
・・受取り側パラメータ情報設定手段、14・・・オブ
ジェクトプログラム、 15・・・静的リンカ、 16・・・オブジェクト入力手段、 17・・・リンク処理手段、 18・・・ロードモジュール出力手段、19・・・パラ
メータ情報解析手段、 20・・・パラメータ情報解析結果表示手段、21・・
・パラメータ情報解析結果、 22・・・ロードモジュール、 23〜24・呼出し側パラメータ情報、25〜26・受
取り側パラメータ情報である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the static check method for parameter passing of the program-to-program communication function of the present invention. FIG. FIG. 3 is a diagram showing the contents of the receiving side parameter information set in the object program generated by the programming language translation mechanism in FIG. 1. In the figure, 1... Source program, 2... Programming language translation mechanism, 3... Lexical analysis means, 4... Syntactic analysis means, 5... Semantic analysis means, 6... Code generation. Means, 7...Object output means, 8...Calling instruction fetching means, 9...Calling side parameter information acquisition means, lO...
- Calling side parameter information setting means, 11... Entry point fetching means, 12... Receiving side parameter information importing means, 13.
... Receiving side parameter information setting means, 14... Object program, 15... Static linker, 16... Object input means, 17... Link processing means, 18... Load module output means, 19 ...Parameter information analysis means, 20...Parameter information analysis result display means, 21...
・Parameter information analysis result, 22...Load module, 23-24・Calling side parameter information, 25-26・Receiving side parameter information.

Claims (1)

【特許請求の範囲】 計算機システム上のプログラミング言語が他のプログラ
ムとの連絡機能を有し前記プログラミング言語の変数に
桁数および属性という共通した概念が存在しかつ静的リ
ンカによってプログラム間の連絡機能の解決を行う言語
処理系において、呼出し側プログラムの呼出し命令をフ
ェッチする呼出し命令フェッチ手段と、この呼出し命令
フェッチ手段によりフェッチされた呼出し命令のもつパ
ラメータの個数、桁数および属性を呼出し側パラメータ
情報として取り込む呼出し側パラメータ情報取込み手段
と、この呼出し側パラメータ情報取込み手段により取り
込まれた呼出し側パラメータ情報をオブジェクトプログ
ラム上に設定する呼出し側パラメータ情報設定手段と、
被呼出し側プログラムの入口点をフェッチする入口点フ
ェッチ手段と、この入口点フェッチ手段によりフェッチ
された入口点のもつパラメータの個数、桁数および属性
を受取り側パラメータ情報として取り込む受取り側パラ
メータ情報取込み手段と、この受取り側パラメータ情報
取込み手段により取り込まれた受取り側パラメータ情報
をオブジェクトプログラム上に設定する受取り側パラメ
ータ情報設定手段とを備えるプログラミング言語の翻訳
機構と、このプログラミング言語の翻訳機構により生成
されたオブジェクトプログラム上の呼出し側パラメータ
情報と受取り側パラメータ情報とを比較して呼出し側プ
ログラムの呼出し命令に指定されたパラメータの個数、
桁数および属性と被呼出し側プログラムの入口点に指定
されたパラメータの個数、桁数および属性との間の関係
を解析するパラメータ情報解析手段と、このパラメータ
情報解析手段により解析されたパラメータ情報解析結果
を表示するパラメータ情報解析結果表示手段とを備える
静的リンカと、 を有することを特徴とするプログラム間連絡機能のパラ
メータ受け渡しにおける静的チェック方式。
[Claims] A programming language on a computer system has a communication function with other programs, and the variables of the programming language have a common concept of number of digits and attributes, and a static linker has a communication function between programs. In a language processing system that solves the problem, there is a calling instruction fetching means that fetches the calling instruction of the calling program, and the number of parameters, number of digits, and attributes of the calling instruction fetched by this calling instruction fetching means. a calling side parameter information setting means for setting the calling side parameter information taken in by the calling side parameter information taking means on the object program;
Entrance point fetching means for fetching the entry point of the called program; and receiving side parameter information importing means for taking in the number, number of digits, and attributes of the parameters of the entry point fetched by the entry point fetching means as receiving side parameter information. and a receiving-side parameter information setting means for setting the receiving-side parameter information imported by the receiving-side parameter information importing means on the object program; The number of parameters specified in the calling command of the calling program by comparing the calling side parameter information and the receiving side parameter information on the object program,
parameter information analysis means for analyzing the relationship between the number of digits and attributes and the number, number of digits, and attributes of parameters specified at the entry point of the called program; and parameter information analysis analyzed by the parameter information analysis means. 1. A static check method in parameter passing of a program-to-program communication function, comprising: a static linker comprising a parameter information analysis result display means for displaying a result;
JP6187289A 1989-03-14 1989-03-14 Static check system for transfer of parameter of inter-program connection function Pending JPH02240729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6187289A JPH02240729A (en) 1989-03-14 1989-03-14 Static check system for transfer of parameter of inter-program connection function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6187289A JPH02240729A (en) 1989-03-14 1989-03-14 Static check system for transfer of parameter of inter-program connection function

Publications (1)

Publication Number Publication Date
JPH02240729A true JPH02240729A (en) 1990-09-25

Family

ID=13183651

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6187289A Pending JPH02240729A (en) 1989-03-14 1989-03-14 Static check system for transfer of parameter of inter-program connection function

Country Status (1)

Country Link
JP (1) JPH02240729A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001100998A (en) * 1999-09-29 2001-04-13 Hitachi Software Eng Co Ltd Computer system
US7272821B2 (en) 2003-08-25 2007-09-18 Tech Mahindra Limited System and method of universal programming language conversion

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57113149A (en) * 1980-12-29 1982-07-14 Fujitsu Ltd Interprogram control system
JPS6393044A (en) * 1986-10-07 1988-04-23 Mitsubishi Electric Corp Program translation/compiling connection system
JPS63147232A (en) * 1986-12-10 1988-06-20 Nec Corp Inspection system for matchability

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57113149A (en) * 1980-12-29 1982-07-14 Fujitsu Ltd Interprogram control system
JPS6393044A (en) * 1986-10-07 1988-04-23 Mitsubishi Electric Corp Program translation/compiling connection system
JPS63147232A (en) * 1986-12-10 1988-06-20 Nec Corp Inspection system for matchability

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001100998A (en) * 1999-09-29 2001-04-13 Hitachi Software Eng Co Ltd Computer system
US7272821B2 (en) 2003-08-25 2007-09-18 Tech Mahindra Limited System and method of universal programming language conversion

Similar Documents

Publication Publication Date Title
US5287444A (en) Message processing system
US6163858A (en) Diagnostic methodology for debugging integrated software
JP3612294B2 (en) Debugging method and debugging device
CN107861728A (en) Method from traditional program language to modern procedures language conversion and its system for
JPH05505274A (en) System and method for automatically interfacing calling standards between two dissimilar program units
EP0430182B1 (en) Method for assembly language programming potential error detection sensing apparent inconsistency with a previous operation
Van Deursen et al. Type inference for COBOL systems
US20050216897A1 (en) Converter, automation device with a converter, and a development environment having an automation device with converter
JPH02240729A (en) Static check system for transfer of parameter of inter-program connection function
CN109542827A (en) General purpose simulation, system and medium based on model
JPH06195216A (en) Automatic generation device for verification program
JPH09288580A (en) Device and method for optimizing source program
CN113704618B (en) Data processing method, device, equipment and medium based on deep learning model
US5029170A (en) Assembly language programming potential error detection scheme which recognizes incorrect symbolic or literal address constructs
Porkoláb et al. Comparison of Object-Oriented and Paradigm Independent Software Complexity Metrics
Wegener et al. XML TPS data exchange
JPH04211831A (en) Program verifying method, and trace data displaying method and compiling method for the same
CN118259646A (en) Diagnostic program generation method and device and vehicle
CN117609721A (en) SQL data analysis method and system based on Fidelius
CN117349357A (en) Medical system data debugging method and device
Tang A preprocessor and a database generator for automated program testing
KR970024717A (en) Command Analysis Method of Control Station System
CN116069633A (en) Code checking method and device, electronic equipment and storage medium
Rudd et al. Program Development
JPH11219289A (en) Object-oriented program quality evaluation device