JPH05108462A - Intermediate control system for dynamic memory in table system editor - Google Patents

Intermediate control system for dynamic memory in table system editor

Info

Publication number
JPH05108462A
JPH05108462A JP3272913A JP27291391A JPH05108462A JP H05108462 A JPH05108462 A JP H05108462A JP 3272913 A JP3272913 A JP 3272913A JP 27291391 A JP27291391 A JP 27291391A JP H05108462 A JPH05108462 A JP H05108462A
Authority
JP
Japan
Prior art keywords
memory
area
unit
management
control
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.)
Withdrawn
Application number
JP3272913A
Other languages
Japanese (ja)
Inventor
Sayuri Ishita
さゆ里 井下
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 Solution Innovators Ltd
Original Assignee
NEC Software Hokuriku Ltd
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 Software Hokuriku Ltd filed Critical NEC Software Hokuriku Ltd
Priority to JP3272913A priority Critical patent/JPH05108462A/en
Publication of JPH05108462A publication Critical patent/JPH05108462A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/12Improving ICE efficiencies

Abstract

PURPOSE:To reduce a probability that allocation becomes impossible as much as possible by saving an area as an unuse area adjusted to a unit for the release request of the area and managing the area allocated to a dynamic memory whether it is in the middle of use or it is not used. CONSTITUTION:A memory intermediate management part 5 which controls the dynamic memory 1 based on a previously set unit and manages the area in the middle of use and the area which is not used, a memory control means 4 controlling the whole dynamic memory 1 through the intermediate management part 5 and means which save/release/reuse and secure the memory are provided between an editor control part 2 and the memory control part of a system. The memory secured from the system is managed as the area in the middle of use and is saved as the unuse area adjusted to the unit for the release request of the area. The occurrence of a discontinuous idle area is prevented and the probability that allocation becomes impossible when the series of large area is to be allocated is reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は表形式エディタの内部処
理に関しするものであり、特にエディタ制御部と動的に
確保/解放可能なメモリ(以下動的メモリと言う。)の
制御方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an internal process of a tabular editor, and more particularly to a control method of an editor control unit and a memory that can be dynamically reserved / released (hereinafter referred to as a dynamic memory). Is.

【0002】[0002]

【従来の技術】従来はこの種の表形式エディタにおける
動的メモリの制御方式は、領域割り当て/解放要求に対
し、中間管理することなく、システムのメモリ制御部に
任せる方式となっていた。
2. Description of the Related Art Conventionally, a dynamic memory control system in this type of table format editor has been a system in which an area allocation / release request is left to the system memory control unit without intermediate management.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の動的メ
モリの制御方式は、システムのメモリ制御部に任せる方
式のため、大きさがまちまちである領域の割り当て/解
放を繰り返す場合、メモリの空き領域が不連続に並んで
しまい、一連の大きな領域を割り当てようとする場合、
割り当て不可能になる確率が大きいという欠点がある。
The above-mentioned conventional dynamic memory control method is a method of leaving it to the memory control unit of the system. Therefore, when the allocation / release of the areas having different sizes is repeated, the free memory becomes available. If the areas are discontinuously arranged and you try to allocate a series of large areas,
There is a drawback that there is a high probability that allocation will not be possible.

【0004】従って本発明は一連の大きな領域を割り当
てるときに、割り当てが不可能に成る確率を可及的に小
さくした動的メモリの制御方式を提供しようとするもの
である。
Therefore, the present invention seeks to provide a dynamic memory control method in which, when a series of large areas are allocated, the probability that allocation becomes impossible is minimized.

【0005】[0005]

