JPS6316331A - Constitution of inter-job shared load module - Google Patents

Constitution of inter-job shared load module

Info

Publication number
JPS6316331A
JPS6316331A JP15958086A JP15958086A JPS6316331A JP S6316331 A JPS6316331 A JP S6316331A JP 15958086 A JP15958086 A JP 15958086A JP 15958086 A JP15958086 A JP 15958086A JP S6316331 A JPS6316331 A JP S6316331A
Authority
JP
Japan
Prior art keywords
area
job
shared
jobs
inter
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
Application number
JP15958086A
Other languages
Japanese (ja)
Inventor
Ryuichi Matsuda
隆一 松田
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP15958086A priority Critical patent/JPS6316331A/en
Publication of JPS6316331A publication Critical patent/JPS6316331A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To produce a shared program with no recompiling by using a rearrangement means which replaces the reference address of an inter-job shared program when said address is used as an actual address. CONSTITUTION:An inter-job shared program is loaded to a real memory device 7 as follows. That is, a load module is supplied (S18) and it is decided whether or not the load module is the first one in this system (S19). If so, an inter-job shared area is loaded to the device 7 (S20). Then the area of a reference address is replaced so that the area of a defining address is equal to that loaded actually. Thus the addresses are rearranged by a rearrangement means. In such a way, the addresses are rearranged for each job and therefore the inter-job shared program can be produced with no transfer of registers nor recompiling.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマルチプログラミングが可能な計算機システム
に関し、特に、ジョブ間共有ロードモジュールの構成方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer system capable of multi-programming, and particularly to a configuration method of a load module shared between jobs.

〔従来の技術〕[Conventional technology]

従来、ジョブ間共有ロードモジュールの構成方式には次
の2通りの方式が知られている。
Conventionally, the following two methods are known for configuring an inter-job shared load module.

(1)再入力可能なプログラムとしてプログラミングを
行い、仮想記憶装置上、全ジョブ共通のアドレスに配置
し、唯一のプログラム領域を実記憶装置にロードする。
(1) Programming is performed as a program that can be re-entered, placed at an address common to all jobs on the virtual storage device, and the only program area is loaded into the real storage device.

(2)  ジョブ毎に固有に使用される領域をソースプ
ログラム上で指定し、ロード時に、ジョブ間で共用され
る領域を唯一つの領域として実記憶装置に°−ゞし・′
・′毎に置方の領域を′・′毎に実記憶装置にロードじ
、固有領域のデドレスをレジスタによって授受する。 
X)=X(+lx〔発明が解決しようとする間雇点〕 (1)従来技術(1)の方式では、再入力可能グログラ
ムのジョブ間で共用される領域を実行中に変更してはな
らないので9作成が困難である。例えば。
(2) Specify an area uniquely used for each job on the source program, and when loading, transfer the area shared between jobs to the real storage device as the only area.
・Loads the location area into the real storage device every ′・′, and sends and receives the address of the unique area using the register.
x) = Therefore, it is difficult to create 9. For example.

ノヨブ固有に使用する領域を実行中に動的に作成すると
か、再入力可能プログラムを呼び出す側で用意するとか
の考慮が必要である。
It is necessary to consider whether to dynamically create an area that is unique to Noyob during execution, or to prepare it on the side that calls a re-inputable program.

(2)  従来技術(2)の方式では、ジョブ毎に固有
に使用される領域をンースゾロダラム上で指定すること
か必要な為に、既存のプログラムをジョブ間共有にする
には再コンパイルが必要である。
(2) In the method of conventional technology (2), it is necessary to specify the area to be used uniquely for each job on the Nancezorodram, so recompilation is required to make an existing program shared between jobs. be.

〔問題点を解決するための手段〕[Means for solving problems]

