JPH06214797A - Data processor - Google Patents

Data processor

Info

Publication number
JPH06214797A
JPH06214797A JP557393A JP557393A JPH06214797A JP H06214797 A JPH06214797 A JP H06214797A JP 557393 A JP557393 A JP 557393A JP 557393 A JP557393 A JP 557393A JP H06214797 A JPH06214797 A JP H06214797A
Authority
JP
Japan
Prior art keywords
data
data processing
model
processing mechanism
arithmetic
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.)
Granted
Application number
JP557393A
Other languages
Japanese (ja)
Other versions
JP2732768B2 (en
Inventor
Kokukiyou Shiyou
国強 肖
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.)
Fujitsu Social Science Labs Ltd
Original Assignee
Fujitsu Social Science Labs 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 Fujitsu Social Science Labs Ltd filed Critical Fujitsu Social Science Labs Ltd
Priority to JP5005573A priority Critical patent/JP2732768B2/en
Publication of JPH06214797A publication Critical patent/JPH06214797A/en
Application granted granted Critical
Publication of JP2732768B2 publication Critical patent/JP2732768B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To appropriately cope with the difference of the machine kind of a data processing mechanism concerning a data processor which takes configuration for executing a data processing by providing data processing mechanism where the data processing is executed through the use of arithmetic data given from the outside. CONSTITUTION:The data processor is provided with a machine kind detecting mechanism 3 which is called out at the time of starting the data processing of a data processing mechanism 2 and detects the classified machine kind of the data processing mechanism 2, a control mechanism 4 which controls the detected result of the machine kind detecting mechanism 3 and a data form an adjusting mechanism 5 which is called out at the time of access of arithmetic data by the data processing mechanism 2, refers to control data of the control mechanism 4 and adjusts the data form of arithmetic data to be accessed so as to be the one designated by the contorl data. The data processing mechanism 2 is constituted so as to execute data processing through the use of arithmetic data adjusted by the data form adjusting mechanism 5.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、外部から与えられる演
算データを使ってデータ処理を実行するデータ処理機構
を備えることで、データ処理を遂行していく構成を採る
データ処理装置に関し、特に、データ処理機構の機種差
に適切に対処できるようにするデータ処理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device having a structure for performing data processing by providing a data processing mechanism for executing data processing using operation data given from the outside, and more particularly, The present invention relates to a data processing device capable of appropriately coping with a difference in model of data processing mechanism.

【0002】データ処理装置のデータ処理機構は、機種
対応に用意されるコンパイラによって、応用プログラム
からコンパイルされて展開されることになる。これか
ら、データ処理機構は機種差を持つことになるが、マシ
ン作業の機種制限を減らすためにも、このような機種差
を克服するような構成の構築が必要である。
A data processing mechanism of a data processing apparatus is compiled and expanded from an application program by a compiler prepared for each model. From now on, although the data processing mechanism will have a difference in model, it is necessary to construct a configuration that overcomes such a model difference in order to reduce the model limitation of machine work.

【0003】[0003]

【従来の技術】計算機で扱う数値データ等の演算データ
には、機種によって固有のバイト順規則がある。
2. Description of the Related Art Operational data such as numerical data handled by a computer has a unique byte order rule depending on the model.

【0004】例えば、“43981”という数値データ
は、モトローラ系の計算機では、図5(a)に示すよう
に、上位バイトが“AB”で下位バイトが“CD”でも
って表されるのに対して、インテル系の計算機では、図
5(b)に示すように、上位バイトが“CD”で下位バ
イトが“AB”で表されることになる。すなわち、図6
に示すように、“ABCD”という2バイトの数値デー
タは、モトローラ系の計算機では“43981”という
数値として扱われるのに対して、インテル系の計算機で
は“52651”という数値として扱われることになる
のである。
For example, the numerical data "43981" is represented by the upper byte "AB" and the lower byte "CD" in a Motorola computer, as shown in FIG. 5 (a). In an Intel computer, the upper byte is represented by "CD" and the lower byte is represented by "AB", as shown in FIG. 5 (b). That is, FIG.
As shown in, the 2-byte numerical data "ABCD" is treated as a numerical value "43981" by a Motorola computer, whereas it is treated as a numerical value "52651" by an Intel computer. Of.

