JPH03246633A - Memory management system for interpreter type language processing processor - Google Patents

Memory management system for interpreter type language processing processor

Info

Publication number
JPH03246633A
JPH03246633A JP4316690A JP4316690A JPH03246633A JP H03246633 A JPH03246633 A JP H03246633A JP 4316690 A JP4316690 A JP 4316690A JP 4316690 A JP4316690 A JP 4316690A JP H03246633 A JPH03246633 A JP H03246633A
Authority
JP
Japan
Prior art keywords
program
area
data
size
storage 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
JP4316690A
Other languages
Japanese (ja)
Inventor
Reiko Ono
大野 玲子
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 JP4316690A priority Critical patent/JPH03246633A/en
Publication of JPH03246633A publication Critical patent/JPH03246633A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To effectively use a main storage device by holding the sizes of respective data storaing area necessary for the execution of a program in a program file, and at the time of executing the program, securing respective areas in the main storage device in accordance with the sizes. CONSTITUTION:The sizes of respective data storing areas 2a to 2c necessary for the execution of the program are determined from program data stored in the program data storing area 2d of the main storage device 2 and added to the program data to form a program file 1. At the time of executing the file 1, the areas 2a to 2c are secured in the device 2 based upon respective data area sizes 1a to 1c. Since only the area sizes to be practically used are secured, the main storage can be effectively used.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はインタプリタ方式言語処理プロセッサに関し、
特にメモリ管理方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an interpreted language processor;
Especially regarding memory management methods.

〔従来の技術〕[Conventional technology]

従来、この種のメモリ管理方式はインタプリタ方式言語
処理プロセッサ(以下インタプリタと略す)起動時イン
タプリタが固定的に保持する既定値によって主記憶装置
上の前記各データ格納領域サイズが決定されるか、ある
いはインタプリタ起動後、前記各データ格納領域サイズ
を設定するコマンドを実行することによって一意的に決
定する方式となっている。
Conventionally, in this type of memory management method, the size of each data storage area on the main memory is determined by a default value fixedly held by the interpreter when starting an interpreter language processor (hereinafter abbreviated as interpreter), or After starting the interpreter, the size of each data storage area is uniquely determined by executing a command to set the size of each data storage area.

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