【課題を解決するための手段】本発明によれば、エディ
タ制御部と動的に確保/解放可能な動的メモリを制御す
るシステムのメモリ制御部を備え、大きさが固定に決ま
らない領域の割り当てを実現する表形式エディタにおい
て、前記エディタ制御部とシステムのメモリ制御部の間
に、前記動的メモリを予め設定しておいた単位に基づい
て制御しながら使用中領域および未使用領域を管理する
機能とメモリの退避、解放、再利用および確保する機能
とを備え、システムから確保したメモリは使用中領域と
して管理しておき、領域の解放要求に対しては単位に見
合った未使用領域として退避しておき、動的メモリに割
り当てた領域について使用中か未使用かで管理しておく
ことにより、続く領域割り当、て要求に対して、要求領
域大きさに見合った単位で管理されている未使用領域が
存在する場合は、その領域を再利用して動的メモリ内に
領域を割り当てることを特徴とする、表形式エディタに
おける動的メモリの中間制御方式が得られる。
According to the present invention, an editor control section and a memory control section of a system for controlling a dynamically allocable / releasable dynamic memory are provided, and an area whose size is not fixed is determined. In a tabular editor that realizes allocation, manages a used area and an unused area while controlling the dynamic memory between the editor control unit and the system memory control unit based on a preset unit. It has a function to store and release, release, reuse, and secure the memory, and the memory secured from the system is managed as an in-use area, and in response to an area release request, it is set as an unused area commensurate with the unit. Evacuate and manage the area allocated to the dynamic memory depending on whether it is in use or unused, so that the size of the required area can be matched to the subsequent area allocation and request. If there is an unused area that is managed in units, it is possible to reuse the area and allocate the area in the dynamic memory. ..

【0006】また本発明によれば、エディタ制御部と動
的に確保/解放可能な動的メモリを制御するシステムの
メモリ制御部を備え、大きさが固定に決まらない領域の
割り当てを実現する表形式エディタにおいて、前記エデ
ィタ制御部とシステムのメモリ制御部の間に、メモリを
有効に活用するために定めた単位を格納する単位格納テ
ーブルと、この単位格納テーブルと要素毎に対応して使
用中のメモリおよび退避した未使用のメモリをそれぞれ
管理する使用中領域管理部および未使用領域管理部とを
有するメモリ中間管理部と、該中間管理部を通して動的
メモリ全般の制御を行うメモリ制御手段と、前記動的メ
モリを確保/開放する大きさを、段階的に定めた単位で
管理し、メモリを単位毎に制御できるよう前記メモリ制
御手段を援助する単位メモリ制御手段と、領域割り当て
要求に対して、前記メモリ中間管理部の管理下にあるメ
モリを割り当てることが不可能な場合、前記システムの
メモリ制御部を通して動的メモリを確保し、確保した領
域を前記使用中領域管理部の管理下に置き、要求に応え
るメモリ確保手段と、前記単位メモリ制御手段の出力を
もとに前記メモリ中間管理部を参照した結果割り当て要
求に相当する領域が前記未使用領域管理部の管理下に存
在する場合、要求に相当する領域を該未使用管理部の管
理下から前記使用中領域管理部の管理下に移動させ、要
求に応えるメモリ再利用手段と、領域割り当て要求に対
して、解放要求のあった領域を使用中領域管理部の管理
下から未使用領域管理部の管理下へ移動させて再利用を
可能とするメモリ退避手段と、前記メモリ中間管理部の
管理下にあるメモリを前記システムのメモリ制御部を通
して実際に解放するメモリ解放手段とを有することを特
徴とする、表形式エディタにおける動的メモリの中間制
御方式が得られる。
Further, according to the present invention, a table that includes an editor control unit and a memory control unit of a system that controls a dynamic memory that can be dynamically secured / released and realizes allocation of areas whose size is not fixed In the format editor, between the editor control unit and the memory control unit of the system, a unit storage table for storing a unit defined for effective use of the memory, and a unit storage table and a unit storage table in use corresponding to each element Memory management unit having a used area management unit and an unused area management unit for managing the respective memory and the saved unused memory, and a memory control unit for controlling overall dynamic memory through the intermediate management unit. , Managing the size of securing / releasing the dynamic memory in units that are determined stepwise, and assisting the memory control means so that the memory can be controlled for each unit Memory control means and the area allocation request, when it is impossible to allocate the memory under the control of the memory intermediate management section, a dynamic memory is secured through the memory control section of the system, and the secured area is secured. Under the control of the in-use area management unit, and the area corresponding to the result allocation request that refers to the memory intermediate management unit based on the output of the memory securing unit and the unit memory control unit that responds to the request When it is under the management of the used area management unit, the area corresponding to the request is moved from the management of the unused management section to the management of the in-use area management section, and a memory reusing unit that responds to the request, and an area In response to the allocation request, the memory saving means for moving the area for which the release request has been made from the management of the in-use area management unit to the management of the unused area management unit and enabling reuse. And having a memory release means for actually release memory under the control of the memory middle management unit through the memory control unit of the system, an intermediate control method for dynamic memory in table format editor is obtained.