【0005】このような機種によるバイト順規則の違い
を考慮して、従来では、プログラマが、使用する計算機
機種に応じたバイト順規則を配慮しつつ応用プログラム
を作成していくという方法を採っていた。
In consideration of such a difference in the byte order rule depending on the model, conventionally, a method is adopted in which a programmer creates an application program while considering the byte order rule according to the computer model used. It was

【0006】[0006]

【発明が解決しようとする課題】しかしながら、このよ
うな従来技術に従っていると、プログラマは、応用プロ
グラムの作成にあたって、いちいち使用する計算機機種
を意識しなければならないことから、応用プログラムの
作成に手間がかかるという問題点があった。
However, if such a conventional technique is followed, the programmer has to be aware of the computer model to be used in creating the application program, and therefore the application program is troublesome. There was a problem of this.

【0007】そして、機種毎に別々の応用プログラムを
作成しなければならないことから、保存するプログラム
ソース量が大きくなるとともに、応用プログラムのメン
テナンスや改良の負荷が増加するという問題点があっ
た。
Since it is necessary to create a separate application program for each model, there is a problem that the amount of program source to be saved increases and the load of maintenance and improvement of the application program increases.

【0008】本発明はかかる事情に鑑みてなされたもの
であって、外部から与えられる演算データを使ってデー
タ処理を実行するデータ処理機構を備えることで、デー
タ処理を遂行していく構成を採るデータ処理装置にあっ
て、データ処理機構の機種差に適切に対処できるように
する新たなデータ処理装置の提供を目的とする。
The present invention has been made in view of the above circumstances, and has a configuration for performing data processing by including a data processing mechanism for performing data processing using operation data provided from the outside. It is an object of the present invention to provide a new data processing device in a data processing device that can appropriately cope with a difference in model of a data processing mechanism.

【0009】[0009]

【課題を解決するための手段】図1に本発明の原理構成
を図示する。図中、1は本発明を具備するデータ処理装
置、2はデータ処理装置1の展開するデータ処理機構で
あって、外部から与えられる演算データを使ってデータ
処理を実行するもの、3はデータ処理装置1のサブルー
チン機構として用意される機種検出機構であって、判定
部30と検査データ展開域31とを備えて、データ処理
機構2の機種種別を検出するもの、4は管理機構であっ
て、機種検出機構3の検出結果を管理するもの、5はデ
ータ処理機構1のサブルーチン機構として用意されるデ
ータ形式調整機構であって、データ処理装置1の用いる
演算データのデータ形式を調整するもの、6はワークエ
リアであって、データ形式調整機構5の調整した演算デ
ータを格納するものである。
FIG. 1 shows the principle configuration of the present invention. In the figure, 1 is a data processing device equipped with the present invention, 2 is a data processing mechanism developed by the data processing device 1, which executes data processing using operation data given from the outside, 3 is data processing A model detection mechanism prepared as a sub-routine mechanism of the apparatus 1, which includes a determination unit 30 and an inspection data expansion area 31, and detects the model type of the data processing mechanism 2, 4 is a management mechanism, What manages the detection result of the model detection mechanism 3, 5 is a data format adjustment mechanism prepared as a subroutine mechanism of the data processing mechanism 1, and adjusts the data format of the operation data used by the data processing device 1, 6 Is a work area for storing the calculation data adjusted by the data format adjusting mechanism 5.

【0010】[0010]

