JPS63265326A - Memory area managing system for high-level language library - Google Patents

Memory area managing system for high-level language library

Info

Publication number
JPS63265326A
JPS63265326A JP10052887A JP10052887A JPS63265326A JP S63265326 A JPS63265326 A JP S63265326A JP 10052887 A JP10052887 A JP 10052887A JP 10052887 A JP10052887 A JP 10052887A JP S63265326 A JPS63265326 A JP S63265326A
Authority
JP
Japan
Prior art keywords
memory
level language
language library
library
memory area
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
JP10052887A
Other languages
Japanese (ja)
Inventor
Kenjiro Nishiyama
西山 健二郎
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 JP10052887A priority Critical patent/JPS63265326A/en
Publication of JPS63265326A publication Critical patent/JPS63265326A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To omit the memory acquiring and opening processes within a library and to reduce the memory capacity by deciding successively the memory capacities requested by each high-level language library and acquiring and opening automatically a desired memory area. CONSTITUTION:A language processor is started by a starting means 5 and carries out a source program 8. An acquiring means 3 is first started and the memory sizes within a working area of an executing routine are supplied from a memory acquiring data memory means 6. Thus a memory 7 is acquired based on the memory size and the head address of the memory 7 is stored in the means 6. A high-level language library acquires the head address out of the means 6 and uses the memory 7. Finally the executing routine which performs the final processing is called and an opening means 4 is started. The head address and the memory size are supplied from the means 6 in the working area of the executing routine. Then the memory 7 is opened and the operation is returned to the means 5. In such a way, a memory area of the high-level language library is managed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報処理装置におけるリエントラント形式で
作成された高級言語ライブラリが使用するメモリ領域の
取得、開放を管理する高級言語ライブラリのメモリ領域
管理方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to memory area management for a high-level language library that manages the acquisition and release of a memory area used by a high-level language library created in a reentrant format in an information processing device. Regarding the method.

〔従来の技術〕[Conventional technology]

従来、高級言語ライブラリはユーザプログラム内で常に
引用されるとは限らないので、リエントランド形式で作
成された高級言語ライブラリのメモリ管理は、個々のラ
イブラリ内で必要とするメモリ領域を取得し、使用後に
開放するが、リンク時に必要とするメモリをリンカが割
り付けていた。
Conventionally, high-level language libraries are not always referenced in user programs, so memory management for high-level language libraries created in reentrant format involves acquiring and using the required memory area within each individual library. The linker allocated memory needed during linking that was released later.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のメモリ領域管理方式では、個々の高級言
語ライブラリが引用されるごとにメモリの取得、開放を
行なうかあるいは、リン゛り時にライブラリが作業領域
として使用するメモリの割り付けを行なうので、前者の
場合、メモリの取得。
In the conventional memory area management method described above, memory is acquired and released each time an individual high-level language library is cited, or memory is allocated for the library to use as a work area during linking, so the former If , memory acquisition.

開放処理時間の増大、メモリの取得、開放処理を個々の
ライブラリ内に取込む面倒さ、ライブラリの容量の増加
をもたらす欠点がある。後者の場合、ライブラリの引用
がなく、てもメモリが取得されるという欠点がある。
There are drawbacks such as an increase in release processing time, memory acquisition, the trouble of incorporating the release process into each library, and an increase in the capacity of the library. In the latter case, the disadvantage is that memory is acquired even though the library is not referenced.

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