【0007】更に本発明によれば、前記動的メモリ上の
割り当て領域が、領域内容部と、次の割り当て領域を参
照するための番地を格納する一連番地格納部および前記
単位格納テーブル参照用の識別子を格納する単位識別子
格納部とを有する管理情報部とを有していることを特徴
とする、請求項2の表形式エディタにおける動的メモリ
の中間制御方式が得られる。
Further, according to the present invention, the allocation area on the dynamic memory is used for referring to the area content section, a series address storage section for storing an address for referring to the next allocation area, and the unit storage table. According to another aspect of the present invention, there is provided a management information section having a unit identifier storage section for storing an identifier and a dynamic memory intermediate control method in a tabular editor according to claim 2.

【0008】[0008]

【実施例】図1は、本発明の一実施例の構成を表す図で
あり、動的メモリ1と、エディタ制御部2と、システム
のメモリ制御部3と、メモリ制御手段4と、メモリ中間
管理部5と、単位メモリ制御手段6と、メモリ再利用手
段7と、メモリ確保手段8と、メモリ退避手段9と、メ
モリ解放手段10とで構成されている。
1 is a diagram showing the configuration of an embodiment of the present invention, in which a dynamic memory 1, an editor control unit 2, a system memory control unit 3, a memory control unit 4 and a memory intermediate unit are provided. The management unit 5, the unit memory control unit 6, the memory reuse unit 7, the memory securing unit 8, the memory saving unit 9, and the memory releasing unit 10 are included.

【0009】図2は動的メモリ1とメモリ中間管理部5
間におけるメモリの中間管理形式を説明する図である。
メモリ中間管理部5は、メモリを有効に活用するために
定めた単位を格納した単位格納テーブル50と、未使用
領域管理部51と、使用中領域管理部52とで構成さ
れ、未使用領域管理部51及び使用中領域管理部52
は、単位格納テーブル50と各要素(ここでは単位)毎
に対応している。
FIG. 2 shows a dynamic memory 1 and a memory intermediate management unit 5.
It is a figure explaining the intermediate management format of the memory in between.
The memory intermediate management unit 5 is composed of a unit storage table 50 that stores units defined for effectively utilizing the memory, an unused area management unit 51, and a used area management unit 52. Section 51 and in-use area management section 52
Corresponds to the unit storage table 50 and each element (here, unit).

【0010】一方、動的メモリ1上の各割り当て領域1
1は、一連番地格納部121と単位識別子格納部122
からなる管理情報部12と、領域内容部13とで構成さ
れる。一連番地格納部121には次の割り当て領域11
を参照するための番地が格納され、単位識別子格納部1
22には単位格納テーブル50参照用の識別子が格納さ
れる。
On the other hand, each allocation area 1 on the dynamic memory 1
1 is a series address storage unit 121 and a unit identifier storage unit 122.
It is composed of a management information section 12 consisting of and an area content section 13. The next allocation area 11 is stored in the series address storage unit 121.
The address for referencing is stored in the unit identifier storage unit 1
22 stores an identifier for referring to the unit storage table 50.

【0011】動的メモリ1に割り当てた割り当て領域
(確保した1領域分)11は、管理情報部12を通して
一連管理が単位毎に行われる。この一連管理の先頭割り
当て領域11の番地を未使用領域管理部51及び使用中
領域管理部52が覚えておくことにより、単位毎のメモ
リ管理を実現する。
The allocated area (one reserved area) 11 allocated to the dynamic memory 1 is serially managed for each unit through the management information unit 12. The unused area management unit 51 and the in-use area management unit 52 remember the address of the head allocation area 11 of this series of management, thereby realizing memory management for each unit.

【0012】図3はエディタ制御部1からの要求に対す
るメモリ中間制御方式を示す図であり、その詳細を図4
から図7を用いて具体的に説明する。説明にあたり、メ
モリ単位は、予め100、200、300バイトの3種
類と決め、各割り当て領域11に付加する管理情報部1
2は10バイトを占めることとする。
FIG. 3 is a diagram showing a memory intermediate control system in response to a request from the editor control unit 1, the details of which are shown in FIG.
It will be specifically described with reference to FIG. In the description, the memory unit is determined in advance as three types of 100, 200, and 300 bytes, and the management information unit 1 to be added to each allocation area 11 is used.
2 occupies 10 bytes.