【作用】本発明では、データ処理機構2は、データ処理
開始時に、機種検出機構3を呼び出す。この機種検出機
構3の判定部30は、例えば、特定の変数に規定の定数
値を設定するプログラム記述をソースプログラムに記述
し、コンパイラにより変換されるその定数値を検査デー
タ展開域31に書き込む構成を採って、このようにして
データ処理装置1から呼び出されると、検査データ展開
域31に展開されるその検査データをチェックすること
で、データ処理機構2の機種種別を検出して、その検出
結果を管理機構4に登録する。
In the present invention, the data processing mechanism 2 calls the model detecting mechanism 3 at the start of data processing. The determination unit 30 of the model detection mechanism 3 is configured such that, for example, a program description for setting a specified constant value in a specific variable is described in the source program, and the constant value converted by the compiler is written in the inspection data expansion area 31. When the data processing device 1 is called in this way, the inspection data expanded in the inspection data expansion area 31 is checked to detect the model type of the data processing mechanism 2 and the detection result. Is registered in the management mechanism 4.

【0011】一方、データ処理機構2は、外部記憶装置
等の演算データをアクセスするときには、データ形式調
整機構5を呼び出す。このようにして呼び出されると、
データ形式調整機構5は、アクセス対象の外部演算デー
タのデータ形式と、管理機構4の管理する機種種別の指
定する演算データ形式とが異なるか否かをチェックし
て、異なるときには、アクセス対象の外部演算データを
管理機構4の管理する機種種別の指定する演算データ形
式のものに変換してワークエリア6に格納し、一致する
ときには、そのままワークエリア6に格納する。
On the other hand, the data processing mechanism 2 calls the data format adjusting mechanism 5 when accessing operation data in an external storage device or the like. When called like this,
The data format adjustment mechanism 5 checks whether the data format of the external operation data to be accessed is different from the operation data format specified by the model type managed by the management mechanism 4, and if they are different, the external data to be accessed is checked. The calculation data is converted into a calculation data format specified by the model type managed by the management mechanism 4 and stored in the work area 6. When they match, the calculation data is stored as it is in the work area 6.

【0012】そして、データ処理機構2は、ワークエリ
ア6に格納される調整された演算データを用いてデータ
処理を実行する。このように、本発明によれば、応用プ
ログラムから展開されるデータ処理機構2は、プログラ
ムの実行開始時に、機種検出機構3を呼び出して機種種
別の自動検出を行い、続いて、外部の演算データをアク
セスする度に、データ形式調整機構5を呼び出して、検
出された機種種別に従って外部から与えられる演算デー
タのデータ形式を変更していくことで機種差を吸収する
構成を採ることから、機種間で応用プログラムを共通化
することができるようになる。
Then, the data processing mechanism 2 executes data processing by using the adjusted operation data stored in the work area 6. As described above, according to the present invention, the data processing mechanism 2 expanded from the application program calls the model detecting mechanism 3 to automatically detect the model type at the start of execution of the program, and subsequently, the external operation data. The data format adjustment mechanism 5 is called every time is accessed, and the data format of the operation data given from the outside is changed according to the detected model type to absorb the model difference. With this, application programs can be shared.

【0013】[0013]

【実施例】以下、実施例に従って本発明を詳細に説明す
る。図2に、本発明のデータ処理装置1の実行する処理
フローの一実施例を図示する。ここで、図中の部分の
処理は、機種検出機構3が実行する処理であり、部分
の処理は、データ形式調整機構5が実行する処理であ
る。次に、この処理フローに従って、本発明について詳
細に説明する。
EXAMPLES The present invention will be described in detail below with reference to examples. FIG. 2 illustrates an example of a processing flow executed by the data processing device 1 of the present invention. Here, the process of the part in the drawing is the process executed by the model detection mechanism 3, and the process of the part is the process executed by the data format adjustment mechanism 5. Next, the present invention will be described in detail according to this processing flow.

【0014】データ処理装置1の機種検出機構3は、デ
ータ処理機構2がデータ処理を開始するときに呼び出さ
れるものであって、図2の処理フローに示すように、先
ず最初に、ステップ1で、機種別変数を定義し、次に、
ステップ2で、テスト変数に定数値“43981”を設
定する。
The model detection mechanism 3 of the data processing device 1 is called when the data processing mechanism 2 starts data processing. As shown in the processing flow of FIG. , Define model-specific variables, then
In step 2, a constant value "43981" is set in the test variable.

