JPH0740236B2 - Main memory contents saving method - Google Patents

Main memory contents saving method

Info

Publication number
JPH0740236B2
JPH0740236B2 JP61101376A JP10137686A JPH0740236B2 JP H0740236 B2 JPH0740236 B2 JP H0740236B2 JP 61101376 A JP61101376 A JP 61101376A JP 10137686 A JP10137686 A JP 10137686A JP H0740236 B2 JPH0740236 B2 JP H0740236B2
Authority
JP
Japan
Prior art keywords
program
subprogram
control
main memory
list
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 - Lifetime
Application number
JP61101376A
Other languages
Japanese (ja)
Other versions
JPS62257560A (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.)
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 JP61101376A priority Critical patent/JPH0740236B2/en
Publication of JPS62257560A publication Critical patent/JPS62257560A/en
Publication of JPH0740236B2 publication Critical patent/JPH0740236B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理システムにおけるプログラム異常
終了時の主記憶内容の退避制御方式に関し、特に巨大プ
ログラムの主記憶内容の退避制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a save control method of main memory contents when a program ends abnormally in a data processing system, and more particularly to a save control method of main memory contents of a huge program.

〔従来技術〕[Prior art]

従来、プログラム異常終了時の主記憶内容の退避方式の
一つとして、プログラム全体、またはプログラムの書き
込み可能部分の全体を補助記憶装置上に出力する方式が
一般に採用されている。
Conventionally, a method of outputting the entire program or the entire writable portion of the program to an auxiliary storage device is generally adopted as one of the methods of saving the main storage contents when the program ends abnormally.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述した従来の方式は、プログラムの空間が数メガバイ
トに及ぶような巨大プログラムにおいてプログラムが異
常終了した場合、プログラム全体またはプログラムの書
き込み可能部分全体の内容を補助記憶装置上に出力する
のに長時間を要し、さらに補助記憶装置上に出力された
情報をラインプリンタに出力する場合にはその量が膨大
になるという欠点がある。
In the conventional method described above, when a program terminates abnormally in a huge program whose program space reaches several megabytes, it takes a long time to output the entire program or the entire writable part of the program to the auxiliary storage device. In addition, there is a disadvantage that the amount of information output to the auxiliary storage device becomes huge when it is output to the line printer.

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

本発明の主記憶内容の退避制御方式は、プログラムロー
ド時に、プログラムを構成する複数のサブプログラムの
空間情報である、サブプログラム名とサブプログラムの
主記憶上の空間アドレスとをプログラム管理一覧表に登
録するプログラム空間管理手段と、呼び出し元サブプロ
グラムから呼び出し先サブプログラムに制御が移行した
ときに呼び出し先サブプログラム名をプログラム制御移
行一覧表に登録し、呼び出し先サブプログラムから呼び
出し元サブプログラムに制御が戻ったときにこのプログ
ラム制御移行一覧表から呼び出し先サブプログラム名を
削除するサブプログラム間制御移行手段と、前記プログ
ラムの異常終了時に、前記プログラム制御移行一覧表に
登録されているサブプログラムを選択し、選択された各
サブプログラムについて前記プログラム管理一覧表を参
照し、これらのサブプログラムの主記憶装置上の内容を
補助記憶装置上に出力する主記憶退避制御手段とを有す
る。
According to the save control method of the main memory contents of the present invention, when a program is loaded, a sub program name and a space address on the main memory of the sub program, which is space information of a plurality of sub programs constituting the program, are displayed in a program management list. Program space management means to be registered, and when control is transferred from the caller subprogram to the callee subprogram, the callee subprogram name is registered in the program control transfer list, and the callee subprogram is controlled by the caller subprogram. Returns from this program control transfer list, deletes the called subprogram name from the subprogram control transfer means, and selects the subprogram registered in the program control transfer list when the program ends abnormally. And for each selected subprogram There by referring to the program management table, and a main memory save control means for outputting the contents of the main memory of these sub programs on an auxiliary storage device.

すなわち、本発明は、複数のサブプログラムで構成され
る巨大プログラムの主記憶上の内容を、プログラムが異
常終了した時に関係していたサブプログラムの内容に限
定して補助記憶装置上に出力することにより、退避時間
の短縮化を図つたものである。
That is, according to the present invention, the contents of the main memory of a huge program composed of a plurality of subprograms are limited to the contents of the subprograms related to the abnormal termination of the program and output to the auxiliary storage device. Therefore, the evacuation time is shortened.

〔実施例〕〔Example〕

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

第1図は、本発明の主記憶内容の退避制御式の一実施例
を示すブロツク図、第2図はその動作例を示すタイムチ
ヤートである。
FIG. 1 is a block diagram showing an embodiment of a save control method of the main memory contents of the present invention, and FIG. 2 is a time chart showing an example of its operation.