【0013】(ステップ1):領域Aは管理情報部12
の付加を考慮すると最低90バイトを要する。この数値
から、領域Aをメモリ中間管理部5内で扱うための最適
単位を、図2の単位格納テーブル50内から求めると、
1番目の要素:100バイトになる。単位が確定する
と、割り当て要求なので、未使用領域管理部51を参照
して、再利用できる割り当て領域11の有無を確認す
る。図4の場合、未使用領域管理部51で管理している
単位(100バイト)に相当する割り当て領域11は無
い(1番目の要素がNULL)ので動的メモリ1より1
00バイト分のメモリを確保し領域Aとする。確保した
メモリの番地を、使用中領域管理部52の1番目の要素
に格納し、領域Aを使用中領域管理部52の管理下に置
く。尚、領域Aに付加されている管理情報部12中の一
連番地格納部121には、続く割り当て領域11がない
ことから終わりを示すNULLを、単位識別子格納部1
22には、単位(100バイト)が単位格納テーブル5
0の1番目の要素であることから、1を格納しておく。
図4は、ステップ1後のメモリ中間管理状態を示す。
(Step 1): Area A is the management information section 12
Considering the addition of, at least 90 bytes are required. From this numerical value, the optimum unit for handling the area A in the memory intermediate management unit 5 is obtained from the unit storage table 50 in FIG.
First element: 100 bytes. When the unit is fixed, since it is an allocation request, the unused area management unit 51 is referred to and the presence or absence of the reusable allocation area 11 is confirmed. In the case of FIG. 4, since there is no allocation area 11 corresponding to the unit (100 bytes) managed by the unused area management unit 51 (the first element is NULL), 1 is allocated from the dynamic memory 1.
A memory for 00 bytes is reserved and designated as an area A. The address of the secured memory is stored in the first element of the in-use area management unit 52, and the area A is placed under the management of the in-use area management unit 52. In the serial address storage unit 121 in the management information unit 12 added to the area A, NULL indicating the end because there is no subsequent allocation area 11 is set as the unit identifier storage unit 1.
In 22, the unit (100 bytes) is the unit storage table 5.
Since it is the first element of 0, 1 is stored.
FIG. 4 shows the memory intermediate management state after step 1.

【0014】(ステップ2,3):領域B及びCをメモ
リ中間管理部5内で扱うための最適単位は、それぞれ3
00バイト(単位格納テーブル50の3番目の要素)、
200バイト(単位格納テーブル50の2番目の要素)
である。ステップ1と同様に、再利用する割り当て領域
11がないので動的メモリ1よりメモリを確保し、領域
B及びCを割り当てる。図5は、ステップ3後のメモリ
中間管理状態を示す。
(Steps 2 and 3): The optimum units for handling the areas B and C in the memory intermediate management unit 5 are 3 respectively.
00 bytes (the third element of the unit storage table 50),
200 bytes (second element of unit storage table 50)
Is. Similar to step 1, since there is no allocation area 11 to be reused, a memory is secured from the dynamic memory 1 and areas B and C are allocated. FIG. 5 shows the intermediate memory management state after step 3.