【0015】このようにして設定される定数値は、コン
パイラによりデータ処理装置1の機種種別に特有の内部
表現値に変換されるので、続いて、ステップ3で、この
テスト変数の内部表現値をバイト単位で参照して、この
内部表現値がモトローラ系機種を表示する“ABCD”
のバイト並びであるのか、インテル系機種を表示する
“CDAB”のバイト並びであるのかを判断する。
The constant value thus set is converted into an internal expression value specific to the model type of the data processing device 1 by the compiler. Then, in step 3, the internal expression value of this test variable is changed. "ABCD" in which this internal expression value refers to a Motorola model by referring to each byte
It is determined whether it is the byte arrangement of "," or the byte arrangement of "CDAB" that displays the Intel type model.

【0016】そして、このステップ3で、“ABCD”
のバイト並びであると判断するときには、ステップ4に
進んで、定義した機種別変数にモトローラ系機種を表示
する機種Iを設定し、一方、“CDAB”のバイト並び
であると判断するときには、ステップ5に進んで、定義
した機種別変数にインテル系機種を表示する機種IIを設
定して処理を終了する。
Then, in this step 3, "ABCD"
If it is determined that the byte sequence is "CDAB", the process proceeds to step 4, and the model I for displaying the Motorola model is set in the defined model-specific variable. Proceeding to step 5, the model II that displays the Intel model is set in the defined model-specific variable and the process ends.

【0017】一方、データ処理装置1のデータ形式調整
機構5は、データ処理機構2が外部記憶装置等から数値
データを読み込む度に呼び出されるものであって、図2
の処理フローに示すように、先ず最初に、ステップ6
で、機種別変数に機種Iが設定されているのか機種IIが
設定されているのかを調べる。
On the other hand, the data format adjusting mechanism 5 of the data processing device 1 is called every time the data processing mechanism 2 reads numerical data from an external storage device or the like.
As shown in the processing flow of FIG.
Then, it is checked whether the model I or model II is set in the model-specific variable.

【0018】そして、このステップ1で、機種Iが設定
されていると判断するときには、ステップ7に進んで、
読み込んだ数値データのバイト順番を機種Iのものに調
整し、一方、機種IIが設定されていると判断するときに
は、ステップ8に進んで、読み込んだ数値データのバイ
ト順番を機種IIのものに調整する。すなわち、図3に示
すように、データ処理機構2の機種種別がモトローラ系
で、外部から読み込む数値データがモトローラ系機種の
データ形式をとるときには、その数値データをそのまま
読み込み、一方、インテル系機種のデータ形式をとると
きには、その数値データの上位バイトと下位バイトとを
交換していくことで、図4に示すように機種差を吸収し
ていくのである。
When it is determined in step 1 that the model I is set, the process proceeds to step 7,
Adjust the byte order of the read numerical data to that of model I. On the other hand, if you judge that model II is set, proceed to step 8 and adjust the byte order of the read numerical data to that of model II. To do. That is, as shown in FIG. 3, when the model type of the data processing mechanism 2 is the Motorola system and the numerical data read from the outside takes the data format of the Motorola system model, the numerical data is read as it is, while the Intel model When the data format is adopted, the upper byte and the lower byte of the numerical data are exchanged to absorb the model difference as shown in FIG.

【0019】このようにして、外部から読み込む数値デ
ータのバイト並びが調整されると、データ処理機構2
は、この調整された数値データを用いてデータ処理を実
行する。そして、データ処理結果の数値データをディス
プレイ装置や印刷装置に出力するときには、このデータ
形式の逆変換を行っていくよう処理することになる。
When the byte arrangement of the numerical data read from the outside is adjusted in this way, the data processing mechanism 2
Performs data processing using the adjusted numerical data. Then, when the numerical data of the data processing result is output to the display device or the printing device, the data format is inversely converted.