データ処理装置2には二次記憶装置上のプログラムフア
イル群1からロードされた複数の独立したプログラムMi
(i=1,2,…,n)が存在する。
The data processing device 2 includes a plurality of independent programs Mi loaded from the program file group 1 on the secondary storage device.
(I = 1,2, ..., n) exists.

これらの各プログラムMiは、プログラムフアイルからプ
ログラムをロードする時にプログラム空間管理手段3に
よって作成される、それぞれのプログラムMiを構成する
サブプログラム名とサブプログラムの主記憶上の空間ア
ドレス情報とからなるプログラム管理一覧表Pi(i=1,
2,…,n)と、プログラムを構成する各サブプログラムが
他のサブプログラムやOSなどの制御プログラムに制御を
移行するときにサブプログラム間制御移行手段4が作成
する、サブプログラムの呼び出し元と呼び出し先に関す
る情報とからなるサブプログラム間制御移行一覧表Si
(i=1,2,…,n)とを有する。主記憶退避制御手段5
は、上記プログラムの一つ、例えばプログラムMiが異常
終了した場合にサブプログラム制御移行手段4で管理す
るサブプログラム間制御移行一覧表Siをもとにその時点
で関連していたサブプログラムSiPi(i=1,2,…,n)
群、すなわちメインのサブプログラムSiPiからそのサブ
プログラムの論理に従つて次々と呼び出されたサブプロ
グラム群を順次取り出し、取り出した各サブプログラム
SiPiごとにプログラム空間管理手段3で管理しているプ
ログラム管理一覧表PiからサブプログラムSiPjの空間ア
ドレスを参照し、その主記憶の内容を補助記憶装置6上
に出力する。
Each of these programs Mi is a program that is created by the program space management means 3 when the program is loaded from the program file, and that consists of the subprogram name that constitutes each program Mi and the space address information on the main memory of the subprogram. Management table Pi (i = 1,
2, ..., n), and a subprogram caller created by the intersubprogram control transfer means 4 when each subprogram constituting the program transfers control to another subprogram or a control program such as an OS. Control transition table between subprograms consisting of information about callees Si
(I = 1,2, ..., n). Main memory saving control means 5
Is a sub-program SiPi (i) which is related at that time based on the inter-sub-program control transfer list Si managed by the sub-program control transfer means 4 when one of the above-mentioned programs, for example, the program Mi is abnormally terminated. = 1,2, ..., n)
Group, that is, a subprogram group that is sequentially called from the main subprogram SiPi according to the logic of the subprogram, and each subprogram that is taken out
The space address of the subprogram SiPj is referred to from the program management list Pi managed by the program space management means 3 for each SiPi, and the contents of the main memory are output to the auxiliary storage device 6.

サブプログラム間制御移行手段4は、一つのサブプログ
ラムSiPjから他のサブプログラムSiPkを呼び出した時に
サブプログラム間制御移行一覧表SiにサブプログラムSi
Pjを登録し、サブプログラムSiPkがその処理を終えて制
御が呼び出し元のサブプログラムSiPjに戻された時にサ
ブプログラム制御移行一覧表SiからサブプログラムSiPk
を取りのぞくように制御する。
The inter-sub-program control transfer means 4 adds the sub-program Si to the inter-sub-program control transfer list Si when one sub-program SiPj calls another sub-program SiPk.
When Pj is registered, the subprogram SiPk finishes its processing and control is returned to the calling subprogram SiPj, the subprogram control transition table Si to the subprogram SiPk
Control to remove.

このようにサブプログラム間制御移行一覧表Siにはプロ
グラムMiとして最初に働きだすサブプログラムSiP1から
順次階層的に呼び出されたサブプログラム群に関する情
報が登録され、階層的に上のサブプログラムから処理を
終えて呼び出しもとのサブプログラムに順次戻るごとに
サブプログラム間制御移行一覧表Siから呼び出されたサ
ブプログラムの情報が取り消されるようにサブプログラ
ム間制御移行手段4によつて制御される。
In this way, the control transition table Si between sub-programs stores information about the sub-program group sequentially called hierarchically from the sub-program SiP1 which first starts as the program Mi, and processes from the sub-programs hierarchically above. The inter-subprogram control transfer means 4 controls so that the information of the called subprogram from the intersubprogram control transfer list Si is canceled every time the subprogram which is called is sequentially returned.

次に、本実施例の動作例を第2図のタイムチヤートを参
照して説明する。
Next, an operation example of this embodiment will be described with reference to the time chart of FIG.