【0015】(ステップ4):領域Bに付加されている
管理情報部12の単位識別子格納部122の値:3で単
位格納テーブル50を参照することから、単位が300
バイトであることがわかる。解放要求であることより、
領域Bを使用中領域管理部52の管理下から切り放し、
未使用領域管理部51の管理下に置き直す。使用中領域
管理部52の管理下からの切り放し処理は、使用中領域
管理部52の3番目の要素から一連番地をたどり、一連
番地格納部121の値が領域Bに相当する番地を示した
ところを、領域Bに付加された一連番地格納部121の
値に置き換えることで実現する。一方、未使用領域管理
部51の管理下への置き直し処理は、領域Bに付加され
た一連番地格納部121に未使用領域管理部51の3番
目の要素を格納し、未使用領域管理部51の3番目の要
素は領域Bに相当する番地を格納し直すことで実現す
る。図6は、ステップ4後のメモリ中間管理状態を示
す。
(Step 4): The value of the unit identifier storage section 122 of the management information section 12 added to the area B is 3: The unit storage table 50 is referred to, so that the unit is 300.
It turns out that it is a part-time job. Since it is a release request,
The area B is cut off from under the management of the in-use area management unit 52,
The unused area management unit 51 replaces it. In the release processing from the under management of the in-use area management unit 52, a series address is traced from the third element of the in-use area management unit 52, and the value of the series address storage unit 121 indicates an address corresponding to the area B. Is replaced with the value of the series address storage unit 121 added to the area B. On the other hand, in the rearrangement process under the management of the unused area management unit 51, the third element of the unused area management unit 51 is stored in the series address storage unit 121 added to the area B, and the unused area management unit 51 is stored. The third element of 51 is realized by re-storing the address corresponding to the area B. FIG. 6 shows the memory intermediate management state after step 4.

【0016】(ステップ5):領域Dをメモリ中間管理
部5内で扱うための最適単位は、100バイト(単位格
納テーブル50の1番目の要素)である。ステップ1と
同様に、再利用する割り当て領域11がないので動的メ
モリ1よりメモリを確保し、領域Dを割り当てる。領域
Dは使用中領域管理部52の1番目の要素の管理下に追
加する。この時領域Bとして割り当てられていた300
バイトは、ステップ4で説明した通り、実際にシステム
のメモリ制御部3に対してメモリ解放を指示していない
ため、メモリ確保は他の空きメモリより新しく確保する
ことになる。
(Step 5): The optimum unit for handling the area D in the memory intermediate management unit 5 is 100 bytes (the first element of the unit storage table 50). Similar to step 1, since there is no allocation area 11 to be reused, a memory is secured from the dynamic memory 1 and the area D is allocated. The area D is added under the control of the first element of the in-use area management unit 52. 300 allocated as area B at this time
As described in step 4, since the byte has not actually instructed the memory control unit 3 of the system to release the memory, the memory is secured more newly than other free memory.

【0017】(ステップ6):領域Eをメモリ中間管理
部5内で扱うための最適単位は、300バイト(単位格
納テーブル50の3番目の要素)である。割り当て要求
なので、未使用領域管理部51を参照して、再利用でき
る割り当て領域11の有無を確認する。図6の場合、未
使用領域管理部51で管理している単位(300バイ
ト)に相当する割り当て領域11が存在するので、その
割り当て領域11を未使用領域管理部51の管理下から
切り放し、使用中領域管理部52の管理下に置き、再利
用する。未使用領域管理部51の管理下からの切り放し
処理は、未使用領域管理部51の3番目の要素を、領域
Eの番地として、未使用領域管理部51の3番目の要素
が示す割り当て領域11の一連番地格納部121の値
を、新たに未使用領域管理部51の3番目の要素に置き
換えることで実現する。一方、領域Eの再利用管理処理
は、領域Eに付加された一連番地格納部121に使用中
領域管理部52の3番目の要素を格納し、使用中領域管
理部52の3番目の要素は領域Eに相当する番地を格納
し直すことで実現する。図7は、ステップ6後のメモリ
中間管理状態を示す。
(Step 6): The optimum unit for handling the area E in the memory intermediate management unit 5 is 300 bytes (the third element of the unit storage table 50). Since it is an allocation request, the unused area management unit 51 is referred to check whether or not there is a reusable allocation area 11. In the case of FIG. 6, since the allocation area 11 corresponding to the unit (300 bytes) managed by the unused area management unit 51 exists, the allocation area 11 is cut off from the management of the unused area management unit 51 and used. It is placed under the management of the medium area management unit 52 and reused. The cut-off processing from under the control of the unused area management unit 51 is performed by assigning the allocation area 11 indicated by the third element of the unused area management unit 51 with the third element of the unused area management unit 51 as the address of the area E. It is realized by newly replacing the value of the serial address storage unit 121 of No. 3 with the third element of the unused area management unit 51. On the other hand, in the reuse management processing of the area E, the third element of the used area management unit 52 is stored in the series address storage unit 121 added to the area E, and the third element of the used area management unit 52 is It is realized by re-storing the address corresponding to the area E. FIG. 7 shows the intermediate memory management state after step 6.

