JPS626331A - Program interface method - Google Patents
Program interface methodInfo
- Publication number
- JPS626331A JPS626331A JP60146120A JP14612085A JPS626331A JP S626331 A JPS626331 A JP S626331A JP 60146120 A JP60146120 A JP 60146120A JP 14612085 A JP14612085 A JP 14612085A JP S626331 A JPS626331 A JP S626331A
- Authority
- JP
- Japan
- Prior art keywords
- procedure
- instruction set
- instruction
- calling
- switching means
- 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
Links
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、コンピュータシステムにおける実行プログラ
ム手順間の呼び出し方式に関し、特に、異なる命令セッ
トからなる手順間のプログラムインタフェース方式に関
する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a calling system between execution program procedures in a computer system, and particularly to a program interface system between procedures consisting of different instruction sets.
本発明は、コンピュータシステムにおける異なる命令セ
ットからなる手順間のプログラムインタフェース方式に
おいて、
一つの手順から他の手順を呼び出す場合は、命令セット
を他の命令セットに変換した復信の手順を呼び出し、他
の手順からもとの手順に制御を戻す場合も命令セットを
変換した後、制御を戻すようにすることにより、
異なる命令セットからなる手順間の呼び出し処理を少な
いオーバヘッドで高い自由度でもって実行できるように
したものである。The present invention provides a program interface method between procedures consisting of different instruction sets in a computer system, and when one procedure calls another procedure, it calls a redundancy procedure in which the instruction set is converted to the other instruction set, and the other procedure is called. When returning control from a procedure to the original procedure, by converting the instruction set and then returning control, it is possible to execute call processing between procedures with different instruction sets with little overhead and with a high degree of freedom. This is what I did.
従来、この種の二種類あるいはそれ以上の命令セットを
備えたコンピュータシステムでは、第3図に示すように
、同じ命令セットの手順301.303の間で呼び出し
手段302による呼び出しと、戻り手段304による制
御の戻りが行われていた。さらに、第4図に示すように
、異なる命令セット406.407を持つ手順401.
404の間では、呼び出し側の手順401の割り込み4
02によってシステムプログラム403を呼び出して呼
び出され側の手順404を起動してもらい、手順404
の終了も割り込み405によってシステムプログラム4
03に知らせ、手順401を再開するようになっていた
。Conventionally, in a computer system equipped with two or more types of instruction sets of this type, as shown in FIG. A return of control was occurring. Furthermore, as shown in FIG. 4, procedures 401.
404, interrupt 4 of the calling procedure 401
02 calls the system program 403 to start the called procedure 404.
The system program 4 is also terminated by interrupt 405.
03 and restart the procedure 401.
上述した従来のコンピュータシステムにおけるプログラ
ムインタフェース方式では、システムプログラムの介入
なしでは異なる命令セットを持つ手順間の呼び出しはで
きず、システムプログラムのオーバヘッドが大きかった
り、パラメータの引き渡し方法の自由度が限られる欠点
があった。The above-mentioned program interface method in conventional computer systems does not allow calls between procedures with different instruction sets without the intervention of the system program, resulting in large overhead for the system program and drawbacks such as limited flexibility in parameter passing methods. was there.
本発明の目的は、上記の欠点を除去することにより、異
なる命令セットからなる手順間の呼び出し処理を少ない
オーバヘッドで、かつ高い自由度をもたせて実行できる
プログラムインタフェース方式を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a program interface system that eliminates the above-mentioned drawbacks and allows call processing between procedures consisting of different instruction sets to be executed with little overhead and with a high degree of freedom.
本発明は、第1の手順から他の第2の手順を呼び出し、
呼び出された上記第2の手順から呼び出した上記第1の
手順に制御を戻すための各々異なる命令セットを備えた
コンピュータシステムにおけるプログラムインタフェー
ス方式において、上記第1の手順から上記第2の手順を
呼び出す場合、実行中の手順の命令の処理順序を変える
ことな(次の命令から上記第2の手順の命令セットに切
り換えた後、上記第2の手順を呼び出し、上記第2の手
順から上記第1の手順に制御を戻す場合は、上記第2の
手順の命令セットを上記第1の手順の命令セットに切り
換えた後、制御を上記第1の手順に戻すことを特徴とす
る。The present invention calls another second procedure from the first procedure,
Calling the second procedure from the first procedure in a program interface system in a computer system each having a different instruction set for returning control from the called second procedure to the called first procedure. In this case, do not change the processing order of the instructions of the procedure being executed (after switching from the next instruction to the instruction set of the second procedure, call the second procedure, and change from the second procedure to the first procedure). When the control is returned to the procedure, the instruction set of the second procedure is switched to the instruction set of the first procedure, and then the control is returned to the first procedure.
本発明は、一つの手順から他の手順を呼び出す場合、命
令セットを他の命令セットに変換した後に他の手順を呼
び出し、他の手順から呼び出し側の他の手順に制御を戻
す場合には命令セットをもとの命令セットに変換した後
にもとの手順に制御を戻すことができる。従って従来の
ようにシステムプログラムを必要とせずに異なる命令セ
ットからなる手順間の呼び出し処理が可能となる。When calling another procedure from one procedure, the present invention calls the other procedure after converting the instruction set to another instruction set, and when returning control from the other procedure to the calling other procedure, the instruction After converting the set to the original instruction set, control can be returned to the original procedure. Therefore, call processing between procedures consisting of different instruction sets is possible without requiring a system program as in the past.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例を示す構成図である。FIG. 1 is a block diagram showing an embodiment of the present invention.
命令セラl−101(八〜ζで命令の続きを示す。)か
らなる第1の手順102は、呼び出し手段103によっ
てインタフェース手段104を呼び出す。第1の手順1
02から見たインタフェース手段104は、同じ命令セ
ット101からなる手順である。インタフェース手段1
04は命令セット切り換え手段105によって実行中の
ものとは異なる命令セット106(→で命令の続きを示
す。)に切り換える。命令セット切り換え手段105実
行後の命令の取り出しは、命令セット切り換え手段10
5の次の番地から行われる。次に、インタフェース手段
104は呼び出し手段107によって第2の手順108
を呼び出す。第2の手順108から見たインタフェース
手段104は、同じ命令セット106からなる手順であ
る。A first procedure 102 consisting of an instruction cell l-101 (8 to ζ indicates the continuation of the instruction) calls the interface means 104 by the calling means 103. First step 1
The interface means 104 seen from 02 is a procedure consisting of the same instruction set 101. Interface means 1
04, the instruction set switching means 105 switches to an instruction set 106 (→ indicates a continuation of the instruction) different from the one currently being executed. After execution of the instruction set switching means 105, the instruction is retrieved by the instruction set switching means 10.
The process starts from the address after 5. The interface means 104 then calls the second procedure 108 by the calling means 107.
call. The interface means 104 seen from the second procedure 108 is a procedure consisting of the same instruction set 106.
第2の手順108は、処理を終了すると戻り手段109
によってインタフェース手段104に制御を戻す。The second step 108 is a return means 109 when the processing is completed.
control is returned to the interface means 104 by.
インタフェース手段104は、命令セット切り換え手段
110によって命令セット101に切り換えてから戻り
手段111によって第1の手順102に制御を戻す。、
ここで、命令セット切り換え手段105は命令セット1
01に属し、命令セット切り換え手段110は命令セラ
) 106に属し、各々逆方向の機能を持っている。以
上の処理によると、第1の手順102は、呼び出し手段
103によって、異なる命令セットからなる第2の手順
108を呼び出したのと同じと考えることができる。The interface means 104 switches to the instruction set 101 using the instruction set switching means 110 and then returns control to the first procedure 102 using the return means 111. ,
Here, the instruction set switching means 105 is the instruction set 1
01, and the instruction set switching means 110 belongs to the instruction set switching means 106, each having a function in the opposite direction. According to the above processing, the first procedure 102 can be considered to be the same as the calling means 103 calling the second procedure 108 consisting of a different instruction set.
本発明の特徴は、第1図において、インタフエ−大手段
104により、異なる命令セットを相手先の命令セット
に変換した後に、呼び出しおよび制御の戻しを行うよう
にしたことにある。A feature of the present invention is that, in FIG. 1, the interface large means 104 converts a different instruction set into the instruction set of the other party, and then calls and returns control.
第2図(al、(b)は、異なるアドレス形式を持つ命
令セットにおける第1図の命令セット切り換え手段の一
例を示す説明図である。アドレス空間A204を持つ命
令セットに属する命令セット切り換え手段206によっ
て、アドレス空間B2O5を持つ命令−セットに切り換
えたとする。命令セット切り換え手段206の次の命令
207は、第2図(a)に示すように、アドレス空間A
204上ではA’ 201’のアドレスを持ち、アド
レス空間B2O5上ではB’ 202’のアドレスを
持つ。ここでアドレス空間A204上のアドレス空間B
2O5の位置をC’ 203’ とすると、A’
201’ はB’ 202’ とC’ 203’を
加えたものになり、同図(blに示すように、C’
203’の値を調整することによって、アドレス形式を
同図(blに示すように、A201とB2O2およびC
203のような関係にすることができる。従って、命令
セット切り換え手段206で、A201からB2O2を
求めることは容易に行うことが可能であり、その処理に
よって異なるアドレス形式を持つ命令セット間でも命令
セットの切り換えを行うことができる。アドレス空間B
2O5の命令セットからアドレス空間A204の命令セ
ットに切り換える場合は、B2O2にあらかじめ定めら
れたC203を加えることによって、A201を求める
。ここで、少なくとも命令セット切り換え手段206と
次の命令207は、アドレス空間A 204とアドレス
空間B 205の両方になければならない。2(al) and (b) are explanatory diagrams showing an example of the instruction set switching means of FIG. 1 in instruction sets having different address formats.The instruction set switching means 206 belonging to the instruction set having the address space A204. Assume that the next instruction 207 of the instruction set switching means 206 is switched to the instruction set having the address space B2O5, as shown in FIG. 2(a).
204, it has an address of A'201', and on address space B2O5, it has an address of B'202'. Here, address space B on address space A204
If the position of 2O5 is C'203', then A'
201' is the sum of B'202' and C'203', and as shown in the same figure (bl), C'
By adjusting the value of 203', the address format can be changed to A201, B2O2 and C as shown in the same figure (bl).
A relationship such as 203 can be established. Therefore, the instruction set switching means 206 can easily obtain B2O2 from A201, and by this process, the instruction set can be switched even between instruction sets having different address formats. Address space B
When switching from the 2O5 instruction set to the address space A204 instruction set, A201 is obtained by adding a predetermined C203 to B2O2. Here, at least the instruction set switching means 206 and the next instruction 207 must be in both address space A 204 and address space B 205.
以上説明したように本発明は、命令セット切り換えを行
うプログラムインタフェースの手順を提供することによ
り、異なる命令セットからなる手順間の呼び出し処理を
少ない一オーバヘッドで高い自由度を持たせて実行させ
ることのできる効果がある。As explained above, the present invention provides a program interface procedure for switching instruction sets, thereby making it possible to execute call processing between procedures consisting of different instruction sets with a high degree of freedom with little overhead. There is an effect that can be done.
4、発明の詳細な説明 第1図は本発明の一実施例を示す構成図。4. Detailed description of the invention FIG. 1 is a configuration diagram showing an embodiment of the present invention.
第2図(a)、(b)は第1図の命令セット切り換え手
段の一例の説明図。FIGS. 2(a) and 2(b) are explanatory diagrams of an example of the instruction set switching means shown in FIG. 1.
第3図は第1の従来例を示す構成図。FIG. 3 is a configuration diagram showing a first conventional example.
第4図は第2の従来例を示す構成図。FIG. 4 is a configuration diagram showing a second conventional example.
101.106・・・各命令セットの命令の続き、10
2・・・第1の手順、103.107・・・呼び出し手
段、104・・・インタフェース手段、105.110
・・・命令切り換え手段、108・・・第2の手順、1
09.111・・・戻り手段、201.201′・・・
アドレスA、 A’ 、202.202’・・・アドレ
スB、B’ 、203.203′・・・アドレスC1C
’ 、204・・・アドレス空間A、205・・・アド
レス空間B、206・・・命令セフ、ト切り換え手段、
207・・・次の命令、301.303.401.40
4・・・手順、302・・・呼び出し手段、304・・
・戻り手段、402・・・呼び出しの割り込み、403
・・・システムプログラム、405・・・戻りの割り込
み、406.407・・・命令の続き。101.106...Continuation of instructions for each instruction set, 10
2... First procedure, 103.107... Calling means, 104... Interface means, 105.110
...Instruction switching means, 108...Second procedure, 1
09.111... Return means, 201.201'...
Addresses A, A', 202.202'...Address B, B', 203.203'...Address C1C
', 204...Address space A, 205...Address space B, 206...Instruction safety switching means,
207...Next command, 301.303.401.40
4... Procedure, 302... Calling means, 304...
・Return means, 402...Call interruption, 403
...System program, 405...Return interrupt, 406.407...Continuation of instruction.
h 、′: 実施例全体図 不 1 圓 (a) 命令セット切り換え手段説明図 M 2 図 第1従来例全体図 33 口 第2従来例全体図 M 4 図h ,′: Overall diagram of the example Un 1 en (a) Instruction set switching means explanatory diagram M2 diagram Overall diagram of the first conventional example 33 mouths Overall diagram of the second conventional example M4 diagram
Claims (1)
出された上記第2の手順から呼び出した上記第1の手順
に制御を戻すための各々異なる命令セットを備えたコン
ピュータシステムにおけるプログラムインタフェース方
式において、 上記第1の手順から上記第2の手順を呼び出す場合、実
行中の手順の命令の処理順序を変えることなく次の命令
から上記第2の手順の命令セットに切り換えた後、上記
第2の手順を呼び出し、上記第2の手順から上記第1の
手順に制御を戻す場合は、上記第2の手順の命令セット
を上記第1の手順の命令セットに切り換えた後、制御を
上記第1の手順に戻す ことを特徴とするプログラムインタフェース方式。(1) A program in a computer system having different instruction sets for calling another second procedure from a first procedure and returning control from the called second procedure to the called first procedure. In the interface method, when calling the second procedure from the first procedure, switch from the next instruction to the instruction set of the second procedure without changing the processing order of the instructions in the currently executing procedure, and then call the second procedure. When calling the second procedure and returning control from the second procedure to the first procedure, switch the instruction set of the second procedure to the instruction set of the first procedure, and then return the control to the first procedure. A program interface method characterized by returning to the first procedure.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60146120A JPH0640312B2 (en) | 1985-07-03 | 1985-07-03 | Program interface method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60146120A JPH0640312B2 (en) | 1985-07-03 | 1985-07-03 | Program interface method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS626331A true JPS626331A (en) | 1987-01-13 |
| JPH0640312B2 JPH0640312B2 (en) | 1994-05-25 |
Family
ID=15400605
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60146120A Expired - Lifetime JPH0640312B2 (en) | 1985-07-03 | 1985-07-03 | Program interface method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0640312B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01283636A (en) * | 1988-05-11 | 1989-11-15 | Hitachi Ltd | Control system for procedure execution environment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5057348A (en) * | 1973-09-19 | 1975-05-19 | ||
| JPS54129846A (en) * | 1978-03-31 | 1979-10-08 | Hitachi Ltd | Emulator system |
| JPS5748141A (en) * | 1980-09-03 | 1982-03-19 | Hitachi Ltd | Address conversion system |
| JPS61272825A (en) * | 1985-05-29 | 1986-12-03 | Nec Corp | Information store and forward switching system |
-
1985
- 1985-07-03 JP JP60146120A patent/JPH0640312B2/en not_active Expired - Lifetime
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5057348A (en) * | 1973-09-19 | 1975-05-19 | ||
| JPS54129846A (en) * | 1978-03-31 | 1979-10-08 | Hitachi Ltd | Emulator system |
| JPS5748141A (en) * | 1980-09-03 | 1982-03-19 | Hitachi Ltd | Address conversion system |
| JPS61272825A (en) * | 1985-05-29 | 1986-12-03 | Nec Corp | Information store and forward switching system |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01283636A (en) * | 1988-05-11 | 1989-11-15 | Hitachi Ltd | Control system for procedure execution environment |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0640312B2 (en) | 1994-05-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS626331A (en) | Program interface method | |
| JPS615361A (en) | Communication interface circuit | |
| JPH0251951A (en) | Exchange processing program verification system | |
| JPS6215638A (en) | Process control method in svc routine | |
| JPS61195446A (en) | terminal control device | |
| JPH02176832A (en) | Microcomputer | |
| JPH03242748A (en) | General bus control system | |
| JP2507791B2 (en) | Data processing device | |
| JPH0286243A (en) | Communication protocol processing system | |
| JPS63132340A (en) | Execution control system in logical type language | |
| JPS63248255A (en) | Online data transmission system | |
| JPS60123953A (en) | Controlling system of channel changeover | |
| JPS6314242A (en) | Memory expansion method | |
| JPS62140145A (en) | Virtual computer system | |
| JPS63114495A (en) | Line state managing and controlling method in exchange system | |
| JPS61243559A (en) | Dual processing system | |
| JPH0497435A (en) | Control system for exceptional treatment | |
| JPS63132360A (en) | Input and output processing system | |
| JPS5984392A (en) | Virtual memory connecting system | |
| JPS5984391A (en) | Virtual memory connecting system | |
| JPH0437928A (en) | Data processing method | |
| JPH04350703A (en) | Robot language editing device | |
| JPS62197818A (en) | Data transfer control system | |
| JPH0359729A (en) | Communication equipment | |
| JPS61182395A (en) | Stored program control system exchange |