上述した従来のインタプリタ方式言語処理プロセッサに
おけるメモリ管理方式は、実行するプログラムにかかわ
らず固定的に主記憶装置上の前記各データ格納領域のサ
イズを決定するので、本来プログラムの実行に必要な各
データ格納領域サイズより多くの領域がインタプリタ方
式言語処理プロセッサの領域として主記憶装置上に確保
されるという欠点がある。
The memory management method in the conventional interpreted language processing processor described above fixedly determines the size of each data storage area in the main memory regardless of the program being executed. There is a drawback that an area larger than the storage area size is secured on the main memory as an area for the interpretive language processor.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のインタプリタ方式言語処理プロセッサにおける
メモリ管理方式はプログラムファイル毎に、プログラム
の実行に必要な各データを格納する主記憶装置上の各デ
ータ格納領域のサイズをプログラムファイル内に保持す
る手段と、プログラム実行時に、プログラムファイルに
保持された前記各データ格納領域のサイズに従って主記
憶装置上に各領域を確保する手段とを有している。
The memory management method in the interpretive language processor of the present invention includes means for holding in each program file the size of each data storage area on the main storage device that stores each data necessary for executing the program; and means for securing each area on the main storage device according to the size of each data storage area held in the program file when the program is executed.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例を示すブロック図である。第
1図において、インタプリタ方式言語処理プロセッサは
主記憶装置2上のプログラムデータ格納領域2dに格納
されているプログラムデータからブロクラムの実行時に
必要な各データ格納領域2a、2b、2cのサイズを決
定する。例えばプログラムデータ中に文字列定数が5キ
ロバイト、文字列変数が40個存在する場合、インタプ
リタ処理プロセッサは文字列データ格納領域サイズは5
キロバイト+((インタプリタ処理プロセッサによって
規定される文字列変数に代入可能な文字列の最大値1*
401キロバイトと決定する。そしてインタプリタ方式
言語処理プロセッサは各データ格納領域2a、2b、2
cのサイズをプログラムデータに付加しプログラムファ
イル1に作成する。
FIG. 1 is a block diagram showing one embodiment of the present invention. In FIG. 1, the interpreted language processor determines the size of each data storage area 2a, 2b, and 2c required when executing a block diagram from the program data stored in the program data storage area 2d on the main memory 2. . For example, if there are 5 kilobytes of string constants and 40 string variables in program data, the interpreter processor will have a string data storage area size of 5 kilobytes.
kilobytes + ((maximum value of strings that can be assigned to string variables specified by the interpreter processor 1 *
It is determined to be 401 kilobytes. The interpreter type language processing processor has each data storage area 2a, 2b, 2.
The size of c is added to the program data and created in program file 1.

また、インタプリタ方式言語処理プロセッサはプログラ
ムファイル1を実行する際プログラムファイル1が各デ
ータ領域サイズを保持しているか否かを判断し、各デー
タ領域サイズを保持している場合は各データ領域サイズ
la、lb1.1cをもとに主記憶装置2上に各データ
格納領域2a。
Furthermore, when executing the program file 1, the interpreter type language processing processor determines whether the program file 1 holds each data area size, and if it holds each data area size, each data area size la , lb1.1c, each data storage area 2a on the main storage device 2.

2b、2cを確保する。Secure 2b and 2c.

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

以上説明したように本発明は、プログラムの実行に必要
な主記憶装置上の前記各データ領域サイズをプログラム
ファイル毎に保持し、プログラム実行の際にこのサイズ
に従って主記憶装置上の各データ領域を確保することに
より、実際に使用する領域サイズのみ確保し主記憶装置
を有効に使用できる効果がある。
As explained above, the present invention maintains the size of each data area on the main storage device necessary for program execution for each program file, and stores each data area on the main storage device according to this size when the program is executed. This has the effect of ensuring only the area size that will actually be used and making it possible to use the main storage device effectively.

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

第1図は本発明の一実施例を示すブロック図である。 1・・・プログラムファイル、la・・・データ領域サ
イズ、1b・・・データ領域サイズ、1c・・・データ
領域サイズ、1d・・・プログラムデータ、2・・・主
記憶装置、2a・・・データ格納領域、2b・・・デー
タ格納領域、2C・・・データ格納領域、2d・・・プ
ログラムデータ格納領域。
FIG. 1 is a block diagram showing one embodiment of the present invention. 1...Program file, la...Data area size, 1b...Data area size, 1c...Data area size, 1d...Program data, 2...Main storage device, 2a... Data storage area, 2b...Data storage area, 2C...Data storage area, 2d...Program data storage area.

Claims (1)

【特許請求の範囲】[Claims] インタプリタ方式言語処理プロセッサにおけるメモリ管
理方式において、プログラムファイル毎にプログラムの
実行に必要な各データを格納する主記憶装置上の各デー
タ格納領域のサイズをプログラムファイル内に保持する
手段とプログラム実行時にプログラムファイルに保持さ
れた前記各データ格納領域のサイズに従って主記憶装置
上に各領域を確保する手段とを有することを特徴とする
インタプリタ方式言語処理プロセッサにおけるメモリ管
理方式。
In the memory management method of an interpreted language processing processor, there is a means for retaining the size of each data storage area on the main memory device that stores each data necessary for program execution for each program file, and a method for storing each data storage area in the program file when the program is executed. 1. A memory management system in an interpretive language processing processor, comprising means for securing each area on a main storage device according to the size of each data storage area held in a file.
JP4316690A 1990-02-23 1990-02-23 Memory management system for interpreter type language processing processor Pending JPH03246633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4316690A JPH03246633A (en) 1990-02-23 1990-02-23 Memory management system for interpreter type language processing processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4316690A JPH03246633A (en) 1990-02-23 1990-02-23 Memory management system for interpreter type language processing processor

Publications (1)

Publication Number Publication Date
JPH03246633A true JPH03246633A (en) 1991-11-05

Family

ID=12656294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4316690A Pending JPH03246633A (en) 1990-02-23 1990-02-23 Memory management system for interpreter type language processing processor

Country Status (1)

Country Link
JP (1) JPH03246633A (en)

Similar Documents

Publication Publication Date Title
JPH03246633A (en) Memory management system for interpreter type language processing processor
JPH05113882A (en) Out-fitted man-machine interface realizing system by intermediate file
JPH04178731A (en) Reuse system for method cache information in object oriented processing system
JPH082727Y2 (en) Programmable sequencer
JP2845694B2 (en) Data processing device
JPH01105611A (en) Digital filter
JP2539391B2 (en) Function processor
JPH08272411A (en) Ladder instruction processor
JPS6121532A (en) Scheduling method
JPS63276629A (en) Sorting system for record in file
JPH03242704A (en) Nc data generating method
JPH02165358A (en) Program loading system with learning function
JPS628230A (en) Program specialization system
JPS62120541A (en) Instruction control system
JPH03160547A (en) Input/output buffer control method for data processor
JPS59119459A (en) Garbage collection system
JPS62212743A (en) Memory dump system
JPH0477840A (en) Collection system for fault analysis system
JPH01286053A (en) Data control system over plural types of computers
JPS62285132A (en) Switching system for control module in operating system
JPS5878203A (en) Programmable controller
JPH02266431A (en) Information processor
JPS63126046A (en) Method for managing external storage device
JPS61271552A (en) Program loading system
JPH03139703A (en) Timer instruction processing system of programmable controller