【0018】(ステップ7):最後に、メモリ中間管理
部5内で管理されている全メモリの解放は、未使用領域
管理部51及び使用中領域管理部52の管理下にある領
域を各単位毎に一連参照し、メモリ解放していくことで
実現する。
(Step 7): Finally, in order to release all the memories managed in the memory intermediate management unit 5, the areas under the management of the unused area management unit 51 and the in-use area management unit 52 are divided into units. It is realized by referring to each series and releasing the memory.

【0019】[0019]

【発明の効果】以上説明したように、本発明では、動的
メモリを諸々の場合で算出した不特定な値のまま確保/
解放するのではなく、動的メモリを有効に使用するため
に確保/解放する大きさを段階的に定めた単位で管理
し、領域解放要求に対し、実際にシステムのメモリ制御
を通して解放してしまうのではなく、次の割り当て要求
に備えて再利用(未使用)領域として退避しておくこと
により、不連続な空き領域発生の防止と、一連の大きな
領域を割り当てようとする場合に割り当て不可能になる
確率を小さくすることができるという効果がある。
As described above, according to the present invention, the dynamic memory is secured as an unspecified value calculated in various cases.
Instead of releasing, the size to secure / release in order to effectively use the dynamic memory is managed in a stepwise defined unit, and in response to a region release request, it is actually released through system memory control. Instead of saving, as a reusable (unused) area in preparation for the next allocation request, discontinuity of free space is prevented and allocation is impossible when a series of large areas are to be allocated. This has the effect of reducing the probability that

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

【図1】本発明のメモリの中間管理形式の全体構成図で
ある。
FIG. 1 is an overall configuration diagram of an intermediate management format of a memory of the present invention.

【図2】本発明におけるメモリの中間管理形式を示す図
である。
FIG. 2 is a diagram showing an intermediate management format of a memory according to the present invention.

【図3】本発明のメモリ中間制御方式の一実施例を説明
する図である。
FIG. 3 is a diagram illustrating an embodiment of a memory intermediate control system of the present invention.

【図4】本発明のステップ1後のメモリ中間管理状態を
示す図である。
FIG. 4 is a diagram showing a memory intermediate management state after step 1 of the present invention.

【図5】本発明のステップ2,3後のメモリ中間管理状
態を示す図である。
FIG. 5 is a diagram showing a memory intermediate management state after steps 2 and 3 of the present invention.

【図6】本発明のステップ4後のメモリ中間管理状態を
示す図である。
FIG. 6 is a diagram showing a memory intermediate management state after step 4 of the present invention.

【図7】本発明のステップ6後のメモリ中間管理状態を
示す図である。
FIG. 7 is a diagram showing a memory intermediate management state after step 6 of the present invention.

【符号の説明】[Explanation of symbols]

