JPS60258655A - Production of patch area - Google Patents

Production of patch area

Info

Publication number
JPS60258655A
JPS60258655A JP59115862A JP11586284A JPS60258655A JP S60258655 A JPS60258655 A JP S60258655A JP 59115862 A JP59115862 A JP 59115862A JP 11586284 A JP11586284 A JP 11586284A JP S60258655 A JPS60258655 A JP S60258655A
Authority
JP
Japan
Prior art keywords
area
program
batch
patch
idle
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
JP59115862A
Other languages
Japanese (ja)
Inventor
Yukio Kakeya
掛谷 幸雄
Takaaki Matsumoto
隆明 松本
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
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone 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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP59115862A priority Critical patent/JPS60258655A/en
Publication of JPS60258655A publication Critical patent/JPS60258655A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To reduce the load of a programmer and to secure procession of a patch area by using an idle area calculation means and a patch area production means which turns an idle area into a patch area. CONSTITUTION:A compiler 2 performs the object production processing for conversion of an input source program 1 into an object program then produces a patch area. In such a patch area production mode, the size of an object if first calculated. Then the object size is subtracted from (n) page area (n=1, 2-) which are needed. Then an idle area of the last page is calculated, and an NOP instruction is buried into the idle area for conversion of said idle area into a message area. Finally the contents of a program control area which are obtained through the object production processing are corrected. A linkage editor 3 connects an object modules PMA and PMB.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明は、バッチ・エリアを自動的に作成できるようK
しrCバッチ・エリアの自動作成方式に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION (1) Technical field of the invention The present invention provides a method for automatically creating a batch area.
This invention relates to an automatic creation method for a C batch area.

(2)従来技術と問題点 ロード・峰ジュールにバグが発見された場合、このバグ
を取る方法としてソース・プログラム自体を修正し、再
度コンパイラやリンケージ・エディタを用いてロード・
モジニールを作り直す方法も考えられるが、このような
方法は時間がか入るので、四−ド・そジニール内にバッ
チ−エリアを設け、このバッチ・エリアを用いてバグを
取る方法も採用されている。バッチ・エリアとは、シス
テム応急処理のための命令コード埋込領域である。
(2) Prior art and problems If a bug is found in the loading module, the way to remove the bug is to modify the source program itself and load it again using a compiler or linkage editor.
It is possible to recreate Modinir, but since this method is time consuming, a method has also been adopted in which a batch area is set up within the fourth module and this batch area is used to remove bugs. . The batch area is an instruction code embedded area for system emergency processing.

/< ?チ・エリアの設置方法としては、セード・セグ
メント内のプログラム域に空きが生じた場合に空き領域
をバッチ・エリアとする方法、システム内に共通バッチ
・エリアを設けておぎ、共通バッチ会エリアを複数のロ
ード・モジュールで使用する方法などが知られている。
/<? There are two ways to set up a batch area: when there is free space in the program area in a shade segment, the free area is used as a batch area, and a common batch area is set up in the system, and a common batch area is set up as a batch area. A method of using it with multiple load modules is known.

