JPH0157375B2 - - Google Patents

Info

Publication number
JPH0157375B2
JPH0157375B2 JP57113303A JP11330382A JPH0157375B2 JP H0157375 B2 JPH0157375 B2 JP H0157375B2 JP 57113303 A JP57113303 A JP 57113303A JP 11330382 A JP11330382 A JP 11330382A JP H0157375 B2 JPH0157375 B2 JP H0157375B2
Authority
JP
Japan
Prior art keywords
mode
interpreter
user
function
control
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
Application number
JP57113303A
Other languages
Japanese (ja)
Other versions
JPS593643A (en
Inventor
Akira Hatsutori
Hiroshi Hayashi
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 Ltd
Original Assignee
Fujitsu 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 Ltd filed Critical Fujitsu Ltd
Priority to JP57113303A priority Critical patent/JPS593643A/en
Publication of JPS593643A publication Critical patent/JPS593643A/en
Publication of JPH0157375B2 publication Critical patent/JPH0157375B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Description

【発明の詳細な説明】 (1) 発明の技術分野 本発明は関数型マシンの実行制御方式、特に例
えばLispなどの関数型言語を処理するマシンにお
いて、ユーザが指示する毎に関数を1個ずつ評価
してその情況を出力するような場合のステツプ・
モードと、連続的に実行する通常モードとの切替
えを簡易に行うことができるようにすると共に、
通常モード時における効率低下を防止した関数型
マシンの実行制御方式に関するものである。
[Detailed Description of the Invention] (1) Technical Field of the Invention The present invention relates to an execution control method for a functional machine, particularly in a machine that processes a functional language such as Lisp, in which functions are executed one by one each time a user instructs the machine to execute a function. Steps for evaluating and outputting the situation
In addition to making it possible to easily switch between the mode and the normal mode that is executed continuously,
The present invention relates to an execution control method for functional machines that prevents a decrease in efficiency during normal mode.

(2) 技術の背景 例えば、リスト処理に用いられるLispなどの関
数型言語を処理する計算機においては、インタプ
リタが関数型言語で記述されたソース・プログラ
ムを直接に解釈し、実行していくようにされる。
従つて、ユーザは計算機と会話をしつつインタラ
クテイブにプログラムの実行やデバグを行うこと
ができる。プログラムを試験する場合には、プロ
グラムさた関数を連続的に実行するのではなく
て、ユーザが指示する毎に、関数を1つずつ評価
実行し、それに伴つて評価しようとしている関数
の名前や引数の値、リターン値または検出したエ
ラー情報などをユーザに通知したり、例えば大域
変数の値などの環境に関するユーザの問合せに応
答する機能が有効になる。
(2) Technical background For example, in a computer that processes a functional language such as Lisp used for list processing, an interpreter directly interprets and executes a source program written in a functional language. be done.
Therefore, the user can interactively run and debug programs while talking to the computer. When testing a program, instead of executing the programmed functions one after the other, each function is evaluated one by one each time the user instructs the user to write the name of the function to be evaluated. A function is enabled to notify the user of argument values, return values, detected error information, etc., and to respond to user inquiries regarding the environment, such as the values of global variables.

(3) 従来技術と問題点 第1図は一般的なインタプリタの動作サイクル
説明図、第2図は従来のステツプ制御ルーチンの
処理説明図を示す。
(3) Prior art and problems FIG. 1 is an explanatory diagram of the operation cycle of a general interpreter, and FIG. 2 is an explanatory diagram of the processing of a conventional step control routine.

第1図図示の如く、一般にインタプリタ1は、
関数型言語で作成されたプログラム2の関数を再
帰的に評価し、実行する。すなわち、第1図図示
処理3によつて、次に評価する関数のタイプをチ
エツクし、処理4によつて引数の評価を行ない、
処理5によつてその関数の起動または評価を実行
した後、再び処理3に戻り、次の関数の処理を同
様に繰返す。
As shown in FIG. 1, generally the interpreter 1 is
A function of a program 2 created in a functional language is recursively evaluated and executed. That is, the type of function to be evaluated next is checked in process 3 shown in FIG. 1, the argument is evaluated in process 4, and
After the function is activated or evaluated in process 5, the process returns to process 3 and the process for the next function is repeated in the same way.

複数の関数から構成される関数群からなるプロ
グラム2は、通常インタプリタ1によつて連続的
に評価され実行される。しかし、プログラムの開
発段階では、連続的に実行した場合にバグの存在
個所が不明となるので、1ステツプずつ実行しな
がらチエツクしていくことが必要になる。そこ
で、従来関数型言語のインタプリタにおいては、
例えば第1図図示A点にデイレール・ポイントを
設け、そのA点に第2図図示の如きステツプ制御
ルーチン6を挿入して、関数単位にその動作を確
認できるようにされていた。
A program 2 consisting of a function group consisting of a plurality of functions is normally continuously evaluated and executed by the interpreter 1. However, at the program development stage, if the program is executed continuously, the location of the bug becomes unknown, so it is necessary to check the program while executing it step by step. Therefore, in conventional functional language interpreters,
For example, a dayrail point is provided at point A shown in FIG. 1, and a step control routine 6 as shown in FIG. 2 is inserted at point A, so that the operation of each function can be checked.

すなわち、第1図図示処理3によつて関数のタ
イプチエツクをしたのち、第2図図示ステツプ制
御ルーチン6によつて、まずステツプ・モードで
あるかどうかの判定が行われる。もし、デバグ時
などであれば、予め定められた記憶域にステツ
プ・モードの表示がなされる。そして、ステツ
プ・モードでないときには、第1図図示処理4に
直ちに制御が渡されるが、ステツプ・モードであ
るときには、次に現在処理対象となつている関数
が、ユーザ自身が定義した関数であるかどうかの
判定が行われる。ユーザ自身が定義した関数であ
る場合にのみ、デイスプレイまたはプリンタにプ
ロンプト、すなわちユーザへの応答促進メツセー
ジを出力し、ユーザからの指示を待つ。ユーザか
らの指示としては、例えば、次の関数の実行と
その情況報告、現在の環響(例えば大域変数の
値)の問合せ、実行モードの変更(例ばステツ
プ・モードのキヤンセル)、といつたものがあり、
ユーザからの指示があつた場合に、その指示を実
行して、その後第1図図示処理3に制御を移行す
るようにされる。従つて関数単位にユーザがプロ
グラムの実行に関与できることとなる。
That is, after the function type is checked in the process 3 shown in FIG. 1, it is first determined whether the mode is in step mode or not in the step control routine 6 shown in FIG. If it is during debugging, etc., the step mode is displayed in a predetermined storage area. When the step mode is not in effect, control is immediately passed to the illustrated process 4 in FIG. A judgment will be made as to whether Only when the function is defined by the user, a prompt, that is, a message prompting the user to respond, is output to the display or printer, and an instruction from the user is awaited. Examples of instructions from the user include executing the next function and reporting its status, querying the current environment (e.g., the value of a global variable), and changing the execution mode (e.g., canceling step mode). There are things,
When an instruction is received from the user, the instruction is executed, and then control is transferred to process 3 shown in FIG. 1. Therefore, the user can be involved in program execution on a function-by-function basis.

しかし、上記従来の方式によれば、インタプリ
タ1に第2図に図示したステツプ制御ルーチン6
を埋込む必要があり、非ステツプ・モードの通常
時においても、常にソフトウエアによつて現在ス
テツプ・モードであるか否かの判定が動的に行わ
れることとなる。従つて、非ステツプ・モード時
の効率が低下するという問題があつた。特に、イ
ンタプリタによる高級言語マシンの場合、インタ
プリタ自身の効率は直接全体の性能に影響する。
However, according to the above-mentioned conventional system, the interpreter 1 is required to perform the step control routine 6 shown in FIG.
Therefore, even in normal non-step mode, the software always dynamically determines whether or not the current step mode is active. Therefore, there was a problem in that the efficiency in the non-step mode was reduced. In particular, in the case of a high-level language machine using an interpreter, the efficiency of the interpreter itself directly affects the overall performance.

(4) 発明の目的 本発明は上記問題点の解決を図り、通常時にお
けるインタプリタの性能を低下させることなく、
ステツプ・モードの処理をサポートできるように
することを目的としている。
(4) Purpose of the Invention The present invention aims to solve the above-mentioned problems, and without degrading the performance of the interpreter during normal operation.
It is intended to support step mode processing.

(5) 発明の構成 そのため、本発明は、例えば第1図図示A点
で、ステツプ・モードであるときにのみマイクロ
レベルの割込が発生するような手段を設け、ハー
ドウエアによつて自動的にステツプ・モード処理
部へ制御が移行するようにしたものである。すな
わち、本発明の関数型マシンの実行制御方式は、
インタプリタが関数型言語を解釈しつつ実行する
関数型マシンにおいて、上記インタプリタが実行
するマイクロ命令にステツプ例外を受付けるかど
うかを示す制御域を設けるとともに、上記関数型
言語を連続的に処理する通常モードまたはインタ
ラクテイブに処理するステツプ・モードを指示す
るモード指示部と、上記モード指示部がステツ
プ・モードを示しているときに上記マイクロ命令
の制御域がステツプ例外受付け可能状態であれば
割込を発生させる例外検出部と、インタラクテイ
ブに処理すべきステツプ動作のレベルを決定する
ステツプ制御語と、上記例外検出部によつて起動
され上記ステツプ制御語の内容に従つてステツプ
動作を実行処理するステツプ・モード処理部とを
そなえたことを特徴としている。
(5) Structure of the Invention Therefore, the present invention provides a means for generating a micro-level interrupt only when in the step mode, for example at point A in FIG. The control is then transferred to the step mode processing section. That is, the execution control method of the functional machine of the present invention is as follows.
In a functional machine in which an interpreter interprets and executes a functional language, a control area is provided for the microinstructions executed by the interpreter to indicate whether step exceptions are accepted, and a normal mode is used to continuously process the functional language. Or a mode instruction section that instructs the step mode for interactive processing, and if the control area of the microinstruction is in a state where step exceptions can be accepted when the mode instruction section indicates the step mode, an interrupt is generated. a step control word that interactively determines the level of the step operation to be processed; and a step control word that is activated by the exception detection section and executes the step operation according to the contents of the step control word. It is characterized by having a mode processing section.

以下図面を参照しつつ実施例にもとづいて説明
する。
Embodiments will be described below with reference to the drawings.

(6) 発明の実施例 第3図は本発明の一実施例構成を示す。図中1
はインタプリタ、10はマイクロ命令実行制御
部、11はマイクロ命令レジスタ、12は一般例
外(EXP)ビツト、3はステツプ例外(SEXP)
ビツト、14はモード指示に用いられるステツ
プ・フラグ、15および16はアンド・ゲート、
17はオア・ゲート、18はシーケンス制御部、
19はマイクロプログラム・カウンタ、20はデ
コーダ、21はコントロール・ストレジ(CS)、
22はステツプ制御語、23はステツプ・モード
処理部を表わす。
(6) Embodiment of the invention FIG. 3 shows the configuration of an embodiment of the invention. 1 in the diagram
is the interpreter, 10 is the microinstruction execution control unit, 11 is the microinstruction register, 12 is the general exception (EXP) bit, and 3 is the step exception (SEXP).
bit, 14 is a step flag used for mode indication, 15 and 16 are AND gates,
17 is an OR gate, 18 is a sequence control section,
19 is a microprogram counter, 20 is a decoder, 21 is a control storage (CS),
22 represents a step control word, and 23 represents a step mode processing section.

第3図において、インタプリタ1はCS21に
記憶されたマイクロ命令によるマイクロ・プログ
ラムによつて、関数型言語を解釈しつつ実行す
る。マイクロ命令実行制御部10は、これらのマ
イクロ命令を逐次フエツチして実行処理する制御
部である。CS21に記憶されたマイクロ命令は、
通常マイクロ・プログラム・カウンタ19の値に
よつて決定されるアドレスから、マイクロ命令レ
ジスタ11に読み上げられる。各マイクロ命令に
は、一般の実行シーケンスの例外(Exception)
を受付けるかどうかを示す制御域であるEXPビ
ツト12に加て、ステツプ例外を受付けるかどう
かを示す制御域であるSEXPビツト13のフイー
ルドが設けられる。なお、インタプリタ1による
処理内容によつては、上記EXPビツト12およ
びSEXPビツト13を同じ制御域で兼用するよう
にしてもよい。この実施例においては、SEXPビ
ツト13が別個に設けられている場合について説
明する。
In FIG. 3, an interpreter 1 interprets and executes a functional language using a microprogram based on microinstructions stored in a CS 21. The microinstruction execution control unit 10 is a control unit that sequentially fetches and executes these microinstructions. The microinstructions stored in CS21 are
The microinstruction register 11 is read from an address normally determined by the value of the microprogram counter 19. Each microinstruction has an exception to the general execution sequence.
In addition to the EXP bit 12 which is a control area indicating whether or not to accept a step exception, a field is provided which is a SEXP bit 13 which is a control area indicating whether or not a step exception is accepted. Note that depending on the processing content of the interpreter 1, the EXP bit 12 and the SEXP bit 13 may be used in the same control area. In this embodiment, a case will be explained in which the SEXP bit 13 is provided separately.

ステツプ・フラグ14は、関数型言語を連続的
に処理する通常モードまたはインタラクテイブに
処理するステツプ・モードを指示するモード指示
部であつて、例えばフリツプ・フロツプで構成さ
れる。ステツプ・モード時には、「1」にセツト
される。ステツプ・フラグ14のセツトまたはリ
セツトは、プログラムによつて、または操作パネ
ルからのスイツチのオン/オフによつて行われ
る。
The step flag 14 is a mode indicating section that indicates a normal mode for continuous processing of a functional language or a step mode for interactive processing, and is formed of, for example, a flip-flop. In step mode, it is set to "1". The step flag 14 is set or reset by a program or by turning on/off a switch from the operation panel.

シーケンス制御部18は、マイクロ・プログラ
ムの実行シーケンスを制御するロジツクであつ
て、次に実行すべきシーケンスを決定して、デコ
ーダ20によつてそのアドレスを選択するように
される。
The sequence control unit 18 is a logic for controlling the execution sequence of the microprogram, and is configured to determine the next sequence to be executed, and the decoder 20 selects the address thereof.

ステツプ制御語22は、ステツプ・モード時に
インタラクテイブに処理すべきステツプ動作のレ
ベルを指示するものである。特定のレジスタまた
は主メモリ上の所定の位置等に設けられる。ユー
ザが、インタプリタ1の起動に先立ち、またはイ
ンタプリタ1の実行最中に、所望の値を任意に設
定できるようになつている。ステツプ制御語22
の各ビツトA,B,…Cのオン/オフによつて、
例えば全関数についてステツプ動作を行うかど
うか、ユーザ定義関数のみステツプ動作を行う
かどうか、関数名アトム・ヘツダにトレース
(Trace)指示してある関数のみステツプ動作を
行うかどうか、またはユーザ定義関数内の全関
数についてステツプ動作を行うかどうか、等の指
示を行うことができるようにされる。関数型言語
においては、関数呼出しのネステイングが多く用
いられ、ユーザ定義関数から、多数の他の関数が
呼び出されるので、ユーザはステツプ制御語22
を適当に操作することによつて、必要な個所だけ
ステツプ動作に入るように選択できることとな
る。ステツプ・モード処理部23は、ステツプ制
御語22の内容に従つて、ステツプ動作を実行処
理するものである。
Step control word 22 indicates the level of step operation to be interactively processed in step mode. It is provided in a specific register or a predetermined location on the main memory. The user can arbitrarily set a desired value before starting the interpreter 1 or while the interpreter 1 is running. Step control word 22
By turning on/off each bit A, B,...C of
For example, whether or not to perform step operations for all functions, whether to perform step operations only for user-defined functions, whether or not to perform step operations only for functions for which trace is specified in the function name atom header, or It is possible to give instructions such as whether or not to perform step operations for all functions. In functional languages, nesting of function calls is often used, and a user-defined function calls many other functions, so the user can use the step control word 22.
By appropriately operating , it is possible to select only the necessary locations to enter the step operation. The step mode processing section 23 executes a step operation according to the contents of the step control word 22.

次にマイクロ命令実行制御部10の制御動作に
ついて説明する。
Next, the control operation of the microinstruction execution control section 10 will be explained.

インタプリタ1のマイクロ命令のうち、第1図
図示A点の位置に相当するマイクロ命令について
のSEXPビツト13は、インタプリタ1の作成時
に予めオンとなるように設定される。ユーザは、
関数型言語によつて作成されたプログラムを試験
する場合には、ステツプ制御語22にどのレベル
でステツプ動作を実行させるかについての表示を
行い、ステツプ・フラグ14をセツトする。そこ
で、インタプリタを起動すると、インタプリタ1
が次に評価する関数タイプを調べた後、SEXPビ
ツト13がオンとなつたマイクロ命令が、マイク
ロ命令レジスタ13にロードされることになる。
Among the microinstructions of the interpreter 1, the SEXP bit 13 for the microinstruction corresponding to the position of point A in FIG. 1 is set to be on in advance when the interpreter 1 is created. The user is
When testing a program written in a functional language, the step control word 22 indicates at what level the step operation is to be executed, and the step flag 14 is set. So, when you start the interpreter, interpreter 1
After checking the function type to be evaluated next, the microinstruction whose SEXP bit 13 is on will be loaded into the microinstruction register 13.

SEXPビツト13の情報は、ステツプ・フラグ
14の出力信号と共に、アンド・ゲート15に入
力される。今、どちらもオンになつているので、
アンド・ゲート15の出力もオンとなり、オア・
ゲート17を経由して、シーケンス制御部18に
例外条件の発生が伝達されることになる。この点
の機構については、例えば入出力割込を発生させ
る機構と同様であり、例えば入出力割込要求信号
等の例外条件信号が出力されている場合に、
EXPビツト12がオンになると、アンド・ゲー
ト16の出力もオンになり、オア・ゲート17を
経由して例外条件の発生が伝達されるような制御
と同様である。シーケンス制御部18は、マイク
ロ・プログラム・カウンタ19を選択する代わり
に、例外解析ルーチン・アドレスを選択する選択
信号をデコーダ20に出力する。次に例外解析ル
ーチンのマイクロ命令が、CS21からマイクロ
命令レジスタ11に読み出されることになる。例
外解析ルーチンは、ステツプ・フラグ14がセツ
トされていることを確認して、ステツプ・モード
処理部23を起動する。
The information on SEXP bit 13 is input to AND gate 15 along with the output signal of step flag 14. Both are turned on now, so
The output of AND gate 15 is also turned on, and the OR gate is turned on.
The occurrence of the exceptional condition is transmitted to the sequence control unit 18 via the gate 17. The mechanism in this respect is similar to the mechanism that generates input/output interrupts, and for example, when an exception condition signal such as an input/output interrupt request signal is output,
When the EXP bit 12 is turned on, the output of the AND gate 16 is also turned on, similar to the control in which the occurrence of an exception condition is transmitted via the OR gate 17. The sequence control unit 18 outputs a selection signal for selecting an exception analysis routine address to the decoder 20 instead of selecting the micro program counter 19. Next, the microinstruction for the exception analysis routine is read from the CS 21 to the microinstruction register 11. The exception analysis routine confirms that the step flag 14 is set and starts the step mode processing section 23.

ステツプ・モード処理部23は、ステツプ制御
語22を参照して、ステツプ動作を決定する。ス
テツプ動作に入つた場合には、プロンプトを出力
し、ユーザからの指示を待ち、インタラクテイブ
にユーザの指示を処理する。
The step mode processing section 23 refers to the step control word 22 and determines the step operation. When a step operation is started, a prompt is output, an instruction from the user is waited for, and the user's instruction is processed interactively.

本発明によれば、ユーザは、例えば予めステツ
プ制御語22に、ユーザ定義関数のみのステツプ
動作または関数名アトム・ヘツダにトレース指示
してある関数のみのステツプ動作を設定してお
き、ユーザが特に1ステツプずつ追跡したい関数
へインタプリタ1が到達して、ステツプ動作によ
り指示をプロンプトして来たときに、ステツプ制
御語22に新たにユーザ定義関数内の全関数のス
テツプ動作指示を設定して、その関数内を詳細に
追跡するようなことも容易に実施できる。このス
テツプ制御語22のユーザ定義関数内全関数ステ
ツプ動作指示のビツトは、ユーザ定義関数からリ
ターンするときに、インタプリタ1が自動的にリ
セツトするようにしてもよいし、ユーザがステツ
プ動作不要となつたときに、リセツト指示をする
ようにしてもよい。
According to the present invention, the user can set, for example, in the step control word 22 in advance a step operation only for user-defined functions or a step operation only for functions specified to be traced in the function name atom header. When the interpreter 1 reaches the function that you want to trace step by step and prompts you for an instruction by step operation, set new step operation instructions for all functions in the user-defined function in the step control word 22. It is also easy to trace the inside of the function in detail. The step control word 22 may be configured so that the interpreter 1 automatically resets the step operation instruction bit for all functions within the user-defined function when returning from the user-defined function, or when the user no longer needs the step operation. It is also possible to issue a reset instruction when the reset occurs.

ステツプ・フラグ14がオフの状態のとき、す
なわち通常モードのときには、マイクロ命令の
SEXPビツト13のオン/オフにかかわらずアン
ド・ゲート15の出力は、常に「0」となる。従
つて、関数型言語によるプログラムは、インタプ
リタ1によつて、通常の実行順序に従い、連続的
に処理されることとなる。
When step flag 14 is off, that is, in normal mode, the microinstruction
The output of the AND gate 15 is always "0" regardless of whether the SEXP bit 13 is on or off. Therefore, a program written in a functional language is processed continuously by the interpreter 1 according to the normal execution order.

(7) 発明の効果 以上説明した如く本発明によれば、マイクロレ
ベルの割込機構を利用することにより、インタプ
リタにおいて、ステツプ動作に入るべきかどうか
を各関数毎にソフト的に判定する必要はなくな
り、特に通常モード時においてインタプリタの性
能が低下するのを防ぐことができる。また、ステ
ツプ・モード時において、ステツプ動作のレベル
をユーザが自由に指定でき、能率のよいデバグ等
を行うことが可能となる。ステツプ・モードと通
常モードとの切替えも簡易に行うことができる。
(7) Effects of the Invention As explained above, according to the present invention, by using a micro-level interrupt mechanism, there is no need for the interpreter to determine by software whether or not to enter a step operation for each function. This prevents the performance of the interpreter from deteriorating, especially in normal mode. Furthermore, in the step mode, the user can freely specify the level of the step operation, allowing efficient debugging and the like. Switching between step mode and normal mode can also be easily performed.

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

第1図は一般的なインタプリタの動作サイクル
説明図、第2図は従来のステツプ制御ルーチンの
処理説明図、第3図は本発明の一実施例構成を示
す。 図中、1はインタプリタ、10はマイクロ命令
実行制御部、11はマイクロ命令レジスタ、13
はステツプ例外ビツト、14はステツプ・フラ
グ、18はシーケンス制御部、22はステツプ制
御語、23はステツプ・モード処理部を表わす。
FIG. 1 is an explanatory diagram of the operation cycle of a general interpreter, FIG. 2 is an explanatory diagram of the processing of a conventional step control routine, and FIG. 3 is a diagram showing the configuration of an embodiment of the present invention. In the figure, 1 is an interpreter, 10 is a microinstruction execution control unit, 11 is a microinstruction register, and 13
14 is a step exception bit, 14 is a step flag, 18 is a sequence control section, 22 is a step control word, and 23 is a step mode processing section.

Claims (1)

【特許請求の範囲】[Claims] 1 インタプリタが関数型言語を解釈しつつ実行
する関数型マシンにおいて、上記インタプリタが
実行するマイクロ命令にステツプ例外を受付ける
かどうかを示す制御域を設けるとともに、上記関
数型言語を連続的に処理する通常モードまたはイ
ンタラクテイブに処理するステツプ・モードを指
示するモード指示部と、上記モード指示部がステ
ツプ・モードを示しているときに上記マイクロ命
令の制御域がステツプ例外受付け可能状態であれ
ば割込を発生させる例外検出部と、インタラクテ
イブに処理すべきステツプ動作のレベルを決定す
るステツプ制御語と、上記例外検出部によつて起
動され上記ステツプ制御語の内容に従つてステツ
プ動作を実行処理するステツプ・モード処理部と
をそなえたことを特徴とする関数型マシンの実行
制御方式。
1. In a functional machine where an interpreter interprets and executes a functional language, a control area is provided to indicate whether or not to accept step exceptions in the microinstructions executed by the interpreter, and a normal machine that processes the functional language continuously. mode or a step mode for interactive processing, and a mode instruction section that indicates a step mode to be processed interactively, and a mode instruction section that indicates the step mode and interrupts if the control area of the microinstruction is in a state where step exceptions can be accepted. an exception detection unit that generates an exception, a step control word that interactively determines the level of the step operation to be processed, and a step that is activated by the exception detection unit and executes the step operation according to the contents of the step control word. - An execution control method for a functional machine characterized by having a mode processing section.
JP57113303A 1982-06-30 1982-06-30 Execution control system of function type machine Granted JPS593643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57113303A JPS593643A (en) 1982-06-30 1982-06-30 Execution control system of function type machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57113303A JPS593643A (en) 1982-06-30 1982-06-30 Execution control system of function type machine

Publications (2)

Publication Number Publication Date
JPS593643A JPS593643A (en) 1984-01-10
JPH0157375B2 true JPH0157375B2 (en) 1989-12-05

Family

ID=14608801

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57113303A Granted JPS593643A (en) 1982-06-30 1982-06-30 Execution control system of function type machine

Country Status (1)

Country Link
JP (1) JPS593643A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11331009A (en) 1998-05-08 1999-11-30 Nec Corp Radio communication system

Also Published As

Publication number Publication date
JPS593643A (en) 1984-01-10

Similar Documents

Publication Publication Date Title
JP5905911B2 (en) Diagnostic code using single-step execution
IE920746A1 (en) Improved software debugging system and method especially adapted for code debugging within a multi-architecture environment
US8255203B2 (en) Method of debugging an executable computer program having instructions for different computer architectures
JPH0157375B2 (en)
JPH05250221A (en) Simulator execution system
JP2002351695A (en) Debugging method for program, debugging device and recording medium for program debugging
JP2000076095A (en) Device and method for tracing program and storage medium storing program therefor
JP2686801B2 (en) Microcomputer program development tool
JP2659366B2 (en) Debugging method and device
JP3130421B2 (en) Program analysis method and apparatus
JPH09288595A (en) Arithmetic processing unit
JP2502128B2 (en) Compiler device
JP3085309B2 (en) Debug system
JPS5842891B2 (en) Meirei Seigiyohoushiki
JP2799646B2 (en) Diagnosis method of pipeline control computer
US7627859B2 (en) Method for configuring non-script language library files to be run as scripts
JPH0766343B2 (en) Program test equipment
JPS61240341A (en) Microprogram controller
JPH03141436A (en) Debugging device
JPS6278630A (en) Information processor
JPH0546434A (en) Program debugging system
JPH0325815B2 (en)
JPH04140852A (en) Diagnostic system for information processor
JPH01298444A (en) Program execution control system
JPH05204698A (en) Debugger processing system