1 動的メモリ 11 割り当て領域(1領域分) 12 管理情報部 121 一連番地格納部 122 単位識別子格納部 13 領域内容部 2 エディタ制御部 3 システムのメモリ制御部 4 メモリ制御手段 5 メモリ中間管理部 50 単位格納テーブル 51 未使用領域管理部 52 使用中領域管理部 6 単位メモリ制御手段 7 メモリ再利用手段 8 メモリ確保手段 9 メモリ退避手段 10 メモリ解放手段 DESCRIPTION OF SYMBOLS 1 dynamic memory 11 allocation area (for 1 area) 12 management information section 121 series address storage section 122 unit identifier storage section 13 area content section 2 editor control section 3 system memory control section 4 memory control means 5 memory intermediate management section 50 Unit storage table 51 Unused area management unit 52 In-use area management unit 6 Unit memory control means 7 Memory reuse means 8 Memory securing means 9 Memory saving means 10 Memory releasing means

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 エディタ制御部と動的に確保/解放可能
な動的メモリを制御するシステムのメモリ制御部を備
え、大きさが固定に決まらない領域の割り当てを実現す
る表形式エディタにおいて、 前記エディタ制御部とシステムのメモリ制御部の間に、
前記動的メモリを予め設定しておいた単位に基づいて制
御しながら使用中領域および未使用領域を管理する機能
とメモリの退避、解放、再利用および確保する機能とを
備え、システムから確保したメモリは使用中領域として
管理しておき、領域の解放要求に対しては単位に見合っ
た未使用領域として退避しておき、動的メモリに割り当
てた領域について使用中か未使用かで管理しておくこと
により、続く領域割り当て要求に対して、要求領域大き
さに見合った単位で管理されている未使用領域が存在す
る場合は、その領域を再利用して動的メモリ内に領域を
割り当てることを特徴とする、表形式エディタにおける
動的メモリの中間制御方式。
1. A table format editor, comprising an editor control unit and a system memory control unit for dynamically controlling a dynamically allocable / releasable dynamic memory, for allocating an area whose size is not fixed. Between the editor control and the system memory control,
Secured from the system with the function of managing the used area and the unused area while controlling the dynamic memory based on a preset unit, and the function of saving, releasing, reusing and securing the memory. The memory is managed as an in-use area, and is saved as an unused area commensurate with the unit in response to an area release request, and the area allocated to dynamic memory is managed as being in use or unused. By setting this, if there is an unused area that is managed in units that match the size of the requested area for subsequent area allocation requests, reclaim that area and allocate the area in dynamic memory. An intermediate control method for dynamic memory in a tabular editor.
【請求項2】 エディタ制御部と動的に確保/解放可能
な動的メモリを制御するシステムのメモリ制御部を備
え、大きさが固定に決まらない領域の割り当てを実現す
る表形式エディタにおいて、前記エディタ制御部とシス
テムのメモリ制御部の間に、 メモリを有効に活用するために定めた単位を格納する単
位格納テーブルと、この単位格納テーブルと要素毎に対
応して使用中のメモリおよび退避した未使用のメモリを
それぞれ管理する使用中領域管理部および未使用領域管
理部とを有するメモリ中間管理部と、 該中間管理部を通して動的メモリ全般の制御を行うメモ
リ制御手段と、 前記動的メモリを確保/開放する大きさを、段階的に定
めた単位で管理し、メモリを単位毎に制御できるよう前
記メモリ制御手段を援助する単位メモリ制御手段と、 領域割り当て要求に対して、前記メモリ中間管理部の管
理下にあるメモリを割り当てることが不可能な場合、前
記システムのメモリ制御部を通して動的メモリを確保
し、確保した領域を前記使用中領域管理部の管理下に置
き、要求に応えるメモリ確保手段と、 前記単位メモリ制御手段の出力をもとに前記メモリ中間
管理部を参照した結果、割り当て要求に相当する領域が
前記未使用領域管理部の管理下に存在する場合、要求に
相当する領域を該未使用管理部の管理下から前記使用中
領域管理部の管理下に移動させ、要求に応えるメモリ再
利用手段と、 領域割り当て要求に対して、解放要求のあった領域を使
用中領域管理部の管理下から未使用領域管理部の管理下
へ移動させて再利用を可能とするメモリ退避手段と、 前記メモリ中間管理部の管理下にあるメモリを前記シス
テムのメモリ制御部を通して実際に解放するメモリ解放
手段とを有することを特徴とする、表形式エディタにお
ける動的メモリの中間制御方式。
2. A table format editor which comprises an editor control unit and a memory control unit of a system for controlling dynamically reservable / releasable dynamic memory, and which realizes allocation of an area whose size is not fixed. Between the editor control unit and the system memory control unit, a unit storage table that stores the units defined for effective use of the memory, and the unit storage table and the memory currently in use and saved corresponding to each element A memory intermediate management unit having a used area management unit and an unused area management unit for managing each unused memory; a memory control unit for controlling overall dynamic memory through the intermediate management unit; A unit memory control means for managing the size of securing / releasing the memory in a stepwise determined unit and assisting the memory control means so that the memory can be controlled for each unit. When it is impossible to allocate the memory under the control of the memory intermediate management unit to the area allocation request, the dynamic memory is secured through the memory control unit of the system, and the secured area is being used As a result of referring to the memory securing unit that responds to the request under the management of the region management unit and the memory intermediate management unit based on the output of the unit memory control unit, the region corresponding to the allocation request is the unused region management unit. If it is under the control of the department, the area corresponding to the request is moved from under the management of the unused management section to under the management of the in-use area management section, and the memory reusing means for responding to the request and the area allocation request On the other hand, a memory saving unit that moves the area requested to be released from the management of the in-use area management unit to the management of the unused area management unit and enables reuse, and the memory intermediate management And a memory releasing means for actually releasing the memory under the control of the section through the memory control section of the system.
【請求項3】 前記動的メモリ上の割り当て領域が、領
域内容部と、次の割り当て領域を参照するための番地を
格納する一連番地格納部および前記単位格納テーブル参
照用の識別子を格納する単位識別子格納部からなる管理
情報部とを有していることを特徴とする、請求項2の表
形式エディタにおける動的メモリの中間制御方式。
3. A unit in which an allocation area on the dynamic memory stores an area content section, a series address storage section for storing an address for referring to the next allocation area, and an identifier for referring to the unit storage table. 3. An intermediate control system for a dynamic memory in a tabular editor according to claim 2, further comprising a management information section comprising an identifier storage section.
JP3272913A 1991-10-21 1991-10-21 Intermediate control system for dynamic memory in table system editor Withdrawn JPH05108462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3272913A JPH05108462A (en) 1991-10-21 1991-10-21 Intermediate control system for dynamic memory in table system editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3272913A JPH05108462A (en) 1991-10-21 1991-10-21 Intermediate control system for dynamic memory in table system editor