本発明の高級言語ライブラリのメモリ領域管理方式は、
メモリ制御機構を有し、コンパイラ方式の言語処理プロ
セッサを備え、予め高級言語ライブラリの名称、使用メ
モリサイズを示すメモリ取得データによりメモリ領域の
管理を行なう高級言語ライブラリのメモリ領域管理方式
において、前記言語処理プロセッサ起動後入力される原
始プログラムが高級言語ライブラリを引用しているかど
うかを識別する識別手段と、前記識別手段で識別した高
級言語ライブラリの前記メモリ取得データを登録処理す
る登録手段と、前記登録手段によって前記メモリ取得デ
ータを記憶するメモリ取得データ記憶手段と、前記原始
プログラムの実行に伴い前記メモリ取得データ記憶手段
に記憶された前記メモリ取得データを読み出し高級言語
ライブラリが必要とするメモリ領域を最初の高級言語ラ
イブラリ内ブラリされる前にメモリ上に取得する取得手
段と、前記原始プログラムの実行に伴い最後の高級言語
ライブラリの処理終了後に前記取得手段で取得した前記
メモリ領域を開放する開放手段とを有している。
The memory area management method of the high-level language library of the present invention is as follows:
In a memory area management method for a high-level language library, which has a memory control mechanism, is equipped with a compiler-type language processing processor, and manages a memory area based on memory acquisition data that indicates the name of the high-level language library and the memory size used in advance, the language identification means for identifying whether or not a source program input after startup of the processing processor quotes a high-level language library; a registration means for registering the memory acquisition data of the high-level language library identified by the identification means; A memory acquisition data storage means for storing the memory acquisition data by a means, and a memory area required by the high-level language library is first read out from the memory acquisition data stored in the memory acquisition data storage means upon execution of the source program. an acquisition means for acquiring the memory area in the memory before being stored in the high-level language library; and a release means for releasing the memory area acquired by the acquisition means after the processing of the last high-level language library is completed as the source program is executed. have.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

この実施例は、識別手段1.登録手段2゜取得手段3.
゛開放手段4.起動手段5.メモリ取得データ記憶手段
6.メモリ7、原始プログラム8から構成されている。
In this embodiment, identification means 1. Registration means 2゜Acquisition means 3.
゛Opening means 4. Starting means 5. Memory acquisition data storage means 6. It consists of a memory 7 and a source program 8.

第2図〜第5図は各部の動作を説明するフローチャート
である。
FIGS. 2 to 5 are flowcharts illustrating the operation of each part.

次に本発明の動作について説明する。まず、利用者は起
動手段5から言語処理プロセ、ツサを起動する。言語処
理プロセッサは、原始プログラム8を読み込み、構文解
析後識別手段1を動作させる。識別手段1は、構文解析
後に生成したシンボルテーブルから外部シンボル名の入
手(ステップ1.1)を行ない、言語処理プロセッサ内
に予め登録されている高級ライブラリの名称、使用する
メモリサイズを示すメモリ取得データを探索して、外部
シンボル名が高級言語ライブラリの名称と一致しでいる
かどうかを識別しくステップ12)、一致していればそ
のライブラリ名が存在するメモリ取得データ内のメモリ
サイズを入手して(ステップ13)、登録手段2を起動
させる。このようにして、すべての外部シンボルに対し
て高級言語ライブラリの名称かどうかを識別して、起動
手段1に戻る。登録手段2は、メモリ取得データ内から
入手したメモリサイズが言語処理プロセッサが実行時ル
ーチンの和楽領域内に確保したメモリ取得データ記憶手
段6のメモリサイズより大かどうか比較して(ステップ
21)、メモリ取得データ内から入手したメモリサイズ
が大きい時のみ、この値でメモリ取得データ記憶手段6
のメモリサイズを更新して(ステップ22)、識別手段
1に戻る。
Next, the operation of the present invention will be explained. First, the user starts the language processing process, Tsusa, from the starting means 5. The language processor reads the source program 8 and operates the identification means 1 after parsing the syntax. The identification means 1 obtains an external symbol name from the symbol table generated after syntax analysis (step 1.1), and obtains a memory indicating the name of a high-level library registered in advance in the language processor and the memory size to be used. Search the data to identify whether the external symbol name matches the name of the high-level language library (step 12), and if it does, obtain the memory size in the memory acquisition data where the library name exists. (Step 13), the registration means 2 is activated. In this way, all external symbols are identified as to whether they are high-level language library names or not, and the process returns to the activation means 1. The registration means 2 compares whether the memory size obtained from the memory acquisition data is larger than the memory size of the memory acquisition data storage means 6 secured by the language processor in the Japanese music area of the runtime routine (step 21); Only when the memory size obtained from the memory acquisition data is large, the memory acquisition data storage means 6 uses this value.
The memory size of is updated (step 22), and the process returns to the identification means 1.