【0020】このように、本発明によれば、応用プログ
ラムから展開されるデータ処理機構2は、プログラムの
実行開始時に、機種検出機構3を呼び出して機種種別の
自動検出を行い、続いて、外部の演算データをアクセス
する度に、データ形式調整機構5を呼び出して、検出さ
れた機種種別に従って外部から与えられる演算データの
データ形式を変更していくことで機種差を吸収する構成
を採ることから、機種間で応用プログラムを共通化する
ことができるようになる。
As described above, according to the present invention, the data processing mechanism 2 expanded from the application program calls the model detecting mechanism 3 to automatically detect the model type at the start of execution of the program, and then the external device. Each time the calculation data of is accessed, the data format adjustment mechanism 5 is called, and the data format of the calculation data given from the outside is changed according to the detected model type. , It becomes possible to share the application program between models.

【0021】図示実施例について説明したが、本発明は
これに限定されることはない。例えば、実施例では、モ
トローラ系機種とインテル系機種との数値データのデー
タ並びの違いを例にして本発明を開示したが、本発明は
これに限定されるものではなく、別の機種種別の持つデ
ータ形式の違いに対してもそのまま適用できるととも
に、数値データ以外の演算データの違いに対してもその
まま適用できるものである。
Although the illustrated embodiment has been described, the invention is not limited thereto. For example, in the embodiment, the present invention has been disclosed by taking the difference in the data arrangement of the numerical data between the Motorola-based model and the Intel-based model as an example, but the present invention is not limited to this and another model type It can be applied as it is to the difference in the data format that it has, and to the difference in the operation data other than the numerical data as it is.

【0022】[0022]

【発明の効果】以上説明したように、本発明によれば、
計算機機種に違いがあっても、応用プログラムを共通化
できるようになることから、応用プログラムの作成が簡
単になるとともに、保存するプログラムソース量を圧縮
でき、更に、応用プログラムのメンテナンスや改良の負
荷を低減できるようになる。
As described above, according to the present invention,
Even if there are differences in computer models, application programs can be shared, making it easy to create application programs and compressing the amount of program source to be saved. Can be reduced.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】本発明のデータ処理装置の実行する処理フロー
の一実施例である。
FIG. 2 is an example of a processing flow executed by the data processing apparatus of the present invention.

【図3】データ形式調整機構の実行する処理の説明図で
ある。
FIG. 3 is an explanatory diagram of processing executed by a data format adjustment mechanism.

【図4】データ形式調整機構の実行する処理の説明図で
ある。
FIG. 4 is an explanatory diagram of processing executed by a data format adjustment mechanism.

【図5】数値データのデータ形式の説明図である。FIG. 5 is an explanatory diagram of a data format of numerical data.

【図6】数値データのデータ形式の説明図である。FIG. 6 is an explanatory diagram of a data format of numerical data.

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