プログラムMiがサブプログラムSiP1〜SiP20で構成され
ており、サブプログラムSiP1からそのサブプログラムの
論理に従つて第2図に示すように順次他のサブプログラ
ムSiP3.SiP5.SiP20.SiP11を呼び出し、サブプログラムS
iP11を実行中に異常終了した場合を例にとつて説明す
る。
The program Mi is composed of subprograms SiP1 to SiP20, and the subprograms SiP1.SiP5.SiP20.SiP11 are sequentially called from the subprogram SiP1 according to the logic of the subprograms as shown in FIG. S
An example will be described in which the iP11 is abnormally terminated during execution.

プログラムMiが実行されるとまずプログラムMiの主サブ
プログラムであるSiP1に制御が移されるが、このときサ
ブプログラム間制御移行手段4によつてサブプログラム
SiP1がサブプログラム間制御移行一覧表Siに登録され、
その後サブプログラム間の制御移行がSiP1からSiP3へ、
SiP3からSiP5へ、SiP5からSiP20へ、SiP20からSiP11へ
制御が渡つていくごとにこれらのサブプログラムの呼び
出し元と呼び出し先に関する情報を次々とサブプログラ
ム間制御移行手段4によつてサブプログラム制御移行一
覧表Siに格納していく。
When the program Mi is executed, control is first transferred to the main subprogram SiP1 of the program Mi. At this time, the subprogram control transfer means 4 causes the subprogram
SiP1 is registered in the control transition table Si between subprograms,
After that, the control transfer between subprograms is changed from SiP1 to SiP3.
Every time control passes from SiP3 to SiP5, from SiP5 to SiP20, and from SiP20 to SiP11, information about the caller and callee of these subprograms is transferred one after another by the inter-subprogram control transfer means 4. It will be stored in the list Si.

次に、サブプログラムSiP11の実行中にプログラムが異
常終了すると主記憶退避制御手段5は、上記のようにし
て作成されたサブプログラム間制御移行一覧表Siからサ
ブプログラムSiP1を取り出し、次にサブプログラムSiP1
名でプログラム空間管理一覧表Piを参照し、SiP1の主記
憶上の空間アドレス情報を得てその主記憶の内容を補助
記憶装置6に出力し、次に同じようにしてサブプログラ
ムSiP3,SiP5,SiP20,SiP11の主記憶上の補助記憶装置6
に出力する。
Next, if the program abnormally ends during execution of the subprogram SiP11, the main memory save control means 5 takes out the subprogram SiP1 from the inter-subprogram control transition list Si created as described above, and then the subprogram SiP1
By referring to the program space management list Pi by name, the space address information on the main memory of SiP1 is obtained, the contents of the main memory are output to the auxiliary memory device 6, and then the subprograms SiP3, SiP5, Auxiliary storage device 6 on the main memory of SiP20, SiP11
Output to.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、従来のプログラム異常終
了時の主記憶退避技術の中に実行中のサブプログラム群
という概念を導入することにより、むだな主記憶の補助
記憶装置上への退避防止と、その退避時間を短縮すると
共にその後に本補助記憶装置上に退避されたプログラム
情報をラインプリンタ用紙に出力するさいの出力量を削
減できるという効果がある。
As described above, the present invention prevents the wasteful main memory from being saved on the auxiliary storage device by introducing the concept of a subprogram group that is being executed into the conventional main storage saving technique at the time of abnormal program termination. With this, there is an effect that the saving time can be shortened and the output amount when the program information saved in the auxiliary storage device thereafter is output to the line printer paper.

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