Publications (1)

Publication Number Publication Date
JPH05108462A true JPH05108462A (en) 1993-04-30

Family

ID=17520502

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3272913A Withdrawn JPH05108462A (en) 1991-10-21 1991-10-21 Intermediate control system for dynamic memory in table system editor

Country Status (1)

Country Link
JP (1) JPH05108462A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007523412A (en) * 2004-02-13 2007-08-16 ジャルナ エスアー Memory allocation
WO2008016081A1 (en) * 2006-08-04 2008-02-07 Panasonic Corporation Memory controller, nonvolatile memory device, access device, and nonvolatile memory system
JP2011243196A (en) * 2010-05-14 2011-12-01 Samsung Electronics Co Ltd Memory management device and method considering user response time

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007523412A (en) * 2004-02-13 2007-08-16 ジャルナ エスアー Memory allocation
WO2008016081A1 (en) * 2006-08-04 2008-02-07 Panasonic Corporation Memory controller, nonvolatile memory device, access device, and nonvolatile memory system
JPWO2008016081A1 (en) * 2006-08-04 2009-12-24 パナソニック株式会社 MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, ACCESS DEVICE, AND NONVOLATILE STORAGE SYSTEM
US8112575B2 (en) 2006-08-04 2012-02-07 Panasonic Corporation Memory controller, nonvolatile memory device, access device, and nonvolatile memory system
JP2011243196A (en) * 2010-05-14 2011-12-01 Samsung Electronics Co Ltd Memory management device and method considering user response time
US9223689B2 (en) 2010-05-14 2015-12-29 Samsung Electronics Co., Ltd. Apparatus and method for managing memory

Similar Documents

Publication Publication Date Title
JPH05108462A (en) Intermediate control system for dynamic memory in table system editor
JPH06214874A (en) Memory managing system
JP2787835B2 (en) Print processing method and apparatus
JPH03265948A (en) Buffer pool controller
JPH01191221A (en) Dynamic assignment managing system for magnetic disk area
JPH03138737A (en) Large-scale file generating device
JP2566935B2 (en) Data processing device
JPH04219836A (en) Block control system
JPH05257704A (en) Memory area managing system
JPH1049433A (en) Memory storage system
JPH0452968B2 (en)
JPH07200401A (en) Dynamic variation system for auxiliary storage capacity
JPH1069429A (en) Device and program for buffer allocation management
JPH11175358A (en) Automatic allocation device for storage device
JPH05120094A (en) File managing system
JP3353312B2 (en) Memory area management method
JPH02193231A (en) File space free area management system
JPH0398128A (en) Serial number control system
JPH05210548A (en) Program dynamic storing system
JPH07225738A (en) Managing method for reception buffer and communication equipment
JP2000347939A (en) System and method for managing memory
KR100489044B1 (en) Multi package management method
JPH08153037A (en) Data management system in sequential area
JPS5817587A (en) Blank area controller for main memory
JP2003085036A (en) Memory management method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990107