前者の方法においては、プログラマがソース・プログラ
ムをオブジェクト・プログラム[変換したときの太さを
計算して、ロード・セグメント内のプログラム域の空き
領域をめDC命令でコーディングすることにより空き領
域をバッチ・エリアとしていた。この前者の方式による
と、先行ベース・レジスタの内容を書き換えることなく
、バッチ・エリアをアクセスできるという長所をもりて
いるが、プログラマの負担が増大するという欠点を有し
ている。後者の方法においては、バッチ・エリアを走行
するたメK ハ、ペース・レジスタの値を変更する必要
がある。
In the former method, the programmer converts the source program into an object program by calculating the thickness of the object program and converting the free space into batches by coding the free space in the program area in the load segment with a DC instruction.・It was set as an area. The former method has the advantage that the batch area can be accessed without rewriting the contents of the advance base register, but has the disadvantage of increasing the burden on the programmer. In the latter method, it is necessary to change the value of the pace register in order to run through the batch area.

(3)発明の目的 本発明は、上記の欠点を除去するものであって。(3) Purpose of the invention The present invention obviates the above-mentioned drawbacks.

バッチ・エリアを自プログラム内圧確保しつつ、プログ
ラマによるバッチ・エリアを確保のための計算を不要と
することが出来るようにしたバッチ・エリアの作成方式
を提供することを目的として゛いる。
It is an object of the present invention to provide a batch area creation method that makes it possible to eliminate the need for calculations by a programmer to secure the batch area while ensuring the internal pressure of the batch area in its own program.

(4)発明の構成 そしてそのため、本発明のバッチ・エリア作成方式は、
ソース・プログラムをオブジェクト・プログラムKK換
するオブジェクト・プログラム作成機構と、複数のオブ
ジェクト・プログラムを結合してロード・プログラムを
作成するロードφプログラム作成機構とを備えるシステ
ムにおいて、ソース・プログラムに対応する機械語形式
のプログラムの大きさをチェックするチェック手段と、
上記機械語形式のプログラムを収容するルページ域にお
ける空き領域を計算する空き領域計算手段と、該空き領
域をバッチ・エリアとするために該空き領域に所定のデ
ータを書込むバッチ・エリア作成手段と、上記機械語形
式のプログラムと上記バッチ・エリアの内容を結合した
ものを新たにプログラムと定義する手段とを、上記オブ
ジェクト・プログラム作成機構又はロード・プログラム
作成機構に設けたことを特徴とするものである。
(4) Structure of the invention and therefore, the batch area creation method of the present invention is as follows:
In a system equipped with an object program creation mechanism that converts a source program into an object program KK, and a load program creation mechanism that creates a load program by combining multiple object programs, a machine corresponding to the source program a checking means for checking the size of the program in word format;
a free area calculation means for calculating a free area in a page area that accommodates the program in the machine language format; and a batch area creation means for writing predetermined data into the free area in order to use the free area as a batch area. , characterized in that the object program creation mechanism or the load program creation mechanism is provided with means for defining a new program as a combination of the program in machine language format and the contents of the batch area. It is.

(5) 発明の実施例 以下、本発明を図面を参照しつつ説明する。(5) Examples of the invention Hereinafter, the present invention will be explained with reference to the drawings.

第1図は本発明の1!i!施例のブロック図、第2図は
プログラムの修正およびプログラムのローディングの概
要を示す図である。
Figure 1 shows 1 of the present invention! i! FIG. 2, a block diagram of the embodiment, is a diagram showing an overview of program modification and program loading.

第1図および第2図において、1はソースルモジュール
、2はコンパイラ、3はりンケージ令エディタ、4はメ
モリ、5はプログラム・ローディング処理部、6はバッ
チ処理ツール、7はパンチ・カード、PMAとPMBは
オブジェクト・モジュール、PMLは最終ロード・プロ
グラム、CAはプログラム制御情報域をそれぞれ示して
いる。
1 and 2, 1 is a source module, 2 is a compiler, 3 is a linkage instruction editor, 4 is a memory, 5 is a program loading processing section, 6 is a batch processing tool, 7 is a punch card, PMA and PMB indicate an object module, PML a final load program, and CA a program control information area.

コンパイラ2は、入力されたソース命プログラムlをオ
ブジェクト・プログラムに変換するためのオブジェクト
作成処理を行い、その後にバッチ域作成処理を行う。な
お、バッチ域とバッチ・エリアは同義である。パッチ域
作成処理では、先ずオブジェクトの太ぎさを計算し、必
要となるルページ域(3=l、2.・・・)からオブジ
ェクトの大きさを引算して最後のページの空き領域を計
算し、この空き領域をメツセージ・エリアとするために
NOP命令を埋込み、最後にオブジェクト作成処理でめ
られたプログラム制御情報域の内容を修正する。なお、
ルページ域とはメモリ上へのローディング単位領域のこ
とである。リンケージ・エディタ3は、オブジェクト・
モジュールP ’M AとPMBとを結合編集するもの
であり、先ず通常のリンケージ・エディタと同様に外部
参照解決ロー・ド・モジュールを作成する。次忙各オブ
ジェクト・モジュールにバッチ書エリアが設けられてい
たか否かを調べ、Yesの場合は何もせず、NOの場合
には、ロード・モジュールの大きさチェック、ページ内
の空き計算、メツセージ・エリアとしてのプログラムの
作成およびプログラム制御情報域の修正などを行う。
The compiler 2 performs object creation processing to convert the input source program l into an object program, and then performs batch area creation processing. Note that the batch area and batch area are synonymous. In the patch area creation process, first calculate the thickness of the object, then subtract the object size from the required page area (3=l, 2...) to calculate the free space on the last page. , embeds a NOP command in order to use this empty area as a message area, and finally modifies the contents of the program control information area determined in the object creation process. In addition,
The page area is a loading unit area on memory. Linkage editor 3 is an object
The module P'MA and PMB are combined and edited, and first an external reference resolution load module is created in the same way as a normal linkage editor. Busy Check whether a batch writing area has been provided for each object module. If YES, do nothing; if NO, check the size of the load module, calculate free space in the page, send messages, etc. Create a program as an area and modify the program control information area.

第2図はプログラムの修、正およびプログラムのツチ処
理ツール6を用いてディスク上のプログラムを修正する
。この場合、必要に応じてバッチ域にデータを曹込む。
In FIG. 2, a program on a disk is modified using a program modification, modification, and program modification processing tool 6. In FIG. In this case, data is stored in the batch area as necessary.

メモリ4へのロード・プログラムPMLのローディング
は、プログラム・ローディング処理部5によってページ
単位で行われる。
Loading of the load program PML into the memory 4 is performed page by page by the program loading processing section 5.

(6) 発明の効果 以上の説明から明らかなように、本発明□によれば、自
プログラム内にバッチ・エリアがあるのでペース・レジ
スタの操作が容易なこと、プログラマ 本がローディング時のメモリ量を意識してバッチ・エリ
アをコーデイグする必要がないこと、及びバッチ・エリ
アの確保処理が正確かつ自動的に行い得ること等の効果
を奏することが出来る。
(6) Effects of the Invention As is clear from the above explanation, according to the present invention □, there is a batch area within the own program, making it easy to operate the pace register, and the memory capacity of the programmer's book when loading. It is possible to achieve effects such as there is no need to code the batch area with consideration given to the batch area, and batch area reservation processing can be performed accurately and automatically.

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

第1図は本発明の1実施例のブロック図、第2図はプロ
グラムの修正およびプログラムのローティングの概要を
示す図である。 l・・・ソース・モジュール、2・・・コンパイラ、3
・・・リンケージ・エディタ、4・・・メモリ、5・・
・プログラム・ローディング処理部、6・・・バッチ処
理ツール、7・・・パンチ・カード、PMAとPMB・
・・オブジェクト・モジュール、PML・・・最終ロー
ド・プログラム、CA・・・プログラム制御情報域。 特許出願人 富士通株式会社 外1名 代理人弁理士 京 谷 四 部
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a diagram showing an overview of program modification and program loading. l...Source module, 2...Compiler, 3
...Linkage editor, 4...Memory, 5...
・Program loading processing unit, 6...Batch processing tool, 7...Punch card, PMA and PMB・
...Object module, PML...Final load program, CA...Program control information area. Patent applicant: Fujitsu Limited and one other patent attorney: Yobe Kyotani

Claims (1)

【特許請求の範囲】[Claims] ソース・プログラムをオブジェクト・プログラムに変換
するオブジェクト・プログラム作成機構と、複数のオブ
ジェクト・プログラムを結合してロードφプ四グラムを
作成するり一ド・プログラム作成機構とを備えるシステ
ムにおいて、ソース・プログラムに対応する機械語形式
のプログラムの大きさをチェックするチェック手段と、
上記機械語形式のプログラムを収容するルページ域にお
ける空き領域を計算する空き領域計算手段と、該空き領
域をバッチ・エリアとするために該空き領域に所定のデ
ータを書込むバッチ・エリア作成手段と、上記機械語形
式のプログラムと上記バッチ・エリアの内容を結合した
ものを新たにプログラムと定義する手段とを、上記オブ
ジェクト・プログラム作成機構又はロード・プログラム
作成機構に設けたことを特徴とするバッチ・エリアの作
成方式。
In a system that is equipped with an object program creation mechanism that converts a source program into an object program, and a code program creation mechanism that creates a load program by combining multiple object programs, the source program a checking means for checking the size of a program in machine language format corresponding to the
a free area calculation means for calculating a free area in a page area that accommodates the program in the machine language format; and a batch area creation means for writing predetermined data into the free area in order to use the free area as a batch area. , a batch characterized in that the object program creation mechanism or load program creation mechanism is provided with means for defining a new program by combining the program in machine language format and the contents of the batch area. - Area creation method.
JP59115862A 1984-06-06 1984-06-06 Production of patch area Pending JPS60258655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59115862A JPS60258655A (en) 1984-06-06 1984-06-06 Production of patch area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59115862A JPS60258655A (en) 1984-06-06 1984-06-06 Production of patch area

Publications (1)

Publication Number Publication Date
JPS60258655A true JPS60258655A (en) 1985-12-20

Family

ID=14672986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59115862A Pending JPS60258655A (en) 1984-06-06 1984-06-06 Production of patch area

Country Status (1)

Country Link
JP (1) JPS60258655A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05100865A (en) * 1991-10-09 1993-04-23 Hokkaido Nippon Denki Software Kk Compiling system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05100865A (en) * 1991-10-09 1993-04-23 Hokkaido Nippon Denki Software Kk Compiling system

Similar Documents

Publication Publication Date Title
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JPS60258655A (en) Production of patch area
JPH02140809A (en) Method for loading control program in numerical controller
CA1259138A (en) Method of compiling high level language statements into low level language instruction sets
JPS6139134A (en) Program converting method
JPH0193801A (en) Loading device for control program
JPS6411974B2 (en)
JPH04322327A (en) Subroutine sharing method
JPH01230132A (en) Generator
JPS6338729B2 (en)
JPS63231545A (en) File transfer system
JPH0415832A (en) Fault processing system
JPS5919287A (en) Input and output processing system by memory access instruction
JPH08106444A (en) Load module loading control system
JPS6339037A (en) Program call processing system
JPS6359631A (en) Compiler
JPS62216042A (en) Memory allocating system for data area
JPH03100730A (en) Method for emergency correction data generation processing with high grade language
JPH0358232A (en) Preprocessor calling system
JPS626327A (en) Matching processing system for software at combining
JPH01147646A (en) Information shared system for data processing system
JPH0219924A (en) High-speed data access system
JPH01286053A (en) Data control system over plural types of computers
JPH04242420A (en) Magnetic tape data recording system
JPS58166462A (en) Debugging aid processing system