次に、起動手段5から原始プログラムを実行させ、最初
の実行時ルーチンの実行により、取得手段3を起動させ
る。取得手段3はメモリ取得データ記憶手段6から実行
時ルーチンの作業領域内のメモリサイズを入力して(ス
テップ31)、このメモリサイズに従ってメモリ7の取
得を行ないくステップ32)、取得したメモリの先頭ア
ドレスの格納をメモリ取得データ記憶手段6内に行ない
(ステップ33)処理を終了する。高級言語ライブラリ
は、メモリ取得データ記憶手段6内の先頭アドレスを入
手してメモリ7を利用する。最後に、最終処理を行なう
実行時ルーチンが呼び出されて、開放手段4が起動され
る。開放手段4は、実行時ルーチンの作業領域内のメモ
リ取得データ記憶手段6から先頭アドレス、メモリサイ
ズを入力しくステップ41)、メモリ7の開放を行なっ
て(ステップ42)起動手段5に戻る。このようにして
、高級言語ライブラリのメモリ領域を管理している。
Next, the source program is executed from the starting means 5, and the acquisition means 3 is started by executing the first execution routine. The acquisition means 3 inputs the memory size in the work area of the runtime routine from the memory acquisition data storage means 6 (step 31), and acquires the memory 7 according to this memory size. The address is stored in the memory acquired data storage means 6 (step 33) and the process is ended. The high-level language library obtains the start address in the memory acquisition data storage means 6 and uses the memory 7. Finally, a runtime routine for final processing is called and the opening means 4 are activated. The release means 4 inputs the start address and memory size from the memory acquisition data storage means 6 in the work area of the execution routine (step 41), releases the memory 7 (step 42), and returns to the activation means 5. In this way, the memory area of the high-level language library is managed.

なお、実施例においては、メモリ取得データ記憶手段と
メモリとを別々にして示したが、同一メモリ上にそれぞ
れ配置しても良いことはいうまでもない。
In the embodiment, the memory acquisition data storage means and the memory are shown separately, but it goes without saying that they may be arranged on the same memory.

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

以上説明したように本発明は、原始プログラム内で引用
されている個々の高級言語ライブラリが必要とするメモ
リの大きさを逐次判定して、必要とするメモリ領域を自
動的に取得、開放することにより、以下の効果がある。
As explained above, the present invention sequentially determines the amount of memory required by each high-level language library cited in a source program, and automatically acquires and releases the required memory area. This has the following effects.

 l)ライブラリ内でのメモリ取得、開放処理、が不要
となり、ライブラリの容量が小さくなる。2)実行時に
個々のライブラリ内でメモリの取得、開放を行わないた
め、処理時間が向上する。3)ライブラリが引用された
時だけ、メモリの取得を行なうので、メモリの有効利用
が図れる。
l) Memory acquisition and release processing within the library becomes unnecessary, reducing the capacity of the library. 2) Processing time is improved because memory is not acquired or released within each library during execution. 3) Since memory is acquired only when the library is cited, memory can be used effectively.

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