本発明によるジョブ間共有ロートモシーールの構成方式
は、オブジェクトモシールがコート及ヒデータの属性に
応じてセグメントとして分割されているマルチプログラ
ミングが可能な計算機システムにおいて、ロードモジ−
〜ルを作成するときに、オブジェクトモノー−ルを検査
してコードセグメントを自動的(ジョブ間で共用される
領域と判定する第1の判定手段と、指定されたセグメン
トをジョブ間で共用される領域と判定する第2の判定手
段と、第1又は第2の判定手段によってジョブ間で共用
される領域とジョブ毎に固有に使用される領域とを識別
する識別手段と、−)ヨプ毎に固有に使用される領域の
再配置を行う再配置手段とを有し、0−ド時に、識別手
段を入力してジョブ間で共用される領域を唯一つの領域
として実記憶装置にロードし、ジョブ毎に固有に使用さ
れる領域を再配置手段によって全て再配置を行い、ジョ
ブ毎に実記憶装置にロードすることによって。
The configuration method of the load module shared between jobs according to the present invention is applicable to a computer system capable of multi-programming in which object modules are divided into segments according to the attributes of coats and data.
- When creating a file, the object mono is inspected to automatically determine the code segment (a first determination means that determines that the area is shared between jobs, and a first determination means that determines that the specified segment is shared between jobs). a second determining means for determining that the area is an area; an identifying means for identifying an area shared between jobs and an area uniquely used for each job by the first or second determining means; -) for each job; It has a relocation means for relocating an area that is uniquely used, and at the time of 0-dead, the identification means is input and the area shared between jobs is loaded into the real storage device as the only area, and the area shared between jobs is By rearranging all the areas uniquely used for each job using a relocation means and loading them into the real storage device for each job.

レジスタによる固有領域のアドレス授受を不要にし、既
存のプログラムに対してンース7’oグラムの改造を必
要とせずにオブジェクトモジュールを再リンクすること
によって作成できることを特徴とする。
The present invention is characterized in that it eliminates the need to exchange addresses of unique areas using registers, and that it can be created by relinking object modules to existing programs without requiring modification of source 7'ograms.

〔実施例〕〔Example〕

以下2本発明の実施例について図面を参照して説明する
Two embodiments of the present invention will be described below with reference to the drawings.

第1図を参照すると、オブジェクトモジュール1を入力
すると、リンカ2は、識別手段3及び再配置手段4を一
一ドモジーール5の一部として出カスる。ローダ6は、
ロードモジュール5を入力し、識別手段3に従って、実
記憶装置7にシステム中に同−口一ドモゾー−ルがない
場合には共通領域をロードする。こうして、実記憶装置
を有効に利用するジョブ間共有プログラムが構成される
Referring to FIG. 1, upon inputting an object module 1, the linker 2 outputs the identification means 3 and the relocation means 4 as part of a single domoisir 5. The loader 6 is
The load module 5 is input, and according to the identification means 3, the common area is loaded into the real storage device 7 if there is no same domozole in the system. In this way, an inter-job shared program that effectively utilizes the real storage device is configured.

次に、リンカによる各手段の作成方式およびロード方式
について詳しく説明する。
Next, the creation method and loading method of each means by the linker will be explained in detail.

第2図によりて識別手段3の作成方式を説明する。先ず
、コードおよびデータの属性に応じてセグメント毎 入力しくステラf8)、仮想記憶装置に再配置可能な単
位であるセグメント毎に割当てを行う(ステップ9)。
A method of creating the identification means 3 will be explained with reference to FIG. First, each segment is inputted according to the attributes of the code and data (Stella f8), and each segment, which is a relocatable unit, is allocated to the virtual storage device (Step 9).

次に2割当てた領域が・ジョブ間で共有される領域か否
かの判定を行う。この判定は。
Next, it is determined whether the two allocated areas are shared between jobs. This judgment is.

利用者の指定がない場合には第1の判定手段10によっ
て、利用者の指定がある場合には第2の判定手段11に
よって行う。第1の判定手段10は。
If there is no user designation, the first determination means 10 performs the determination, and if the user designation exists, the second determination means 11 performs the determination. The first determining means 10 is.

コードセグメントをジョブ間で共用される領域と判定す
る。第2の判定手段11は、利用者が指定したセグメン
トをジョブ間で共用される領域と判定する。この判定結
果を各領域の識別手段3に設定する(ステップ12)。
Determine the code segment as an area shared between jobs. The second determining means 11 determines that the segment designated by the user is an area shared between jobs. This determination result is set in the identification means 3 of each area (step 12).

