JPH0267627A - Load module output system - Google Patents
Load module output systemInfo
- Publication number
- JPH0267627A JPH0267627A JP22015688A JP22015688A JPH0267627A JP H0267627 A JPH0267627 A JP H0267627A JP 22015688 A JP22015688 A JP 22015688A JP 22015688 A JP22015688 A JP 22015688A JP H0267627 A JPH0267627 A JP H0267627A
- Authority
- JP
- Japan
- Prior art keywords
- load module
- processing
- program
- execution code
- module frame
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 claims abstract description 11
- 230000015572 biosynthetic process Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
Landscapes
- Stored Programmes (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明はロードモジュールの出力方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a load module output method.
従来のロードモジュールの出力方式は、原始プログラム
を翻訳処理プログラムにより翻訳して目的プログラムを
作成し、次に連係編集処理プログラムにより、実行に必
要な実行時モジュール群および前記目的プログラムのア
ドレス参照を解決し結合し、実行可能なロードモジュー
ルを出力している。The conventional load module output method is to create a target program by translating the source program using a translation processing program, and then use a linked editing processing program to resolve the runtime module group required for execution and the address reference of the target program. and outputs an executable load module.
上述したロードモジュール出力方式では、手続上、翻訳
処理および連係編集処理の二段階の処理か必要となる欠
点がある。The load module output method described above has a drawback in that it requires two steps of processing: translation processing and linked editing processing.
本発明のロードモジュールの出力方式は、翻訳処理プロ
グラムが出力する目的プログラムの実行コードを、実行
に必要な実行時モジュール群の連係編集処理を事前に行
い既にアドレス参照の解決がなされたロードモジュール
フレーム内に埋め込むことにより行う。In the load module output method of the present invention, the execution code of the target program output by the translation processing program is processed in advance by link editing processing of the run-time module group necessary for execution, and address references have already been resolved in the load module frame. This is done by embedding it within.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例を示すブロック図であり、1
は原始プログラム、2aは原始プログラム翻訳処理手段
、2bはロードモジュールフレーム、2は原始プログラ
ム翻訳処理手段2aおよびロードモジュールフレーム2
bからなる利用者プログラム作成処理系、3は出力した
ロードモジュールである。FIG. 1 is a block diagram showing one embodiment of the present invention.
2 is a source program, 2a is a source program translation processing means, 2b is a load module frame, 2 is a source program translation processing means 2a and a load module frame 2
b is a user program creation processing system, and 3 is an output load module.
ロードモジュールフレーム2bは、翻訳処理プログラム
により目的プログラムが出力される前に実行時ルーチン
群の連係編集処理を行うことによって作成される。その
ためには、原始プログラム翻訳処理手段2aで埋め込ま
れる目的プログラムの実行コードだけでセグメント間で
のジャンプが可能なように、ジャンプ命令を並べたジャ
ンプテーブルを持つモジュールと、この実行コードが埋
め込まれるための空エリアを持つモジュールとを、実行
時ルーチン群とともに通常の連係編集処理プログラムに
より連結する。これにより、アドレス参照の解決がなさ
れたロードモジュールフレーム2bが実現できる。The load module frame 2b is created by performing link editing processing on a group of runtime routines before the target program is output by the translation processing program. In order to do this, a module with a jump table in which jump instructions are arranged and this execution code is embedded so that a jump between segments can be made only with the execution code of the target program embedded by the source program translation processing means 2a. A module with an empty area is connected together with a group of runtime routines using a normal linked editing processing program. As a result, a load module frame 2b in which address references have been resolved can be realized.
ロードモジュール3出力時に原始プログラム1が利用者
プログラム作成処理系(以下単に処理系と記す)2に入
力されると処理系2は原始プログラム翻訳処理手段(以
下翻訳処理と記す)2aに制御を移行する。When the source program 1 is input to the user program creation processing system (hereinafter simply referred to as the processing system) 2 when the load module 3 is output, the processing system 2 transfers control to the source program translation processing means (hereinafter referred to as translation processing) 2a. do.
翻訳処理2aは原始プログラム1を翻訳し目的プログラ
ムの実行コードを出力する。この実行コードは、一般に
知られた中間コードであり、例えば原始プログラムにお
いて、パラメータCCI。The translation process 2a translates the source program 1 and outputs the execution code of the target program. This execution code is a generally known intermediate code, for example, in a source program, the parameter CCI.
CC2を持つ命令CC3である場合、パラメータCCI
、CC2をスタックに積むためのコードCI、C2を出
力し続いて命令CC3を示ずコードC3を出力する。If the instruction CC3 has CC2, the parameter CCI
, CC2 on the stack, and then outputs code C3 without indicating the instruction CC3.
次に処理系2は翻訳処理2aが出力した実行コードを直
接ロードモジュールフレーム2b内に埋め込む処理を開
始する。ここでロードモジュールフレーム2b内の実行
コードの埋め込み開始アドレスPは、ロードモジュール
フレーム2bを作成したときに決まっている既知の値で
ある。Next, the processing system 2 starts the process of directly embedding the execution code output by the translation process 2a into the load module frame 2b. Here, the embedding start address P of the execution code in the load module frame 2b is a known value that is determined when the load module frame 2b is created.
処理系2は、すべての実行コードの埋め込み処理を終了
すると、その埋め込み処理が終了したロードモジュール
フレーム2bをロードモジュール3として出力する。ロ
ードモジュール3実行時には、前記アドレスPから一つ
ずつ実行コードを読み込みながら実行する。前記の命令
CC3の場合実行コードC1,C2によりパラメータC
CI、CC2をスタックに積み、続いて実行コードC3
によりジャンプテーブルを介して命令CC3ヘジヤンプ
してその処理を行う。When the processing system 2 completes the embedding process for all executable codes, it outputs the load module frame 2b for which the embedding process has been completed as the load module 3. When the load module 3 is executed, execution codes are read one by one from the address P and executed. In the case of the above instruction CC3, the parameter C is set by the execution codes C1 and C2.
Put CI and CC2 on the stack, then execute code C3
The command jumps to instruction CC3 via the jump table and its processing is performed.
以上説明したように本発明は、ロードモジュールフレー
ムと実行コードとの組合せにより、利用者プログラムの
作成を一段階の処理で行うことを可能にする効果をもた
らす。As explained above, the present invention has the effect of making it possible to create a user program in one step by combining a load module frame and an execution code.
第1図は本発明の一実施例を示すブロック図である。
1・・・原始プログラム、2a・・・原始プログラム翻
訳処理手段、3b・・・ロードモジュールフレーム、2
・・・利用者プログラム作成処理系、3・・・ロートモ
2b: ロードしジエールフし一ム
蒲 7 図FIG. 1 is a block diagram showing one embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Source program, 2a... Source program translation processing means, 3b... Load module frame, 2
...User program creation processing system, 3...Rotomo 2b: Load and digitize one module 7 Figure
Claims (1)
ドレス参照の解決がなされたロードモジュールフレーム
内に翻訳処理された目的プログラムの実行コードを埋め
込むことを特徴とするロードモジュールの出力方式。A load module output method characterized by embedding translated execution code of a target program in a load module frame in which address references have already been resolved by performing link editing processing for a group of runtime modules in advance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP22015688A JPH0267627A (en) | 1988-09-01 | 1988-09-01 | Load module output system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP22015688A JPH0267627A (en) | 1988-09-01 | 1988-09-01 | Load module output system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0267627A true JPH0267627A (en) | 1990-03-07 |
Family
ID=16746768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP22015688A Pending JPH0267627A (en) | 1988-09-01 | 1988-09-01 | Load module output system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0267627A (en) |
-
1988
- 1988-09-01 JP JP22015688A patent/JPH0267627A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0267627A (en) | Load module output system | |
JP2000311008A (en) | Programming method for motion controller | |
JPH0210429A (en) | Program structure processing system | |
JP2753555B2 (en) | Programmable controller | |
JPS61169936A (en) | Automatic generation system of job control language | |
JPS63195731A (en) | Program setting system | |
JPH03240837A (en) | Debug information generating device | |
JPH02114328A (en) | Patch source conversion system | |
JPH01194053A (en) | Processing system for command procedure | |
JPH02250122A (en) | Cpu simulator | |
JPH0272407A (en) | Ladder program converter | |
JPH0695890A (en) | Name replacement system in compiler | |
JPS63313235A (en) | Operation system | |
JPS6049935B2 (en) | Microprogram control method | |
JPH0353321A (en) | Information processor | |
JPH02100732A (en) | Program grammar checking system | |
JPS63167933A (en) | Subprogram calling system in interpreter | |
JPH0250730A (en) | Language converting system based upon common machine word | |
JPH01140236A (en) | Inverse compile system for program | |
JPH03167637A (en) | Test diagnostic system for information processor | |
JPH02285425A (en) | Execution time option processing system | |
JPH0371229A (en) | Program controller | |
JPS63217423A (en) | System for setting intra-program constant value | |
JPS63115237A (en) | System for generating object program having correction area | |
JPS62235641A (en) | Control system for executing program |