JPH0556535B2 - - Google Patents

Info

Publication number
JPH0556535B2
JPH0556535B2 JP60122953A JP12295385A JPH0556535B2 JP H0556535 B2 JPH0556535 B2 JP H0556535B2 JP 60122953 A JP60122953 A JP 60122953A JP 12295385 A JP12295385 A JP 12295385A JP H0556535 B2 JPH0556535 B2 JP H0556535B2
Authority
JP
Japan
Prior art keywords
parameter
instruction
statement
information table
parameter analysis
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.)
Expired - Lifetime
Application number
JP60122953A
Other languages
Japanese (ja)
Other versions
JPS61279931A (en
Inventor
Atsumasa Yoshida
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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP60122953A priority Critical patent/JPS61279931A/en
Publication of JPS61279931A publication Critical patent/JPS61279931A/en
Publication of JPH0556535B2 publication Critical patent/JPH0556535B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コマンドあるいはマクロ命令等の所
謂命令文に対するパラメータ解析方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a parameter analysis method for so-called imperative sentences such as commands or macro instructions.

〔従来の技術〕[Conventional technology]

所謂命令文に対するパラメータ解析方法におい
て、従来、パラメータ解析処理を行う本体である
パラメータ解析プロセツサの論理フロー内に、各
命令毎に異なる、その命令に関するパラメータ情
報が組み込まれている。
In a so-called parameter analysis method for an instruction sentence, parameter information regarding each instruction, which is different for each instruction, is conventionally incorporated into the logic flow of a parameter analysis processor, which is the main body that performs parameter analysis processing.

このため、第3図に示すようにパラメータ解析
プロセツサは、パラメータ情報を論理フロー内に
組み込んだ相異なるパラメータ解析処理部を各命
令単位に、即ち、当システムで処理可能な命令の
種類がd個あるとすれば、d個の異なるパラメー
タ解析処理部n1、n2、…、ndを持つていた。
Therefore, as shown in Figure 3, the parameter analysis processor has different parameter analysis processing units that incorporate parameter information into the logic flow for each instruction, that is, the number of types of instructions that can be processed by this system is d. If so, it would have d different parameter analysis processing units n 1 , n 2 , . . . , n d .

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

この従来のパラメータ解析方法では、各命令の
種別単位に相異なるパラメータ解析処理部が、パ
ラメータ解析プロセツサ内に存在し、命令の新規
追加が行われる毎に、その命令に関するパラメー
タ解析処理部が当プロセツサの論理フロー内に新
規追加されなければならず、パラメータ解析処理
が実行されるために必要な主記憶装置上のメモリ
空間が、追加処理部の容量分だけ増加するという
問題点があり、また、命令の新規追加あるいは削
除により、当プロセツサの論理フロー自体に変更
を加えることになり、これによりパラメータ解析
システムの信頼性の低下を招く可能性があるとい
う欠点もある。
In this conventional parameter analysis method, a different parameter analysis processing unit exists in the parameter analysis processor for each type of instruction, and each time a new instruction is added, the parameter analysis processing unit related to that instruction is There is a problem that the memory space on the main storage device required for executing the parameter analysis processing increases by the capacity of the additional processing section. Adding or deleting new instructions changes the logic flow of the processor itself, which also has the disadvantage of potentially reducing the reliability of the parameter analysis system.

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

本発明のパラメータ解析方法は、命令文の中に
記述される命令名を登録する命令一覧テーブル
と、該命令一覧テーブルに登録されている各命令
毎に、その命令に定義されているパラメータ名を
登録するパラメータ情報テーブルと、各パラメー
タ毎にそのパラメータの型または値の範囲という
パラメータ属性を登録するパラメータ属性テーブ
ルとが補助記憶装置上に構成されたシステムにお
ける方法であつて、命令文のパラメータの妥当性
チエツクを行う本体であるパラメータ解析プロセ
ツサが主記憶装置上で駆動されると、命令一覧テ
ーブルおよび命令文が主記憶装置上に読込まれ、
パラメータ解析プロセツサは命令文中に発見した
命令名をキーとして命令一覧テーブルを検索し、
該命令名に対応するパラメータ情報テーブルが前
記補助記憶装置から獲得されて主記憶装置上に転
送され、前記パラメータ情報テーブルに登録され
ているパラメータ名のパラメータに関するパラメ
ータ属性テーブルが前記補助記憶装置から獲得さ
れて主記憶上に転送され、以後、パラメータ解析
プロセツサは該パラメータ情報テーブルと必要に
応じて該パラメータ属性テーブルとを参照して命
令文のパラメータの妥当性チエツクを行なうこと
を特徴とする。
The parameter analysis method of the present invention includes an instruction list table that registers instruction names written in instruction sentences, and a parameter name defined for each instruction registered in the instruction list table. A method for a system in which a parameter information table to be registered and a parameter attribute table to register parameter attributes such as the parameter type or value range for each parameter are configured on an auxiliary storage device, and When the parameter analysis processor, which is the main body that performs the validity check, is driven on the main memory, the instruction list table and the instruction statement are read into the main memory,
The parameter analysis processor searches the instruction list table using the instruction name found in the instruction statement as a key.
A parameter information table corresponding to the instruction name is acquired from the auxiliary storage device and transferred onto the main storage device, and a parameter attribute table regarding the parameter with the parameter name registered in the parameter information table is acquired from the auxiliary storage device. After that, the parameter analysis processor checks the validity of the parameters of the statement by referring to the parameter information table and, if necessary, the parameter attribute table.

したがつて、命令文に対するパラメータ解析処
理が実行されるために必要な主記憶装置上のメモ
リ空間は、命令またはパラメータの種別には依存
せず、パラメータ解析プロセツサの容量と、パラ
メータ解析に必要なデータ部である命令一覧テー
ブルおよびパラメータ情報テーブルの大きさとに
より決定され、従つて、命令の新規追加が行われ
た場合でも、メモリ空間の増加は命令一覧テーブ
ルまたはパラメータ情報テーブル内に新規追加さ
れた数フイールド分となる。
Therefore, the memory space on the main storage device required to perform parameter analysis processing for an instruction statement does not depend on the type of instruction or parameter, but depends on the capacity of the parameter analysis processor and the amount of space required for parameter analysis. It is determined by the size of the instruction list table and parameter information table, which are the data parts. Therefore, even if a new instruction is added, the memory space will increase due to the size of the instruction list table or parameter information table. It will be several fields.

〔実施例〕〔Example〕

本発明の実施例について図面を参照して説明す
る。
Embodiments of the present invention will be described with reference to the drawings.

第1図は本発明によるパラメータ解析方法の一
実施例に適用されるシステムの説明図、第2図は
本発明の一実施例を示す図である。
FIG. 1 is an explanatory diagram of a system applied to an embodiment of the parameter analysis method according to the present invention, and FIG. 2 is a diagram showing an embodiment of the present invention.

パラメータ解析プロセツサ3は、電子計算機シ
ステムのオペレーテイングシステムの一部として
ユーテイリテイであり、該プロセツサ3に起動要
求がかけられると、主記憶装置1に転送される。
補助記憶装置2には、命令一覧テーブル4と各命
令の種別単位に存在するパラメータ情報テーブル
5とこのパラメータ情報テーブル5に格納された
パラメータ名のパラメータの型または値の範囲と
いう属性を登録するパラメータ属性テーブル8と
がフアイル6として構成されている。
The parameter analysis processor 3 is a utility as part of the operating system of the electronic computer system, and when a startup request is made to the processor 3, the data is transferred to the main storage device 1.
The auxiliary storage device 2 stores an instruction list table 4, a parameter information table 5 that exists for each instruction type, and parameters that register attributes such as parameter types or value ranges of parameter names stored in this parameter information table 5. An attribute table 8 is configured as a file 6.

命令一覧テーブル4は、フアイル6の先頭レコ
ードに格納されており、その構造は、一フイール
ド内に命令名と、その命令に関するパラメータ情
報テーブル5が格納されているフアイル6内のレ
コード・アドレスとの二項目が定義されている。
ある命令に関するパラメータ情報テーブル5は、
その命令に定義されているパラメータ名が登録さ
れており、その構造は、一フイールド内にパラメ
ータ名と、そのパラメータの型または値の範囲等
を示すパラメータ属性を登録したパラメータ属性
テーブル8が格納されているフアイル6内のレコ
ード・アドレスとの二項目が定義されている。
The instruction list table 4 is stored in the first record of the file 6, and its structure consists of an instruction name in one field and a record address in the file 6 where the parameter information table 5 related to that instruction is stored. Two items are defined.
The parameter information table 5 regarding a certain command is as follows:
The parameter name defined in the instruction is registered, and its structure is such that a parameter attribute table 8 is stored in which a parameter name and parameter attributes indicating the type or value range of the parameter are registered in one field. Two items are defined: the record address in file 6.

なお、パラメータ解析プロセツサ3内のエリア
300,301および320は、パラメータ解析
プロセツサ3によつて定義されたデータ格納エリ
アである。
Note that areas 300, 301, and 320 within the parameter analysis processor 3 are data storage areas defined by the parameter analysis processor 3.

次に、本実施例の制御手順を第1図および第2
図によつて説明する。
Next, the control procedure of this embodiment will be explained in Figs. 1 and 2.
This will be explained using figures.

起動要求がかかると、先ずパラメータ解析プロ
セツサ3が主記憶装置1にイニシヤル・ロードさ
れる(処理10)。次に命令一覧テーブル4が主
記憶装置1のエリア310に転送される(処理2
0)。命令文7が主記憶装置1のエリア300に
読込まれた後(処理30)、パラメータ解析プロ
セツサ3が命令文7中に命令名を発見したなら
ば、発見された命令名をキーとしてエリア310
にある命令一覧テーブル4を検索し、その命令に
関するパラメータ情報テーブル5を獲得する処理
を行う(処理40)。獲得された該テーブル5は、
主記憶装置1のエリア320に転送され(処理5
0)、命令文のパラメータの妥当性チエツク、す
なわちパラメータ解析処理のために参照される
(処理60)。さらに、このパラメータ情報テーブ
ル5に登録されているパラメータ名のパラメータ
に関するパラメータ属性テーブル8を必要に応じ
て獲得する処理を行う(処理53)。獲得された
該テーブル8は、主記憶装置1のエリア320に
転送され(処理57)、パラメータ解析処理のた
めに参照される(処理60)。
When a startup request is made, first, the parameter analysis processor 3 is initially loaded into the main storage device 1 (process 10). Next, the instruction list table 4 is transferred to the area 310 of the main storage device 1 (processing 2
0). After the instruction statement 7 is read into the area 300 of the main memory device 1 (processing 30), if the parameter analysis processor 3 finds an instruction name in the instruction statement 7, the parameter analysis processor 3 reads the instruction statement in the area 310 using the discovered instruction name as a key.
A process is performed to search the command list table 4 located at , and obtain the parameter information table 5 related to the command (process 40). The acquired table 5 is
It is transferred to area 320 of main storage device 1 (processing 5
0) is referred to for checking the validity of the parameters of the command statement, that is, for parameter analysis processing (process 60). Further, a process is performed to acquire the parameter attribute table 8 regarding the parameter having the parameter name registered in the parameter information table 5 as necessary (process 53). The obtained table 8 is transferred to the area 320 of the main storage device 1 (processing 57), and is referred to for parameter analysis processing (processing 60).

一命令文に対するパラメータ解析処理が完了す
る毎に、主記憶装置1のエリア300,320お
よび330は初期化されるが(処理70)、エリ
ア310の内容は、該解析処理の停止要求が出さ
れる迄保障される。
Each time the parameter analysis process for one instruction statement is completed, areas 300, 320, and 330 of the main storage device 1 are initialized (process 70), and the contents of the area 310 are changed until a request to stop the analysis process is issued. guaranteed until.

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

以上説明したように本発明は、命令一覧テーブ
ル、パラメータ情報テーブルおよびパラメータ属
性テーブルを補助記憶装置上に構成しておき、パ
ラメータ解析プロセツサが駆動された後これらテ
ーブルを必要に応じて主記憶装置上に転送するこ
とにより、命令文に対するパラメータ解析処理が
実行されるために必要な主記憶装置上のメモリ空
間は、命令またはパラメータの種別には依存せ
ず、パラメータ解析プロセツサの容量と、パラメ
ータ解析に必要なデータ部である命令一覧テーブ
ル、パラメータ情報テーブルおよびパラメータ属
性テーブルの大きさとにより決定され、命令また
はパラメータの新規追加が行われた場合でも、メ
モリ空間の増加は、命令一覧テーブルまたはパラ
メータ情報テーブル内に新規追加された数フイー
ルド分のみであり、これにより主記憶の有効利用
をはかることができ、また、前記追加あるいは削
除により、内容の変更を必要とするのは、パラメ
ータ情報テーブルおよびパラメータ属性テーブル
等が格納されているデータフアイルのみであり、
パラメータ解析プロセツサの論理フロー自体には
全く変更が必要ないので、パラメータ解析方法の
信頼性を維持することができる。
As explained above, in the present invention, an instruction list table, a parameter information table, and a parameter attribute table are configured on an auxiliary storage device, and after the parameter analysis processor is driven, these tables are stored on the main storage device as necessary. By transferring the parameter analysis to The size of the instruction list table, parameter information table, and parameter attribute table, which are the necessary data parts, is determined by the size of the instruction list table, parameter information table, and parameter attribute table. The contents of the parameter information table and parameter attributes only need to be changed due to the additions or deletions. It is only a data file that stores tables etc.
Since the logical flow of the parameter analysis processor itself does not require any changes, the reliability of the parameter analysis method can be maintained.

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

第1図は本発明によるパラメータ解析方法を適
用するシステムの説明図、第2図は本発明の一実
施例の処理フローを示す図、第3図は従来例の説
明図である。 1……主記憶装置、2……補助記憶装置、3…
…パラメータ解析プロセツサ、4……命令一覧テ
ーブル、5……パラメータ情報テーブル、6……
フアイル、7……命令文、300,310,32
0……データ格納エリア。
FIG. 1 is an explanatory diagram of a system to which the parameter analysis method according to the present invention is applied, FIG. 2 is a diagram showing a processing flow of an embodiment of the present invention, and FIG. 3 is an explanatory diagram of a conventional example. 1...Main storage device, 2...Auxiliary storage device, 3...
...Parameter analysis processor, 4...Instruction list table, 5...Parameter information table, 6...
File, 7... Command statement, 300, 310, 32
0...Data storage area.

Claims (1)

【特許請求の範囲】[Claims] 1 命令文の中に記述される命令名を登録する命
令一覧テーブルと、該命令一覧テーブルに登録さ
れている各命令毎に、その命令に定義されている
パラメータ名を登録するパラメータ情報テーブル
と、各パラメータ毎にそのパラメータの型または
値の範囲というパラメータ属性を登録するパラメ
ータ属性テーブルとが補助記憶装置上に構成され
たシステムにおける方法であつて、命令文のパラ
メータの妥当性チエツクを行う本体であるパラメ
ータ解析プロセツサが主記憶上で駆動されると、
命令一覧表テーブルおよび命令文が主記憶装置上
に読込まれ、パラメータ解析プロセツサは命令文
中に発見した命令名をキーとして命令一覧テーブ
ルを検索し、該命令名に対応するパラメータ情報
テーブルが前記補助記憶装置から主記憶上に転送
され、前記パラメータ情報テーブルに登録されて
いるパラメータ名のパラメータに関するパラメー
タ属性テーブルが前記補助記憶装置から獲得され
て主記憶上に転送され、以後、パラメータ解析プ
ロセツサは該パラメータ情報テーブルと必要に応
じて該パラメータ属性テーブルとを参照して、命
令文のパラメータの妥当性チエツクを行なうこと
を特徴とするパラメータ解析方法。
1. An instruction list table that registers the instruction names described in the instruction statement, and a parameter information table that registers the parameter names defined for each instruction for each instruction registered in the instruction list table. This method is used in a system in which a parameter attribute table is configured on an auxiliary storage device in which parameter attributes such as the parameter type or value range are registered for each parameter, and the main body is a system that checks the validity of the parameters of an instruction statement. When a parameter analysis processor is driven on main memory,
The instruction list table and the instruction statement are read into the main memory, the parameter analysis processor searches the instruction list table using the instruction name found in the instruction statement as a key, and the parameter information table corresponding to the instruction name is stored in the auxiliary memory. A parameter attribute table related to the parameter whose parameter name is transferred from the device to the main memory and registered in the parameter information table is acquired from the auxiliary storage and transferred to the main memory, and thereafter, the parameter analysis processor A parameter analysis method characterized by checking the validity of parameters of an instruction statement by referring to an information table and, if necessary, the parameter attribute table.
JP60122953A 1985-06-06 1985-06-06 Parameter analysis system Granted JPS61279931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60122953A JPS61279931A (en) 1985-06-06 1985-06-06 Parameter analysis system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60122953A JPS61279931A (en) 1985-06-06 1985-06-06 Parameter analysis system

Publications (2)

Publication Number Publication Date
JPS61279931A JPS61279931A (en) 1986-12-10
JPH0556535B2 true JPH0556535B2 (en) 1993-08-19

Family

ID=14848708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60122953A Granted JPS61279931A (en) 1985-06-06 1985-06-06 Parameter analysis system

Country Status (1)

Country Link
JP (1) JPS61279931A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52119832A (en) * 1976-04-01 1977-10-07 Toshiba Corp Electroinc calculator of microprogram control system
JPS5947645A (en) * 1982-09-13 1984-03-17 Toshiba Corp Program loading system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52119832A (en) * 1976-04-01 1977-10-07 Toshiba Corp Electroinc calculator of microprogram control system
JPS5947645A (en) * 1982-09-13 1984-03-17 Toshiba Corp Program loading system

Also Published As

Publication number Publication date
JPS61279931A (en) 1986-12-10

Similar Documents

Publication Publication Date Title
JP4774056B2 (en) Method and apparatus for implementing hybrid hardware and software for transactional memory access
JPS61166652A (en) Interruption generating system using exceptional memory protection
JPH03160534A (en) Access control system for shared file
JPH0556535B2 (en)
JPS63200257A (en) Program loading system for computer
JPH0525359B2 (en)
JPS60252973A (en) Dynamic loading control system
JPS62131349A (en) Data base processing system
JP3118348B2 (en) Program cache method
JPS62107336A (en) Control method for hierarchy type data base
JPH01116851A (en) Program load control system
JPS6010368A (en) Address conversion buffer control system
JP2988048B2 (en) Dictionary information resident access device
JPH05165756A (en) Channel controller with macro processing function
JPH0621995B2 (en) File simultaneous access control system
JPH02230347A (en) Read system of data by unitarity of index information
JPH05233305A (en) Program loading system
JPS63208971A (en) Multiprocessor control system
JPS61156450A (en) Dynamic buffer control system
JPS6318427A (en) File access mode declaring system
JPS63245723A (en) System command registering system
JPS63196958A (en) Fault recovery processing method
JPH02208750A (en) File access system
JPS62204338A (en) Lisp language processing system
JPS6144339B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term