JPS6042492B2 - Processing phase execution control method - Google Patents

Processing phase execution control method

Info

Publication number
JPS6042492B2
JPS6042492B2 JP16750480A JP16750480A JPS6042492B2 JP S6042492 B2 JPS6042492 B2 JP S6042492B2 JP 16750480 A JP16750480 A JP 16750480A JP 16750480 A JP16750480 A JP 16750480A JP S6042492 B2 JPS6042492 B2 JP S6042492B2
Authority
JP
Japan
Prior art keywords
processing
phase
memory
amount
phases
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
JP16750480A
Other languages
Japanese (ja)
Other versions
JPS5790758A (en
Inventor
敬昭 池田
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 JP16750480A priority Critical patent/JPS6042492B2/en
Publication of JPS5790758A publication Critical patent/JPS5790758A/en
Publication of JPS6042492B2 publication Critical patent/JPS6042492B2/en
Expired 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

Description

【発明の詳細な説明】 本発明は処理フェーズ実行制御方式に関し、特に、処
理フェーズをあらかじめ複数の部分処理フェーズに分割
して外部記憶装置に格納しておき、その実行時に順次主
記憶へ転送するデータ処理システムにおいて、複数の部
分処理フェーズを統合した処理フェーズを用意し、主記
憶上の使用可能なメモリ量の大きさに応じて、部分処理
フェーズまたは統合処理フェーズのいずれかを実行する
ようにした処理フェーズ実行制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a processing phase execution control method, and in particular, a processing phase is divided into a plurality of partial processing phases and stored in an external storage device in advance, and the partial processing phases are sequentially transferred to the main memory during execution. In a data processing system, a processing phase that integrates multiple partial processing phases is prepared, and either the partial processing phase or the integrated processing phase is executed depending on the amount of memory available on the main memory. This invention relates to a processing phase execution control method.

コンパイラ等の大規模な処理プログラムにおいて、処
理過程の一段階(フェーズ)のロードモジュールサイズ
が設計上の最小必要記憶量を超える場合、従来方式にお
いては、フェーズを複数に分割し、中間テキストを各フ
ェーズに順次に処理させるいわゆるバス分けの方法を採
用することにより解決していた。 コンパイラのコード
生成フェーズを例にとつて説明する。
In a large-scale processing program such as a compiler, if the load module size of one stage (phase) of the processing process exceeds the minimum required storage capacity in the design, conventional methods divide the phase into multiple parts and store intermediate text in each phase. This problem was solved by adopting a so-called bus division method in which the phases are sequentially processed. The code generation phase of a compiler will be explained as an example.

いま、あるコンパイラのコード生成フェーズが命令A、
B、C、D、E、F、G、Hのコード生成処理を行うと
する。各命令のコード生成ルーチンはそれぞれ20KB
の大きさを必要とすると仮定し、このコンパイラの最小
必要記憶量の設計量は1処理フェーズの大きさが40K
Bとなつているとする。このとき、コード生成フェーズ
は第1図に示すように4つに分割され、順次に実行され
る。 すなわち、まずフェーズ1がメモリ(主記憶)上
にロードされ、命令A、Bの処理を行い、中間テキスト
を外部記憶に書き出す。
Now, the code generation phase of a certain compiler is instruction A,
Assume that code generation processing for B, C, D, E, F, G, and H is performed. The code generation routine for each instruction is 20KB each.
Assuming that the size of 1 processing phase is 40K, the minimum required storage capacity of this compiler is
Suppose that it is B. At this time, the code generation phase is divided into four parts as shown in FIG. 1 and executed sequentially. That is, first, phase 1 is loaded onto memory (main memory), processes instructions A and B, and writes intermediate text to external memory.

次にフェーズ2がメモリ上にロードされ、フェーズ1が
書き出した中間テキストを読み込み、命令C、Dの処理
を行い、中間テキストを外部記憶に書き出す。以下同様
にフェーズ3、フェーズ4がロードされる。 これによ
れば、一時に1フェーズ(大きさ40KB)がロードさ
れるだけなので、40KBのメモリさえあれば命令A−
Hの処理ができることになる。以上が従来技術である。
ところで、上記方法では、仮にメモリが40KBよりず
つと多く(例えば160KB)与えられたとしても、や
はり4つのフェーズが順にロードされ、中間テキストの
読み書きが4回ずつ行われることに変りなく、処理時間
は短縮されない。
Next, phase 2 is loaded onto the memory, reads the intermediate text written by phase 1, processes instructions C and D, and writes the intermediate text to external storage. Phase 3 and phase 4 are subsequently loaded in the same manner. According to this, only one phase (size 40KB) is loaded at a time, so if there is 40KB of memory, instruction A-
This means that H can be processed. The above is the conventional technology.
By the way, in the above method, even if more memory than 40 KB (for example, 160 KB) is provided, the four phases will still be loaded in sequence and the intermediate text will still be read and written four times, which will reduce the processing time. is not shortened.

すなわち余分のメモリが有効に利用されないという欠点
がある。本発明は上記問題点を解決し、メモリを有効に
利用するとともに、処理時間を短縮できるようにするこ
とを目的とし、そしてそのため本発明は、処理フェーズ
をあらかじめ複数の部分処理フェーズに分割して外部記
憶装置に格納しておき、その実行時に順次主記憶に転送
するデータ処理システムにおいて、上記外部記憶装置に
上記分割された複数の処理フェーズを統合した処理フェ
ーズを用意するとともに、上記分割された複数の処理フ
ェーズを順次実行させる手段と、上記統合された処理フ
ェーズを実行させる手段と、上記各処理フェーズのサイ
ズ・パラメータを保持するサイズ・パラメータ保持手段
と、主記憶上の使用可能なメモリ量を検出するメモリ量
検出手段と、上記サイズ・パラメータと上記主記憶上の
使用可能なメモリ量との比較を行ない上記複数の処理フ
ェーズを順次実行させる手段と、上記統合された処理フ
ェーズを実行させる手段のいずれかを起動するメモリ量
判定手段とをそなえ、主記憶上の使用可能なメモリ量の
大きさに応じて処理フェーズの実行方法を可変に制御す
ることを特徴とする。
In other words, there is a drawback that the extra memory is not used effectively. An object of the present invention is to solve the above-mentioned problems, make effective use of memory, and shorten processing time, and for this purpose, the present invention divides a processing phase into a plurality of partial processing phases in advance. In a data processing system that stores data in an external storage device and sequentially transfers it to main memory during execution, a processing phase that integrates the plurality of divided processing phases is prepared in the external storage device, and a processing phase that integrates the plurality of divided processing phases is prepared in the external storage device. means for sequentially executing a plurality of processing phases, means for executing the integrated processing phase, size parameter holding means for holding size parameters of each of the processing phases, and the amount of usable memory on the main memory. a memory amount detecting means for detecting the amount of memory; a means for sequentially executing the plurality of processing phases by comparing the size parameter and the amount of available memory in the main memory; and executing the integrated processing phase. The present invention is characterized by comprising a memory amount determining means for activating one of the means, and variably controlling the execution method of the processing phase depending on the amount of usable memory on the main memory.

以下、本発明を図面により説明する。Hereinafter, the present invention will be explained with reference to the drawings.

第2図は本発明による処理方式を説明する図てある。本
発明では第2図に示すように従来の処理経路と並行して
新たな処理経路を設け、全部の命令処理ルーチンを結合
したフェーズを実行させることにより全命令の処理を1
回の読み書きで行うことを可能にする。この新たなフェ
ーズは、例えば160KBの大きさを持つので、処理の
前に判定を入れ、処理フェーズに与えられたメモリ量が
160KB以上であれば新たなフェーズを実行し、そう
でなければ従来の4つのフェーズを順に実行するように
制御を行う。これによれば、メモリが160KB以上与
えられたとき、フェーズ5がロードされ1バスで全命令
の処理を行うので、フェーズのロード回数が4回から1
回、中間テキストの読み書きの回数が4回ずつから1回
ずつに減少し、処理時間が大幅に短縮される。
FIG. 2 is a diagram illustrating a processing method according to the present invention. In the present invention, as shown in FIG. 2, a new processing path is provided in parallel with the conventional processing path, and by executing a phase that combines all instruction processing routines, processing of all instructions is carried out in one step.
Allows you to do it in one read and write. This new phase has a size of, for example, 160 KB, so a judgment is made before processing, and if the amount of memory given to the processing phase is 160 KB or more, the new phase is executed, otherwise the conventional Control is performed so that the four phases are executed in sequence. According to this, when 160KB or more of memory is given, phase 5 is loaded and all instructions are processed on one bus, so the number of phase loads is reduced from 4 to 1.
The number of times the intermediate text is read and written is reduced from four times to one time each time, and the processing time is significantly reduced.

すなわち余分に与えられたメモリを有効に利用できる。
ここで、例えばフェーズ1中の命令Aの処理ルーチンと
フェーズ5中の命令Aの処理ルーチンとは全く同じもの
が使える。
In other words, the extra memory can be used effectively.
Here, for example, the processing routine for instruction A in phase 1 and the processing routine for instruction A in phase 5 can be exactly the same.

従つてフェーズ5の各処理ルーチンはフェーズ1〜4中
のルーチンと共通に開発でき、作成の手間もそれほど増
えないで済む。以下、本発明の動作を実施例により説明
する。
Therefore, each processing routine in Phase 5 can be developed in common with the routines in Phases 1 to 4, and the effort required to create them does not increase much. Hereinafter, the operation of the present invention will be explained using examples.

第3図は本発明による実施例のデータ処理装置の機能ブ
ロック図であり、図中、1は処理フェーズを格納する外
部記憶装置、2〜5は部分処理フェーズであり、2は命
令A,Bを処理するためのフェーズ、3は命令C,Dを
処理するためのフェーズ、4は命令E,Fを処理するた
めのフェーズ、5は命令G,Hを処理するためのフェー
ズ、6は命令A−Hを処理するための統合されたフェー
ズ、7は分割された処理フェーズを順次実行させ・る実
行制御手段、8は統合された処理フェーズを実行させる
実行制御手段、9は処理フェーズの使用可能なメモリ量
を検出する手段、10はサイズ・パラメータ保持部、1
1は使用可能なメモリ量が閾値以上である否かを判定す
る手段、12に主記憶内における処理フェーズ格納部、
13は処理フェーズの入出力データを格納する外部記憶
装置である。第3図においてサイズ・パラメータ保持部
10には、外部記憶装置1内の各処理フェーズ2〜6の
サイズすなわちメモリ容量の大きさを示すパラメータが
あらかじめ設定されている。
FIG. 3 is a functional block diagram of a data processing device according to an embodiment of the present invention, in which 1 is an external storage device for storing processing phases, 2 to 5 are partial processing phases, and 2 is an instruction A, B 3 is a phase for processing instructions C and D; 4 is a phase for processing instructions E and F; 5 is a phase for processing instructions G and H; 6 is a phase for processing instructions A - an integrated phase for processing H; 7 is an execution control means for sequentially executing divided processing phases; 8 is an execution control means for executing an integrated processing phase; 9 is a usable processing phase. means for detecting the amount of memory; 10 is a size parameter holding unit; 1
1 a means for determining whether the amount of available memory is equal to or greater than a threshold; 12 a processing phase storage section in the main memory;
Reference numeral 13 denotes an external storage device for storing input/output data of the processing phase. In FIG. 3, parameters indicating the size of each processing phase 2 to 6 in the external storage device 1, that is, the size of the memory capacity, are set in advance in the size/parameter holding unit 10.

そして、図示しない制御手段により、命令Aから命令H
までのコード生成処理を実行するよう指示されたとき、
まずメモリ量検出手段9が起動される。メモリ量検出手
段9は、主記憶内の処理フェーズ格納部12の大きさを
示す情報を保持する図示しない記憶手段を参照すること
によつて処理フェーズ格納部12の大きさを検出する。
なお、処理フェーズ格納部12の大きさは一定ではなく
、データ処理装置における各種処理の進行につれて、可
変に設定される。メモリ量検出手段9は、判定手段11
を起動するとともに、上記検出したメモリ量情報を判定
手段11へ送出する。起動された判定手段11は、メモ
リ量検出手段9によつて検出されたメモリ量情報とサイ
ズ・パラメータ保持部10に保持されているサイズ・パ
ラメータとを比較する。なお、判定手段11では統合さ
れた処理フェーズ6のサイズと図示しない常駐制御フェ
ーズのサイズとを加えたサイズを閾値とし、この閾値と
上記メモリ量情報とを比較するようにする。そして、上
記メモリ量情報が閾値未満を示しているとき、判定手段
11は実行制御手段7を起動する。また上記メモリ量情
報が閾値以上を示しているとき、判定手段11は実行制
御手段8を起動する。実行制御手段7が起動されたとき
、当該実行制御手段7は、分割された処理フェーズ2〜
5を順次実行させる。すなわち、まず、処理フェーズ2
を処理フェーズ格納部12へ転送し、これを実行させる
。処理フェーズ2は、この結果を外部記憶装置13へ戻
す。次に処理フェーズ3を処理フェーズ格納部12へ転
送し、上記と同様にして実行させる。以下、同様にして
処理フェーズ5までの実行が行なわれる。一方、実行制
御手段8が起動されたとき、当該実行制御手段8は、統
合された処理フェーズ6を処理フェーズ格納部12へ転
送し、これを実行させる。実行終了後、その結果は外部
記憶装置13へ戻される。第4図は主記憶の状態を説明
する図であり、図中、Aはメモリ量が閾値未満の場合を
示し、Bはメモリ量が閾値以上の場合を示す。
Then, by a control means (not shown), commands A to H are
When instructed to perform the code generation process up to
First, the memory amount detection means 9 is activated. The memory amount detection means 9 detects the size of the processing phase storage section 12 by referring to a storage section (not shown) that holds information indicating the size of the processing phase storage section 12 in the main memory.
Note that the size of the processing phase storage section 12 is not constant, but is set variably as various processes in the data processing apparatus progress. The memory amount detection means 9 is the determination means 11.
At the same time, the detected memory amount information is sent to the determining means 11. The activated determining means 11 compares the memory amount information detected by the memory amount detecting means 9 and the size parameter held in the size parameter holding section 10. Note that the determining means 11 uses the sum of the size of the integrated processing phase 6 and the size of the resident control phase (not shown) as a threshold value, and compares this threshold value with the above-mentioned memory amount information. Then, when the memory amount information indicates less than the threshold value, the determination means 11 activates the execution control means 7. Further, when the memory amount information indicates a threshold value or more, the determination means 11 activates the execution control means 8. When the execution control means 7 is activated, the execution control means 7 executes the divided processing phases 2 to 2.
5 in sequence. That is, first, processing phase 2
is transferred to the processing phase storage unit 12 and executed. Processing phase 2 returns this result to external storage device 13. Next, processing phase 3 is transferred to the processing phase storage unit 12 and executed in the same manner as above. Thereafter, execution up to processing phase 5 is performed in the same manner. On the other hand, when the execution control means 8 is activated, the execution control means 8 transfers the integrated processing phase 6 to the processing phase storage section 12 and causes it to be executed. After the execution is completed, the results are returned to the external storage device 13. FIG. 4 is a diagram illustrating the state of the main memory, in which A indicates the case where the memory amount is less than the threshold value, and B indicates the case where the memory amount is greater than the threshold value.

なお、Aにおいて、横方向はメモリ量の大きさを示すも
のではなく、記憶内容の変化を示すものである。以上説
明したように本発明によれば、バス分けした各フェーズ
の機能を統合したフェーズを新たに設け、与えられた記
憶量が最小必要記憶量かそれをやや上回る程度であると
きは、従来通りバス分けした各フェーズが順次に動作し
、複数バスで処理を行なうようにし、与えられた記憶量
が最小”必要記憶量を十分上回るときは、統合されたフ
ェーズが動作し、より少ないバス数で処理を行なうこと
ができるようにしたので、これにより十分な記憶量を与
えたときにバスの数が減少し、処理速度を向上させるこ
とができる。
Note that in A, the horizontal direction does not indicate the size of the memory amount, but indicates the change in the stored content. As explained above, according to the present invention, a new phase is provided that integrates the functions of each phase divided into buses, and when the amount of memory given is at least the minimum required amount of memory or slightly more than that, it is processed as before. Each phase divided into buses operates sequentially and processes are performed on multiple buses, and when the amount of memory provided is sufficiently greater than the minimum required amount of memory, the integrated phase operates and uses fewer buses. Since the processing can be performed, the number of buses can be reduced when a sufficient amount of storage is provided, and the processing speed can be improved.

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

第1図は従来の分割処理を示す図、第2図は本発明によ
る処理方式を説明する図、第3図は本発明による実施例
のデータ処理装置の機能ブロック図、第4図は主記憶の
状態を説明する図である。
FIG. 1 is a diagram showing conventional division processing, FIG. 2 is a diagram explaining a processing method according to the present invention, FIG. 3 is a functional block diagram of a data processing device according to an embodiment of the present invention, and FIG. 4 is a main memory FIG.

Claims (1)

【特許請求の範囲】[Claims] 1 処理フェーズをあらかじめ複数の部分処理フェーズ
に分割して外部記憶装置に格納しておき、その実行時に
順次主記憶へ転送するデータ処理システムにおいて、上
記外部記憶装置に上記分割された複数の処理フェーズを
統合した処理フェーズを用意するとともに、上記分割さ
れた複数の処理フェーズを順次実行させる手段と、上記
統合された処理フェーズを実行させる手段と、上記各処
理フェーズのサイズ・パラメータを保持するサイズ・パ
ラメータ保持手段と、主記憶上の使用可能なメモリ量を
検出するメモリ量検出手段と、上記サイズ・パラメータ
と上記主記憶上の使用可能なメモリ量と比較を行ない、
上記複数の処理フェーズを順次実行させる手段と、上記
統合された処理フェーズを実行させる手段のいずれかを
起動するメモリ量判定手段とをそなえ、主記憶上の使用
可能なメモリ量の大きさに応じて処理フェーズの実行方
法を可変に制御することを特徴とする処理フェーズ実行
制御方式。
1. In a data processing system in which a processing phase is divided in advance into a plurality of partial processing phases and stored in an external storage device, and the partial processing phases are sequentially transferred to a main memory during execution, the plurality of divided processing phases are stored in the external storage device. A means for sequentially executing the plurality of divided processing phases, a means for executing the integrated processing phase, and a size/parameter for holding the size/parameter of each processing phase. a parameter holding means, a memory amount detection means for detecting the amount of usable memory on the main memory, and comparing the size parameter with the amount of usable memory on the main memory;
The method includes a means for sequentially executing the plurality of processing phases, and a memory amount determining means for activating either of the means for executing the integrated processing phases, depending on the amount of usable memory in the main memory. A processing phase execution control method characterized by variably controlling an execution method of a processing phase.
JP16750480A 1980-11-28 1980-11-28 Processing phase execution control method Expired JPS6042492B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16750480A JPS6042492B2 (en) 1980-11-28 1980-11-28 Processing phase execution control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16750480A JPS6042492B2 (en) 1980-11-28 1980-11-28 Processing phase execution control method

Publications (2)

Publication Number Publication Date
JPS5790758A JPS5790758A (en) 1982-06-05
JPS6042492B2 true JPS6042492B2 (en) 1985-09-24

Family

ID=15850903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16750480A Expired JPS6042492B2 (en) 1980-11-28 1980-11-28 Processing phase execution control method

Country Status (1)

Country Link
JP (1) JPS6042492B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59159007U (en) * 1983-04-08 1984-10-25 三洋電機株式会社 Bar antenna mounting device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59159007U (en) * 1983-04-08 1984-10-25 三洋電機株式会社 Bar antenna mounting device

Also Published As

Publication number Publication date
JPS5790758A (en) 1982-06-05

Similar Documents

Publication Publication Date Title
JPS6042492B2 (en) Processing phase execution control method
US7086054B2 (en) Method and device for reconstructing the process sequence of a control program
JPH06230963A (en) Memory access controller
JPS63276629A (en) Sorting system for record in file
JP2845746B2 (en) Micro program controller
JP2675081B2 (en) Arithmetic processing method
JPH0233173B2 (en)
JPS59111538A (en) Microprogram controller
JPS63314660A (en) Cache test system
JPS63269235A (en) Cpu system testing method
JPH0844570A (en) System and method for program execution
JPH02257349A (en) Network address setting system
JPS6393045A (en) Microprogram controller
JPH05108316A (en) Processor
JPS6234204A (en) Controller
JPS5842487B2 (en) Program loading method
JPH03156659A (en) Direct memory access controller
JPS6048551A (en) List data access controlling system
JPH01185729A (en) Overlay structure program execution system
JPH01300352A (en) Dump area instruction control system
JPH0581018A (en) Auxiliary processor
JPH03282636A (en) Data storing method for execution of test package
JPH01233526A (en) Data access and program calling system
JPH01243120A (en) Firmware control device
JPH03201131A (en) Loop instruction processing system