1 データ処理装置 2 データ処理機構 3 機種検出機構 4 管理機構 5 データ形式調整機構 6 ワークエリア 30 判定部 31 検査データ展開域 1 Data processing device 2 Data processing mechanism 3 Model detection mechanism 4 Management mechanism 5 Data format adjustment mechanism 6 Work area 30 Judgment section 31 Inspection data development area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 外部から与えられる演算データを使って
データ処理を実行するデータ処理機構(2) を備えること
で、データ処理を遂行していく構成を採るデータ処理装
置において、 上記データ処理機構(2) のデータ処理開始時に呼び出さ
れて、上記データ処理機構(2) の機種種別を検出する機
種検出機構(3) と、 上記機種検出機構(3) の検出結果を管理する管理機構
(4) と、 上記データ処理機構(2) による上記演算データのアクセ
ス時に呼び出されて、上記管理機構(4) の管理データを
参照して、アクセスする演算データのデータ形式を該管
理データの指定するものに調整するデータ形式調整機構
(5) とを備え、 上記データ処理機構(2) は、上記データ形式調整機構
(5) の調整する演算データを使ってデータ処理を実行し
ていくよう処理することを、 特徴とするデータ処理装置。
1. A data processing device having a configuration for performing data processing by comprising a data processing mechanism (2) for performing data processing using operation data provided from the outside, comprising: A model detection mechanism (3) that is called when the data processing of (2) starts and detects the model type of the above data processing mechanism (2), and a management mechanism that manages the detection results of the above model detection mechanism (3).
(4) and is called when the operation data is accessed by the data processing mechanism (2), refers to the management data of the management mechanism (4), and specifies the data format of the operation data to be accessed. Data format adjustment mechanism
(5) and the data processing mechanism (2) is the data format adjusting mechanism.
A data processing device characterized by performing processing such that data processing is executed using the operation data adjusted in (5).
JP5005573A 1993-01-18 1993-01-18 Data processing device Expired - Lifetime JP2732768B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5005573A JP2732768B2 (en) 1993-01-18 1993-01-18 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5005573A JP2732768B2 (en) 1993-01-18 1993-01-18 Data processing device

Publications (2)

Publication Number Publication Date
JPH06214797A true JPH06214797A (en) 1994-08-05
JP2732768B2 JP2732768B2 (en) 1998-03-30

Family

ID=11614969

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5005573A Expired - Lifetime JP2732768B2 (en) 1993-01-18 1993-01-18 Data processing device

Country Status (1)

Country Link
JP (1) JP2732768B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0339040A1 (en) * 1986-12-23 1989-11-02 Melbourne Inst Tech Swine dysentery vaccine.
WO1990000202A1 (en) * 1988-06-29 1990-01-11 Kyowa Medex Co., Ltd. Method for analyzing components

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS641050A (en) * 1987-03-18 1989-01-05 Hitachi Ltd Computer system provided with byte order conversion mechanism
JPH04143846A (en) * 1990-10-04 1992-05-18 Fanuc Ltd Interface converter circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS641050A (en) * 1987-03-18 1989-01-05 Hitachi Ltd Computer system provided with byte order conversion mechanism
JPH04143846A (en) * 1990-10-04 1992-05-18 Fanuc Ltd Interface converter circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0339040A1 (en) * 1986-12-23 1989-11-02 Melbourne Inst Tech Swine dysentery vaccine.
EP0339040B1 (en) * 1986-12-23 1994-09-14 Royal Melbourne Institute Of Technology Limited Swine dysentery vaccine
WO1990000202A1 (en) * 1988-06-29 1990-01-11 Kyowa Medex Co., Ltd. Method for analyzing components

Also Published As

Publication number Publication date
JP2732768B2 (en) 1998-03-30

Similar Documents

Publication Publication Date Title
JPH06214797A (en) Data processor
JPH0554277A (en) Plant monitor device
JP2001022413A (en) Programmable controller
JPH025136A (en) Error processing system for language processing program
JP2852402B2 (en) Program development equipment
JP3358123B2 (en) Controller input / output simulation method and apparatus
JP3260788B2 (en) Robot control device and method
KR0170706B1 (en) External memory usage of microprocessor
JPH03139703A (en) Timer instruction processing system of programmable controller
JPH04167146A (en) Address tracing system for information processor
JPH09244717A (en) Controller
JP2000242319A (en) Numerical controller
JPH0259829A (en) Microcomputer
JPH03160525A (en) Microprocessor
JPS61182163A (en) Program expanding system
JPH03278103A (en) Programming device of programmable controller
JPS60220468A (en) Vector arithmetic control system
JPH01243151A (en) Program control system
JPS61241843A (en) Information processor
JPH08249024A (en) Programmable controller
JPH02266431A (en) Information processor
JPH02213949A (en) Runaway get-out method for microcomputer
JPH05151000A (en) Generation processing system for optimum internal call instruction
JPS62233836A (en) Separating system for arithmetic formula part and control part in software
JPH0667887A (en) Information processor