JPH01185729A - Overlay structure program execution system - Google Patents
Overlay structure program execution systemInfo
- Publication number
- JPH01185729A JPH01185729A JP1050588A JP1050588A JPH01185729A JP H01185729 A JPH01185729 A JP H01185729A JP 1050588 A JP1050588 A JP 1050588A JP 1050588 A JP1050588 A JP 1050588A JP H01185729 A JPH01185729 A JP H01185729A
- Authority
- JP
- Japan
- Prior art keywords
- control block
- file control
- overlay structure
- loaded
- execution
- 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
- 238000000034 method Methods 0.000 claims description 16
- 238000007781 pre-processing Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はコンビエータシステムにおけるオーバレイ構造
プログラムの実行方式に関し、特に外部記憶装置上に既
に作成されているオーバレイ構造プログラムのロードモ
ジュールの実行方式に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method for executing an overlay structure program in a combiator system, and particularly relates to a method for executing a load module of an overlay structure program already created on an external storage device. .
オーバレイ構造プログラムの実行方式としては大別して
、コンパイル、リンク、実行を一つのジョブ(或いはア
クティビティ)として行なう方式と、リンクまでと実行
とを別ジップとして行なう方式つまり外部記憶装置上に
既に作成されているオーバレイ構造プログラムのロード
モジュールを実行する方式とがある。そして、前者の方
式では、プログラムの実行時に必要なファイルに対する
各種制御情報たとえばファイル名、ファイルの状態。Execution methods for overlay structured programs can be roughly divided into two: methods in which compiling, linking, and execution are performed as one job (or activity), and methods in which linking and execution are performed as separate zips, i.e., programs that have already been created on an external storage device. There is a method of executing a load module of an overlay structure program. In the former method, various control information for files required when executing a program, such as file name and file status.
バフフプ情報等を含むファイル制御ブロックは、オーバ
レイ構造プログラムの実行開始前にそれまでの処理で既
に主記憶上にロードされており、実行後あらためてそれ
を主記憶上にロードする必要はない、しかし、後者の方
式では、実行開始時点ではファイル制御ブロックは未だ
主記憶上にロードされていないので、従来は、利用者プ
ログラムであるオーバレイ構造プログラムのメインルー
チン(いわゆるルートの部分)にファイル制御ブロック
のロードを行なう処理を利用者が設定し、利用者プログ
ラム自身でファイル制御ブロックの主記憶上へのロード
を制御していた。The file control block containing buffer information, etc. has already been loaded into the main memory in the previous processing before starting the execution of the overlay structure program, and there is no need to load it into the main memory again after execution. In the latter method, the file control block has not yet been loaded into main memory at the start of execution, so conventionally, the file control block was loaded in the main routine (so-called root part) of the overlay structure program, which is the user program. The user sets the process to perform this, and the user program itself controls the loading of the file control block onto main memory.
従って、利用者がメインルーチンにそのような処理を設
定するのを忘れると、従来においては、ファイル制御ブ
ロックが主記憶上にロードされないことからそのオーバ
レイ構造プログラムの実行ができなかった。前述したよ
うに、前者の方式ではそのような設定は不要であり、実
行方式によってプログラムの作成方法が異なるものとな
るので、上述のような設定忘れは起こり易い。Therefore, if the user forgets to set such processing in the main routine, the overlay structure program cannot be executed because the file control block is not loaded onto the main memory. As described above, the former method does not require such settings, and the program creation method differs depending on the execution method, so forgetting the settings as described above is likely to occur.
本発明の目的は、上述のような原因でオーバレイ構造プ
ログラムが実行できなくなることを防ぐことにある。An object of the present invention is to prevent overlay structure programs from becoming unexecutable due to the causes described above.
本発明は上記目的を達成するために、
外部記憶装置上に既にロードモジュールとして作成され
ているオーバレイ構造プログラムの実行方式において、
前記オーバレイ構造プログラムが実行時に使用するファ
イル制御ブロックが主記憶上にロードされているか否か
を判定するファイル111iブロツクロード判定手段と
、
主記憶上にファイル制御ブロックをロードするファイル
制御ブロックロード手段とを設け、前記オーバレイ構造
プログラムの実行に先立って、前記ファイル制御ブロッ
クロード判定手段による判定を行なわせ、前記ファイル
制御ブロックが主記憶上にロードされていないと判定さ
れることにより、前記ファイル制御ブロックロード手段
により前記ファイル制御ブロックを主記憶上にロードし
てから前記オーバレイ構造プログラムの実行を開始する
ようにしている。To achieve the above object, the present invention provides an execution method for an overlay structure program that has already been created as a load module on an external storage device, in which a file control block used by the overlay structure program during execution is loaded onto the main memory. A file 111i block load determining means is provided for determining whether the file 111i block is loaded, and a file control block loading means is for loading the file control block onto the main memory. When the determination means makes a determination and it is determined that the file control block has not been loaded onto the main memory, the file control block loading means loads the file control block onto the main memory and then loads the file control block onto the main memory. I am trying to start executing a structural program.
オーバレイ構造プログラムの実行に先立って、そのオー
バレイ構造プログラムが使用するファイル制御ブロック
が主記憶上にロードされているか否かがファイル制御ブ
ロックロード判定手段により判定され、ロードされてい
ない場合、ファイル制御ブロックロード手段によってフ
ァイル制御ブロックが主記憶上にロードされてからオー
バレイ構造プログラムの実行が開始される。Prior to execution of an overlay structure program, a file control block load determination means determines whether or not a file control block used by the overlay structure program has been loaded on the main memory, and if it has not been loaded, the file control block After the file control block is loaded onto the main memory by the loading means, execution of the overlay structure program is started.
次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明を適用したコンピュータシステムの一例
を示す構成図である。この実施例のコンピュータシステ
ムは、オーバレイ構造プログラムのロードモジュールL
Mおよびファイル制御ブロックPCBが記憶された外部
記憶装置1と、オーバレイ構造プログラムの実行を実記
憶方式を使用して行なう計算機2とで構成されている。FIG. 1 is a configuration diagram showing an example of a computer system to which the present invention is applied. The computer system of this embodiment has an overlay structure program load module L.
It is comprised of an external storage device 1 in which M and a file control block PCB are stored, and a computer 2 that executes an overlay structure program using a real storage method.
計算機2は、前処理部3と実行部6を含む。この前処理
部3は、プログラムの実行に先立って従来より必・ず実
行される部分であり、例えばそのプログラムが使用する
主記憶領域のクリア等を行なう1本実施例では、その前
処理部3に、ファイル制御ブロックロード判定手段4と
ファイル制御ブロックロード手段5とを設けている。The computer 2 includes a preprocessing section 3 and an execution section 6. This preprocessing unit 3 is a part that is conventionally always executed prior to the execution of a program, and for example, it clears the main storage area used by the program. A file control block load determining means 4 and a file control block loading means 5 are provided.
ファイル制御ブロックロード判定手段4は、外部記憶装
置1上に記憶されたオーバレイ構造プログラムのロード
モジュールLMの実行時に使用するファイル制御ブロッ
クPCBが主記憶上にロードされているか否かを判定す
る手段であり、ファイル制御ブロックPCBが主記憶上
にロードされていると判定したときは実行部6にロード
モジュールLMの実行を指示し、ロードされていないと
判定したときはファイル制御ブロックロード手段5を起
動する。一般に、ロードモジュールLM中にはファイル
制御ブロックPCBが外部記憶装置1上のどの部分に格
納されているかを指示する情報が格納されたエリアと、
主記憶上のどの部分にロードすべきかを指示する情報を
保持するエリアがあるので、ファイル制御ブロックロー
ド判定手段4はその後者のエリアに保持されたロード先
情報に従って主記憶上の内容を読取り、この読取った情
報に従ってファイル制御ブロックPCBがロードされて
いるか否かを判定することが可能である。The file control block load determining means 4 is means for determining whether the file control block PCB used when executing the load module LM of the overlay structure program stored on the external storage device 1 has been loaded on the main memory. If it is determined that the file control block PCB is loaded onto the main memory, the execution unit 6 is instructed to execute the load module LM, and if it is determined that the file control block PCB is not loaded, the file control block loading means 5 is activated. do. Generally, the load module LM includes an area in which information indicating where on the external storage device 1 the file control block PCB is stored is stored;
Since there is an area in the main memory that holds information indicating which part should be loaded, the file control block load determination means 4 reads the contents in the main memory according to the load destination information held in the latter area. According to this read information, it is possible to determine whether the file control block PCB is loaded or not.
また、ファイル制御ブロックロード手段5は、ファイル
制御ブロックロード判定手段4によりファイル制御ブロ
ックPCBがロードされていないと判定されたとき、主
記憶上にファイルM?lIブロックPCBをロードする
手段であり、その後、実行部6にロードモジュールLM
の実行を指示する。Further, when the file control block load determining means 4 determines that the file control block PCB has not been loaded, the file control block loading means 5 stores the file M? It is a means for loading the II block PCB, and then the load module LM is sent to the execution unit 6.
instruct the execution of
次に、このように構成された本実施例の動作を説明する
。Next, the operation of this embodiment configured as described above will be explained.
計算機2は外部記憶装置lに記憶されたオーバレイ構造
プログラムのロードモジュールLMを実行するに先立っ
て、前処理部3の処理を実行する。The computer 2 executes the processing of the preprocessing section 3 before executing the load module LM of the overlay structure program stored in the external storage device l.
前処理部3では、先ずファイル制御ブロックロード判定
手段4により、ロードモジュールLMが実行時に使用す
るファイル制御ブロックPCBが主記憶上にロードされ
ているか否かを判定する。In the preprocessing unit 3, first, the file control block load determining means 4 determines whether the file control block PCB used by the load module LM during execution has been loaded on the main memory.
・そして、ロードされていれば、実行部6に対しロード
モジュールLMの実行を指示する。これに応答して実行
部6は外部記憶装置1よりオーバレイ構造プログラムの
ロードモジュールLMの実行部分を主記憶上にロードし
、実行を開始する。- If the load module LM has been loaded, it instructs the execution unit 6 to execute the load module LM. In response, the execution unit 6 loads the execution portion of the load module LM of the overlay structure program from the external storage device 1 onto the main memory and starts execution.
他方、ファイル制御ブロックPCBが主記憶上にロード
されていないと判定したとき、ファイル制御ブロックロ
ード判定手段4は、ファイル制御ブロックロード手段5
を起動する。これに応答してファイル制御ブロックロー
ド手段5は、外部記憶装置1flからファイル制御ブロ
ックPCBを主記憶上にロードし、ロード完了後に実行
部6に実行指示を出す、これによって、実行部6は外部
記憶装置1よりオーバレイ構造プログラムのロードモジ
ュールLMの実行部分を主記憶上にロードし、実行を開
始する。On the other hand, when determining that the file control block PCB has not been loaded onto the main memory, the file control block load determining means 4 loads the file control block loading means 5.
Start. In response, the file control block loading means 5 loads the file control block PCB from the external storage device 1fl onto the main memory, and issues an execution instruction to the execution unit 6 after the loading is completed. The execution portion of the load module LM of the overlay structure program is loaded from the storage device 1 onto the main memory and execution is started.
以上説明したように、本発明によれば、オーバレイ構造
プログラムの実行に先立って、そのオーバレイ構造プロ
グラムが使用するファイル制御ブロックが主記憶上にロ
ードされているか否かが判定され、ロードされていない
と判定されたときはそれがロードされた後にオーバレイ
構造プログラムの実行が開始されるものであり、外部記
憶装置上に既に作成されたオーバレイ構造プログラムの
ロードモジュールを実行する際つまりリンクまでと実行
とを別ジョブとして実行する場合においても、利用者は
オーバレイ構造プログラム中にファイル制御ブロックを
ロードする処理を設定しておく必要がなくなる。従って
、利用者ミスによりファイル制御ブロックがロードされ
ず、オーバレイ構造プログラムの実行ができなくなると
いうことはなくなる。As explained above, according to the present invention, prior to execution of an overlay structure program, it is determined whether or not a file control block used by the overlay structure program has been loaded on the main memory, and if the file control block is not loaded. When it is determined that the overlay structure program is loaded, the execution of the overlay structure program starts after it has been loaded. Even when executing as a separate job, the user does not need to set up processing to load file control blocks in the overlay structure program. Therefore, there is no possibility that the file control block will not be loaded due to a user error and the overlay structure program will not be able to be executed.
第1図は本発明を適用したコンピュータシステムの一例
を示す構成図である。
図において、
1・・・外部記憶装置 2・・・計算機3・・・
前処理部
4・・・ファイル制御ブロックロード判定手段5・・・
ファイル制御ブロックロード手段6・・・実行部
LM・・・オーバレイ構造プログラムのロードモジュー
ル
PCB・・・ファイル制御ブロックFIG. 1 is a configuration diagram showing an example of a computer system to which the present invention is applied. In the figure, 1...external storage device 2...computer 3...
Preprocessing unit 4...File control block load determination means 5...
File control block loading means 6...Execution unit LM...Load module for overlay structure program PCB...File control block
Claims (1)
れているオーバレイ構造プログラムの実行方式において
、 前記オーバレイ構造プログラムが実行時に使用するファ
イル制御ブロックが主記憶上にロードされているか否か
を判定するファイル制御ブロックロード判定手段と、 主記憶上にファイル制御ブロックをロードするファイル
制御ブロックロード手段とを設け、前記オーバレイ構造
プログラムの実行に先立って、前記ファイル制御ブロッ
クロード判定手段による判定を行なわせ、前記ファイル
制御ブロックが主記憶上にロードされていないと判定さ
れることにより、前記ファイル制御ブロックロード手段
により前記ファイル制御ブロックを主記憶上にロードし
てから前記オーバレイ構造プログラムの実行を開始する
ようにしたことを特徴とするオーバレイ構造プログラム
実行方式。[Claims] In an execution method for an overlay structure program that has already been created as a load module on an external storage device, whether or not a file control block used by the overlay structure program during execution is loaded on the main memory. A file control block load determining means for determining a file control block load, and a file control block loading means for loading a file control block onto main memory are provided, and the determination by the file control block load determining means is performed prior to execution of the overlay structure program. and when it is determined that the file control block is not loaded onto the main memory, the file control block loading means loads the file control block onto the main memory and then executes the overlay structure program. An overlay structure program execution method characterized in that an overlay structure program is started.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63010505A JP2551075B2 (en) | 1988-01-20 | 1988-01-20 | Overlay structure program execution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63010505A JP2551075B2 (en) | 1988-01-20 | 1988-01-20 | Overlay structure program execution method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH01185729A true JPH01185729A (en) | 1989-07-25 |
JP2551075B2 JP2551075B2 (en) | 1996-11-06 |
Family
ID=11752065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63010505A Expired - Lifetime JP2551075B2 (en) | 1988-01-20 | 1988-01-20 | Overlay structure program execution method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2551075B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011529225A (en) * | 2008-07-22 | 2011-12-01 | サンディスク コーポレイション | Avoiding self-eviction due to dynamic memory allocation in flash memory storage |
-
1988
- 1988-01-20 JP JP63010505A patent/JP2551075B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011529225A (en) * | 2008-07-22 | 2011-12-01 | サンディスク コーポレイション | Avoiding self-eviction due to dynamic memory allocation in flash memory storage |
Also Published As
Publication number | Publication date |
---|---|
JP2551075B2 (en) | 1996-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2692609B2 (en) | Multitask program debugging method and apparatus | |
JPS60136833A (en) | Switching method of operating system | |
US6502176B1 (en) | Computer system and methods for loading and modifying a control program without stopping the computer system using reserve areas | |
JPH01185729A (en) | Overlay structure program execution system | |
JP3143330B2 (en) | Programmable controller | |
JPH0675957A (en) | Restoration mechanism of fault during editing | |
JPS63201756A (en) | File replacing method for on-line system | |
JPS6353657A (en) | Volume save/restoration system | |
JPS62194559A (en) | Memory scheduling system of program in virtual storage system | |
JPS63276629A (en) | Sorting system for record in file | |
JPS63128442A (en) | Control device for cyclic start task | |
JPH0454548A (en) | Memory check system for computer system | |
JPS63180156A (en) | Program loading system | |
JPS63121932A (en) | Job step distributed type starting system | |
JPH02266431A (en) | Information processor | |
JPH0236440A (en) | Display processing system for input/output conditions of file | |
JPS61255440A (en) | Program interruption control system | |
JPS6042492B2 (en) | Processing phase execution control method | |
JPH0844570A (en) | System and method for program execution | |
JPH01191938A (en) | Information processor | |
JPS62221058A (en) | Additional load control system for input/output control program | |
JPH04128936A (en) | Program execution environment changeover system | |
JPH03282735A (en) | Parallel processing system | |
JPS60246441A (en) | Microcomputer | |
JPS61235925A (en) | Operating system for electronic computer system |