第3図によって、再配置手段4の作成方式をオブジェク
トモジュールAがオブジェクトモジュールBを参照して
いる場合を例として説明する。
With reference to FIG. 3, the creation method of the relocation means 4 will be explained using an example in which object module A refers to object module B.

先ず、オブジェクトモジュールA13を入力し。First, input the object module A13.

外部参照に対する情報14を検出する。参照情報14に
は、参照名″B”、参照アドレスが設定されている。参
照アドレスとは、オブジェクトモジュールAの中でBの
定義アドレスを格納するアドレスである。この参照アド
レスを再配置手段4に格納する。
Information 14 for external references is detected. In the reference information 14, a reference name "B" and a reference address are set. The reference address is an address in object module A that stores the definition address of B. This reference address is stored in the relocation means 4.

次にオブジェクトモジニーA 5を入力する。Next, input object modality A5.

して定義基゛B”、定義アドレスが設定されている。定
義アドレスとは、オブジェクトモジュールBの中で”B
″が宣言されたアドレスである。この定義アドレスを再
配置手段4に設定する。
Definition base "B" and definition address are set as "B" in object module B. Definition address is "B" in object module B.
" is the declared address. This defined address is set in the relocation means 4.

この操作を入力したオブジェクトモジュールの全アドレ
ス参照に対して行い、参照アドレスと定義アドレスの組
を再配置手段4に出力する。
This operation is performed for all address references of the input object module, and a set of reference addresses and definition addresses is output to the relocation means 4.