第1図は本発明の高級言語ライブラリのメモリ領域管理
方式の一実施例を示すブロック図、第2図は第1図の識
別手段1のフローチャート、第3図は第1図の登録手段
2のフローチャート、第4図は第1図の取得手段3のフ
ローチャート、第5図は第1図の開放手段4のフローチ
ャートである。 1・・・識別手段、2・・・登録手段、3・・・取得手
段、代理人 弁理士 内 原 (し′ 第 1TEJ 第3 回 手4 フ
FIG. 1 is a block diagram showing an embodiment of a memory area management system for a high-level language library of the present invention, FIG. 2 is a flowchart of the identification means 1 shown in FIG. 1, and FIG. 4 is a flowchart of the acquisition means 3 of FIG. 1, and FIG. 5 is a flowchart of the release means 4 of FIG. 1. 1... Identification means, 2... Registration means, 3... Acquisition means, Agent Patent Attorney Uchihara (shi') 1st TEJ 3rd Hand 4

Claims (1)

【特許請求の範囲】[Claims] メモリ制御機構を有し、コンパイラ方式の言語処理プロ
セッサを備え、予め高級言語ライブラリの名称、使用メ
モリサイズを示すメモリ取得データによりメモリ領域の
管理を行なう高級言語ライブラリのメモリ領域管理方式
において、前記言語処理プロセッサ起動後入力される原
始プログラムが高級言語ライブラリを引用しているかど
うかを識別する識別手段と、前記識別手段で識別した高
級言語ライブラリの前記メモリ取得データを登録処理す
る登録手段と、前記登録手段によって前記メモリ取得デ
ータを記憶するメモリ取得データ記憶手段と、前記原始
プログラムの実行に伴い前記メモリ取得データ記憶手段
に記憶された前記メモリ取得データを読み出し高級言語
ライブラリが必要とするメモリ領域を最初の高級言語ラ
イブラリが呼び出される前にメモリ上に取得する取得手
段と、前記原始プログラムの実行に伴い最後の高級言語
ライブラリの処理終了後に前記取得手段で取得した前記
メモリ領域を開放する開放手段とを有することを特徴と
する高級言語ライブラリのメモリ領域管理方式。
In a memory area management method for a high-level language library, which has a memory control mechanism, is equipped with a compiler-type language processing processor, and manages a memory area based on memory acquisition data that indicates the name of the high-level language library and the memory size used in advance, the language identification means for identifying whether or not a source program input after startup of the processing processor quotes a high-level language library; a registration means for registering the memory acquisition data of the high-level language library identified by the identification means; A memory acquisition data storage means for storing the memory acquisition data by a means, and a memory area required by the high-level language library is first read out from the memory acquisition data stored in the memory acquisition data storage means upon execution of the source program. acquisition means for acquiring the memory area before the high-level language library is called; and release means for releasing the memory area acquired by the acquisition means after the processing of the last high-level language library is completed as the source program is executed. A memory area management method for a high-level language library.
JP10052887A 1987-04-22 1987-04-22 Memory area managing system for high-level language library Pending JPS63265326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10052887A JPS63265326A (en) 1987-04-22 1987-04-22 Memory area managing system for high-level language library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10052887A JPS63265326A (en) 1987-04-22 1987-04-22 Memory area managing system for high-level language library

Publications (1)

Publication Number Publication Date
JPS63265326A true JPS63265326A (en) 1988-11-01

Family

ID=14276463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10052887A Pending JPS63265326A (en) 1987-04-22 1987-04-22 Memory area managing system for high-level language library

Country Status (1)

Country Link
JP (1) JPS63265326A (en)

Similar Documents

Publication Publication Date Title
JPH10214203A (en) Information processor
JPS63265326A (en) Memory area managing system for high-level language library
JPH0651989A (en) Fast loading system of operating system in computer system
JPH02201552A (en) Transaction trace information picking system
JPH0528088A (en) Method for automatically generating hardware constitution information
JPS5835656A (en) Cell management controlling system
JPH02151956A (en) Command procedure starting system
JPH086829A (en) Simultaneous full data retrieving method for data base
JP3330767B2 (en) Information processing apparatus and trace acquisition method in information processing apparatus
JP2907665B2 (en) Acquisition storage area management method
JPH0337748A (en) External storage accessing system utilizing main storage
JPH0667942A (en) Log extraction system
JPH04178731A (en) Reuse system for method cache information in object oriented processing system
JPH02137049A (en) Confirming system for transmission of control command
JPS6325731A (en) Data processor
JPH04105128A (en) High speed command starting system by residence
JPH0477840A (en) Collection system for fault analysis system
JPH04260142A (en) Disk file saving system
JP2003030017A (en) Data storage method and storage medium storing program based on the method
JPH05314081A (en) Information processor provided with two processors
JPH05257757A (en) Performance information monitoring system
JPH0561826A (en) Command syntax analysis system
JPS6111861A (en) Program access control system
JPH04137145A (en) Diagnostic program execution system
JPH04128936A (en) Program execution environment changeover system