第1図は本発明の主記憶内容の退避制御方式の一実施例
を示すブロツク図、第2図は本実施例の動作例を示すタ
イムチヤートである。 1……二次記憶装置上のプログラムフアイル群、 2……データ処理装置、 8……プログラム空間管理手段、 4……サブプログラム制御移行手段、 5……主記憶退避制御手段、 6……補助記憶装置、 Mi……主記憶上のプログラム空間(i=1,2,…,n)、 Pi……プログラム管理一覧表(I=1,2,…,n)、 Si……サブプログラム間制御移行一覧表(i=1,2,…,
n)、 SiPj……一つのプログラムを構成するサブプログラムの
名前(i=1,2,…,n j=1,2,…,m) SBAj……サブプログラムの主記憶上の開始アドレス(j
=1,2,…,m) SBEj……サブプログラムの主記憶上の終了アドレス(j
=1,2,…,m)
FIG. 1 is a block diagram showing an embodiment of the save control method of the main memory contents of the present invention, and FIG. 2 is a time chart showing an operation example of this embodiment. 1 ... Program file group on secondary storage device, 2 ... Data processing device, 8 ... Program space management means, 4 ... Sub-program control transfer means, 5 ... Main memory save control means, 6 ... Auxiliary Memory, Mi ... Program space on main memory (i = 1,2, ..., n), Pi ... Program management list (I = 1,2, ..., n), Si ... Control between sub programs Transition list (i = 1,2, ...,
n), SiPj ... Names of subprograms that make up one program (i = 1,2, ..., nj = 1,2, ..., m) SBAj ... Start address of main program in subprogram (j
= 1,2, ..., m) SBEj ...... End address in main memory of subprogram (j
= 1,2, ..., m)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プログラムロード時に、プログラムを構成
する複数のサブプログラムの空間情報である、サブプロ
グラム名とサブプログラムの主記憶上の空間アドレスと
をプログラム管理一覧表に登録するプログラム空間管理
手段と、 呼び出し元サブプログラムから呼び出し先サブプログラ
ムに制御が移行したときに呼び出し先サブプログラム名
をプログラム制御移行一覧表に登録し、呼び出し先サブ
プログラムから呼び出し元サブプログラムに制御が戻っ
たときにこのプログラム制御移行一覧表から呼び出し先
サブプログラム名を削除するサブプログラム間制御移行
手段と、 前記プログラムの異変終了時に、前記プログラム制御移
行一覧表に登録されているサブプログラムを選択し、選
択された各サブプログラムについて前記プログラム管理
一覧表を参照し、これらのサブプログラムの主記憶装置
上の内容を補助記憶装置上に出力する主記憶退避制御手
段とを備えたことを特徴とする主記憶内容の退避制御方
式。
1. A program space management means for registering a subprogram name and a space address on a main memory of the subprogram, which is space information of a plurality of subprograms constituting the program, in a program management list when the program is loaded. , When control is transferred from the calling subprogram to the called subprogram, the called subprogram name is registered in the program control transfer list, and when the called subprogram returns control to the calling subprogram, this program is registered. Inter-subprogram control transfer means for deleting a callee subprogram name from the control transfer list, and a subprogram registered in the program control transfer list when the program ends abnormally, and each selected subprogram About the program Referring to table, saving control method of the memory contents, characterized in that a main memory save control means for outputting the contents of the main memory of these sub programs on an auxiliary storage device.
JP61101376A 1986-04-30 1986-04-30 Main memory contents saving method Expired - Lifetime JPH0740236B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61101376A JPH0740236B2 (en) 1986-04-30 1986-04-30 Main memory contents saving method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61101376A JPH0740236B2 (en) 1986-04-30 1986-04-30 Main memory contents saving method

Publications (2)

Publication Number Publication Date
JPS62257560A JPS62257560A (en) 1987-11-10
JPH0740236B2 true JPH0740236B2 (en) 1995-05-01

Family

ID=14299082

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61101376A Expired - Lifetime JPH0740236B2 (en) 1986-04-30 1986-04-30 Main memory contents saving method

Country Status (1)

Country Link
JP (1) JPH0740236B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008205526A (en) * 2007-02-16 2008-09-04 Fuji Xerox Co Ltd Image forming apparatus and system, and program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2795676B2 (en) * 1989-05-10 1998-09-10 富士通株式会社 Program trace device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57209547A (en) * 1981-06-19 1982-12-22 Hitachi Ltd Collecting device for program executing carrier information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008205526A (en) * 2007-02-16 2008-09-04 Fuji Xerox Co Ltd Image forming apparatus and system, and program

Also Published As

Publication number Publication date
JPS62257560A (en) 1987-11-10

Similar Documents

Publication Publication Date Title
JPH0740236B2 (en) Main memory contents saving method
JP2624170B2 (en) Logical deletion data physical deletion method
JPS593624A (en) Print output control system
JPH0731595B2 (en) Online load module replacement method
JP2990609B2 (en) Computer system
JPH05143427A (en) Information processing system
JPH0327439A (en) Shared module managing system for program
JPH036535B2 (en)
JP2907665B2 (en) Acquisition storage area management method
JPH0344328B2 (en)
JP2000267866A (en) Device for acquiring end state of two-stage process
JPH06110813A (en) Asynchronous data input/output system
JPH0573325A (en) Program load system
JPH04263362A (en) Document edition control system
JPS63115234A (en) Automatic program patching system
JPH06149640A (en) Management system for object oriented data base
JPH07141014A (en) Nc program down load system
JPH04117523A (en) program editing device
JPH01121948A (en) Output system for memory contents
JPH04361338A (en) Transaction log data succeeding system
JPH0267650A (en) File saving control system
JPH05257761A (en) Damp output control system
JPH05173912A (en) Terminal-side program transfer system for distributed program and its transfer method
JPS6367656A (en) Processing system for data storing area control
JPH11338751A (en) Multi-file multi-volume managing device