第4図によって実記憶装置7へのロード方式を説明する
。先ずロードモジュール5を入力しくステラ7’18)
、−tのロードモジュールがシステム上で初めてのロー
ドかを判定する(ステップ19)。
The loading method to the real storage device 7 will be explained with reference to FIG. First, enter load module 5 (Stella 7'18)
, -t is loaded for the first time on the system (step 19).

初めてであれば、ジョブ間共有領域を実記憶装置7にロ
ードする(ステップ20)。次に、ジョブ固有の領域を
実記憶装置7にロードする(ステップ21)。そして、
再配置手段4を用いて参照ア・ドレスの領域を定義アド
レスの領域が実際にロードされたアドレスに更新するこ
とによって、アドレスの再配置を行う(ステラf22)
If it is the first time, the inter-job shared area is loaded into the real storage device 7 (step 20). Next, a job-specific area is loaded into the real storage device 7 (step 21). and,
The address is relocated by using the relocation means 4 to update the reference address area to the address where the defined address area is actually loaded (Stella f22)
.

このように、ジョブ毎にアドレスの再配置を行うので、
レジスタによるアドレス授受を行なわずとも、ジョブ間
共有プログラムが実現できる。また、リンク時にセグメ
ント毎に共有領域にするか否かを指定できるから、再コ
ンノぐイルをしなくともジョブ間共有ゾログラムが作成
できる。
In this way, addresses are relocated for each job, so
A shared program between jobs can be realized without exchanging addresses using registers. Furthermore, since it is possible to specify whether or not to make a shared area for each segment at the time of linking, a shared zologram between jobs can be created without reconfiguring.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、ジョブ間で共用される領
域を唯一つの領域として実記憶装置にロードし、ジョブ
固有の領域をジョブ毎に実記憶装置にロードすることに
より、実記憶装置を有効利用するプログラムを再入力可
能グログラムでなくとも作成でき、既存のプログラムを
再リンクのみで作成できるという効果がある。
As explained above, the present invention makes the real storage device effective by loading an area shared between jobs into the real storage device as the only area, and loading a job-specific area onto the real storage device for each job. This has the effect that the program to be used can be created even if it is not a re-inputable program, and that an existing program can be created simply by relinking it.

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

第1図は本発明の一実施例の構成を示したブロック図、
第2図は識別手段を作成する流れ図、第3図は再配置手
段の作成に必要なテーブルを示す図、第4図は実記憶装
置ヘロードする流れ図である。 1・・・オブジェクトモジュール、2・・・リンカ、3
・・・識別手段、4・・・再配置手段、5・・・ロード
モジー第3図 ど−13          ど−15、t7ノ゛エク
トtジュールA         オブジェクト七ジュ
ールB再配量子段〜4
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
FIG. 2 is a flowchart for creating identification means, FIG. 3 is a diagram showing tables necessary for creating relocation means, and FIG. 4 is a flowchart for loading to a real storage device. 1...Object module, 2...Linker, 3
... Identification means, 4... Relocation means, 5... Load module Figure 3 Do-13 Do-15, t7 node t joule A object 7 joule B redistribution quantum stage ~4

Claims (1)

【特許請求の範囲】[Claims] 1、オブジェクトモジュールがコード及びデータの属性
に応じてセグメントとして分割されているマルチプログ
ラミングが可能な計算機システムにおいて、ロードモジ
ュールを作成するときに、前記オブジェクトモジュール
を検査してコードセグメントを自動的にジョブ間で共用
される領域と判定する第1の判定手段と、指定されたセ
グメントをジョブ間で共用される領域と判定する第2の
判定手段と、前記第1又は第2の判定手段によってジョ
ブ間で共用される領域とジョブ毎に固有に使用される領
域とを識別する識別手段と、前記ジョブ毎に固有に使用
される領域の再配置を行う再配置手段とを有し、ロード
時に、前記識別手段を入力してジョブ間で共有される領
域を唯一つの領域として実記憶装置にロードし、ジョブ
毎に固有に使用される領域を前記再配置手段によって全
て再配置を行い、ジョブ毎に実記憶装置にロードするこ
とを特徴とするジョブ間共有ロードモジュールの構成方
式。
1. In a multi-programming computer system where object modules are divided into segments according to code and data attributes, when creating a load module, the object module is inspected and code segments are automatically assigned jobs. a first determining means that determines that the specified segment is an area that is shared between jobs; a second determining means that determines that a specified segment is an area that is shared between jobs; and a relocation means for relocating the area uniquely used for each job. By inputting the identification means, the area shared between jobs is loaded into the real storage device as the only area, and all areas uniquely used for each job are rearranged by the relocation means, and the area is executed for each job. A configuration method of a shared load module between jobs, which is characterized in that it is loaded into a storage device.
JP15958086A 1986-07-09 1986-07-09 Constitution of inter-job shared load module Pending JPS6316331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15958086A JPS6316331A (en) 1986-07-09 1986-07-09 Constitution of inter-job shared load module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15958086A JPS6316331A (en) 1986-07-09 1986-07-09 Constitution of inter-job shared load module

Publications (1)

Publication Number Publication Date
JPS6316331A true JPS6316331A (en) 1988-01-23

Family

ID=15696817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15958086A Pending JPS6316331A (en) 1986-07-09 1986-07-09 Constitution of inter-job shared load module

Country Status (1)

Country Link
JP (1) JPS6316331A (en)

Similar Documents

Publication Publication Date Title
US5717950A (en) Input/output device information management system for multi-computer system
US6279028B1 (en) Operating system having a mechanism for handling a group of related processes residing on separate machines
US20090222792A1 (en) Automatic modification of executable code
JPH02165241A (en) File access system
US6735774B1 (en) Method and apparatus for system call management
US7603666B2 (en) Class loader
JPH0736529A (en) Numerical control device control software execution system
US5963955A (en) Bridge for exporting and importing objects between object oriented programming environments
JPS6316331A (en) Constitution of inter-job shared load module
JP3019915B2 (en) Procedure call method
JPH11249873A (en) Dynamic management method and dynamic management method of driver function
JPH06222916A (en) On-line real-time processor
KR100310291B1 (en) Method for simulating parallel program on single system
JP7499966B2 (en) Control device and address management method
JP2841363B2 (en) External module acquisition method
CN107632934B (en) A method and device for duplicating functions in C-sharp
JPH03157724A (en) Program loading system by dynamic link
JPH05233231A (en) Method for managing library
JP2591818B2 (en) Auxiliary function selection control method
JP3746134B2 (en) High Availability Operation Method for Integrated File System
JP3192177B2 (en) Object processing device
JPS63233445A (en) Local addition system for internal file name
JPH05233307A (en) Multiple process generation method
JPH0721013A (en) System generation method
JPS62251934A (en) Controller with debugging function of program stored in rom