JPH09160823A - Area managing and controlling device for memory in electronic equipment - Google Patents

Area managing and controlling device for memory in electronic equipment

Info

Publication number
JPH09160823A
JPH09160823A JP34741795A JP34741795A JPH09160823A JP H09160823 A JPH09160823 A JP H09160823A JP 34741795 A JP34741795 A JP 34741795A JP 34741795 A JP34741795 A JP 34741795A JP H09160823 A JPH09160823 A JP H09160823A
Authority
JP
Japan
Prior art keywords
area
data
memory
management table
free
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
JP34741795A
Other languages
Japanese (ja)
Inventor
Nobuo Mizutani
宣夫 水谷
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP34741795A priority Critical patent/JPH09160823A/en
Publication of JPH09160823A publication Critical patent/JPH09160823A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To retrieve an usable free area at a high speed in managing and controlling of the plural areas of a memory which is provided in an electronic equipment. SOLUTION: In a free area managing table memory 25b, area size data, a free area head address and a free area table where the head address of the preceding free area being adjacent to the precedent side and the head address of the succeeding free area being adjacent to the following side are made into a table are stored at every area concerning the free area which is not under usage within the plural areas of a work memory 25c. Then, at the time of necessity for using the memory, the free area table is retrieved at first, the free area of a requested area size YS is searched at a high speed and, after that, the free area managing table memory 25b and a whole area managing table memory 25a are updated.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プリンタやファク
シミリ装置等の電子機器に設けられたメモリの領域管理
制御装置に関し、特にそのメモリの管理対象の全部の領
域のうちの空き領域を管理する空き領域管理テーブルを
検索することで、空き領域の検索速度を高速化するよう
にしたものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an area management control apparatus for a memory provided in an electronic device such as a printer or a facsimile machine, and more particularly to a free area for managing an empty area of all areas to be managed by the memory. The present invention relates to a method for speeding up the search speed of an empty area by searching the area management table.

【0002】[0002]

【従来の技術】従来、レーザプリンタなどの各種のプリ
ンタは、大型のコンピュータやパーソナルコンピュータ
などのホストコンピュータに接続され、このホストコン
ピュータから送信される画像データやテキストデータを
受信し、これら画像データやテキストデータをドットパ
ターンデータに展開する一方、そのドットパターンデー
タに基づいて印字用紙に印字するように構成されてい
る。ところで、一般的に、このプリンタの制御装置内に
は、揮発性のメモリからなるRAMが設けられ、このR
AMには、ホストコンピュータから送信された、画像デ
ータだけでなく、文字印字の為のフォントデータを記憶
するとともに、印字データに基づいて印字可能なドット
パターンデータに展開したドットイメージデータを記憶
するようになっている。
2. Description of the Related Art Conventionally, various printers such as a laser printer are connected to a host computer such as a large computer or a personal computer, receive image data or text data transmitted from the host computer, and receive the image data or the image data. The text data is expanded into dot pattern data, and the dot pattern data is printed on the printing paper. By the way, in general, a RAM composed of a volatile memory is provided in the control device of the printer.
In the AM, not only the image data sent from the host computer but also the font data for character printing are stored, and the dot image data expanded into printable dot pattern data based on the print data is also stored. It has become.

【0003】この場合、ホストコンピュータから受信し
た各種のデータや展開したドットイメージデータを、R
AMに割当られた所定のデータ記憶領域に連続させて記
憶するように記憶制御する場合が多い。ここで、一般的
には、このデータ記憶領域を管理対象の領域として、各
領域毎の、領域サイズのデータと、使用中か否かの識別
データと、領域を特定する先頭アドレスとをテーブル化
した全領域管理テーブルが別途設けられている。
In this case, various data received from the host computer and the expanded dot image data are stored in the R
In many cases, storage control is performed so that the data is continuously stored in a predetermined data storage area assigned to the AM. Here, in general, this data storage area is used as an area to be managed, and area size data for each area, identification data indicating whether the area is in use, and a start address for identifying the area are tabulated. An all area management table is provided separately.

【0004】そして、データの書き込みに際しては、先
ずデータ記憶領域に書き込み可能な空き領域の有無を検
索することになるが、その場合、その全領域管理テーブ
ルのデータに基づいて、使用中の領域や空き状態の領域
を含み、その先頭領域から各領域毎に、使用中か否かの
使用状況を検索し、空き状態のときには、その空き領域
の領域サイズを求め、書き込み可能か否かを判定すると
いう、これら一連の検索制御を順次実行し、書き込み可
能な空き領域を検出したときには、データを書き込む為
の新規の領域をデータ記憶領域内に確保するとともに、
全領域管理テーブルの該当するデータを更新して、全領
域管理テーブルにも、その新規の領域を「使用中」とし
て登録するようになっている。一方、不要になったデー
タについては、そのデータ記憶領域から消去されるとと
もに、全領域管理テーブルにも、その消去されたデータ
が専有していた領域を「空き領域」として登録するよう
になっている。
At the time of writing data, first, the presence or absence of a writable free area in the data storage area is searched for. In that case, based on the data in the total area management table, the area in use and Including the empty area, the usage status of whether or not it is in use is searched for each area from the top area, and when it is empty, the area size of the empty area is obtained and it is determined whether or not it is writable. That is, these series of search controls are sequentially executed, and when a writable free area is detected, a new area for writing data is secured in the data storage area, and
The corresponding data in the all area management table is updated, and the new area is also registered in the all area management table as "in use". On the other hand, unnecessary data is erased from the data storage area, and the area occupied by the erased data is registered in the all area management table as an "empty area". There is.

【0005】[0005]

【発明が解決しようとする課題】前述したように、ホス
トコンピュータから受信した各種のデータや展開したド
ットイメージデータを、RAMに割当られた所定のデー
タ記憶領域に書き込みする為の書き込み可能な空き領域
の検索に際しては、その全領域管理テーブルのデータに
基づいて、その先頭領域から、「使用中」の領域を含む
各領域毎に、使用状況を検索し、空き状態のときには、
その空き領域の領域サイズを求め、書き込み可能か否か
を判定するという、これら一連の検索制御を順次実行す
るようになっているので、「使用中」の領域を含む検索
対象の領域数が多いことから、空き領域の検索制御が長
期化するという問題がある。特に、データ記憶領域のメ
モリ容量が大きく且つ空き領域がデータ記憶領域の末尾
側に設けられているような場合には、検索対象の領域数
が非常に多くなり、検索制御に数秒から数十秒を要する
ことになる。
As described above, a writable empty area for writing various data received from the host computer and expanded dot image data into a predetermined data storage area assigned to the RAM. At the time of searching, based on the data of the all area management table, the usage status is searched from the top area for each area including the "in use" area, and when the area is empty,
Since a series of these search controls are performed in order to determine the area size of the free area and determine whether it is writable, the number of search target areas including the "in use" area is large. Therefore, there is a problem that the search control of the free area is prolonged. In particular, when the memory capacity of the data storage area is large and a free area is provided on the end side of the data storage area, the number of search target areas becomes very large, and the search control requires several seconds to several tens of seconds. Will be required.

【0006】本発明の目的は、電子機器に設けられてい
るメモリに有する複数の領域の管理制御において、デー
タの書き込み可能な空き領域の検索制御の高速化を図れ
るような電子機器におけるメモリの領域管理制御装置を
提供することである。
An object of the present invention is to provide an area of a memory in an electronic device that can speed up search control of a data writable empty area in management control of a plurality of areas included in a memory provided in the electronic device. It is to provide a management control device.

【0007】[0007]

【課題を解決するための手段】請求項1に係る電子機器
におけるメモリの領域管理制御装置は、プリンタやファ
クシミリ装置等の電子機器におけるメモリの領域管理制
御装置であって、領域サイズが可変の複数の領域を有す
るメモリにおける複数の領域を管理する領域管理制御装
置において、管理対象の全部の領域について、各領域毎
の、領域サイズのデータと使用中か否かの識別データと
領域特定用の1又は複数の先頭アドレスのデータとをテ
ーブル化した全領域管理テーブルと、何れかの領域の領
域サイズや使用状況の変更に応じて、全領域管理テーブ
ルの該当するデータを更新する全領域管理テーブル更新
手段と、管理対象の領域のうちの使用中でない空き領域
について、各領域毎の、領域サイズのデータと領域特定
用の1又は複数の先頭アドレスのデータとをテーブル化
した空き領域管理テーブルと、何れかの空き領域の領域
サイズや使用状況の変更に応じて、空き領域管理テーブ
ルの該当するデータを更新する空き領域管理テーブル更
新手段とを備えたものである。
According to a first aspect of the present invention, there is provided a memory area management control device in an electronic device, which is a memory area management control device in an electronic device such as a printer or a facsimile machine. In an area management control device that manages a plurality of areas in a memory having areas, the area size data, the identification data indicating whether or not the area is in use, and the area specifying 1 for all the areas to be managed. Or, an all area management table in which data of a plurality of start addresses is tabulated, and an all area management table update for updating the corresponding data of the all area management table according to the change of the area size or the usage status of any area Means and one or a plurality of area size data and area specifying data for each area for a free area which is not used among the areas to be managed. A free area management table in which the data of the head address is tabulated, and a free area management table updating means for updating the corresponding data of the free area management table according to the change of the area size or the usage status of any free area. It is equipped with.

【0008】作用について説明すると、全領域管理テー
ブルには、管理対象の全部の領域について、各領域毎
の、領域サイズのデータと使用中か否かの識別データと
領域特定用の1又は複数の先頭アドレスのデータとをテ
ーブル化して記憶され、また空き領域管理テーブルに
は、管理対象の領域のうちの使用中でない空き領域につ
いて、各領域毎の、領域サイズのデータと領域特定用の
1又は複数の先頭アドレスのデータとをテーブル化して
記憶されているので、データの書き込み可能な空き領域
を、その書き込みに必要な領域サイズに基づいて、空き
領域管理テーブルのデータを検索することで、使用中の
領域を除いた空き状態の領域だけについて簡単に且つ高
速に見つけることができる。
To explain the operation, the all area management table shows, for all areas to be managed, area size data, identification data indicating whether or not the area is in use, and one or a plurality of areas specifying areas. The data of the head address is stored as a table, and in the free area management table, the area size data and the area specifying data 1 or The data of multiple start addresses is stored as a table and stored, so the free area where data can be written can be used by searching the data in the free area management table based on the area size required for writing. It is possible to easily and quickly find only the empty area excluding the inner area.

【0009】そして、その空き領域にデータが書き込ま
れて使用されることから、全領域管理テーブル更新手段
は、何れかの領域の領域サイズや使用状況の変更に応じ
て、全領域管理テーブルの該当するデータを更新すると
ともに、空き領域管理テーブル更新手段は、何れかの空
き領域の領域サイズや使用状況の変更に応じて、空き領
域管理テーブルの該当するデータを更新する。即ち、管
理対象の領域のうちの使用中でない空き領域に関する空
き領域管理テーブルを別途設けたことにより、この空き
領域管理テーブルのデータを検索することで、データの
書き込み可能な空き領域の検索処理と領域確保処理とを
簡単化且つ高速化することができる。更に、その空き領
域管理テーブルや全領域管理テーブルのデータを、次回
の空き領域検索の為に更新しておくことができる。
Then, since the data is written and used in the empty area, the all area management table updating means corresponds to the all area management table according to the change of the area size or the usage status of any area. The free area management table updating means updates the corresponding data in the free area management table in accordance with the change of the area size or the usage status of any free area. That is, by separately providing a free area management table for a free area that is not in use among the areas to be managed, the data in the free area management table is searched to perform a search process of a writable free area of data. The area securing process can be simplified and speeded up. Further, the data of the free area management table and the entire area management table can be updated for the next free area search.

【0010】請求項2に係る電子機器におけるメモリの
領域管理制御装置は、請求項1の発明において、前記全
領域管理テーブルにおける領域特定用の1又は複数の先
頭アドレスは、各領域の先頭アドレスと、先行側に隣接
する前領域の先頭アドレスと、後続側に隣接する後領域
の先頭アドレスとを含むものである。作用について説明
すると、請求項1と同様の作用を奏するが、全領域管理
テーブルにおける領域特定用の1又は複数の先頭アドレ
スは、各領域の先頭アドレスと、先行側に隣接する前領
域の先頭アドレスと、後続側に隣接する後領域の先頭ア
ドレスとを含でいるので、データ更新の際には、これら
前領域の先頭アドレスと後領域の先頭アドレスとに基づ
いて、更新する為の領域の検索が簡単化して、該当する
データの更新処理を高速化することができる。
According to a second aspect of the present invention, there is provided an area management control device for a memory in an electronic device according to the first aspect of the invention, wherein one or a plurality of head addresses for area specification in the all area management table are the head addresses of the respective areas. , The start address of the front area adjacent to the preceding side and the start address of the rear area adjacent to the subsequent side. Explaining the operation, the same operation as in claim 1 is achieved, but one or a plurality of start addresses for specifying the area in the entire area management table are the start address of each area and the start address of the previous area adjacent to the preceding side. And the start address of the rear area adjacent to the succeeding side are included. Therefore, when updating the data, the area to be updated is searched based on the start address of the front area and the start address of the rear area. Can be simplified and the update processing of the corresponding data can be speeded up.

【0011】請求項3に係る電子機器におけるメモリの
領域管理制御装置は、請求項1又は請求項2の発明にお
いて、前記空き領域管理テーブルにおける領域特定用の
1又は複数の先頭アドレスは、各空き領域の先頭アドレ
スと、先行側に隣接する前空き領域の先頭アドレスと、
後続側に隣接する後空き領域の先頭アドレスとを含むも
のである。作用について説明すると、請求項1又は請求
項2と同様の作用を奏するが、空き領域管理テーブルに
おける領域特定用の1又は複数の先頭アドレスは、各空
き領域の先頭アドレスと、先行側に隣接する前空き領域
の先頭アドレスと、後続側に隣接する後空き領域の先頭
アドレスとを含んでいるので、データ更新の際には、こ
れら前空き領域の先頭アドレスと後空き領域の先頭アド
レスとに基づいて、更新する為の領域の検索が簡単化し
て、該当するデータの更新処理を高速化することができ
る。
According to a third aspect of the present invention, there is provided an area management control device for a memory in an electronic device according to the first or second aspect of the present invention, wherein one or a plurality of start addresses for area identification in the free area management table are free areas. The start address of the area and the start address of the previous empty area adjacent to the leading side,
This includes the head address of the rear empty area adjacent to the subsequent side. Explaining the operation, the same operation as that of claim 1 or claim 2 is achieved, but one or a plurality of start addresses for specifying an area in the free area management table are adjacent to the start address of each free area on the leading side. Since the start address of the front empty area and the start address of the post empty area adjacent to the subsequent side are included, when updating the data, the start address of the front empty area and the start address of the post empty area are used. Thus, the search for the area for updating is simplified, and the update processing of the corresponding data can be speeded up.

【0012】請求項4に係る電子機器におけるメモリの
領域管理制御装置は、請求項3の発明において、前記メ
モリはプリンタに装備された揮発性メモリである。作用
について説明すると、請求項3と同様の作用を奏する
が、プリンタに装備された揮発性メモリに、例えば、受
信したデータや展開したドットイメージデータを書き込
むときに、これらのデータの書き込み可能な空き領域の
検索制御を高速化することができる。
According to a fourth aspect of the present invention, there is provided a memory area management control device in an electronic apparatus, wherein the memory is a volatile memory installed in a printer. The operation is the same as that of claim 3, but when writing the received data or the expanded dot image data to the volatile memory equipped in the printer, a writable space for these data is available. Area search control can be speeded up.

【0013】請求項5に係る電子機器におけるメモリの
領域管理制御装置は、請求項3の発明において、前記メ
モリはファクシミリ装置に装備された揮発性メモリであ
る。作用について説明すると、請求項3と同様の作用を
奏するが、ファクシミリ装置に装備された揮発性メモリ
に、例えば、受信したデータを書き込むときに、このデ
ータの書き込み可能な空き領域の検索制御を高速化する
ことができる。
According to a fifth aspect of the present invention, there is provided a memory area management control device in an electronic apparatus, wherein the memory is a volatile memory equipped in a facsimile machine. The operation is the same as that of claim 3, but when the received data is written in the volatile memory provided in the facsimile, the search control of the writable empty area of the data is performed at high speed. Can be converted.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施形態につい
て、図面に基づいて説明する。本実施形態は、外部機器
からテキストデータや図形等の画像データを受信し、画
像データについては、その印字データを印字機構で印字
するとともに、テキストデータについては、キャラクタ
の輪郭を表す輪郭線データ(アウトラインデータ)から
印字用の画素毎のドットデータに変換したドットパター
ンの印字データを作成して印字するレーザプリンタに本
発明を適用した場合のものである。レーザプリンタLP
について簡単に説明すると、図1に示すように、基本的
には、コントロールユニット10と、ドットデータ作成
装置20と、印字機構30とから構成されている。
Embodiments of the present invention will be described below with reference to the drawings. In the present embodiment, image data such as text data and graphics is received from an external device, and for image data, the print data is printed by a printing mechanism, and for text data, contour line data representing a contour of a character ( This is a case where the present invention is applied to a laser printer that creates and prints dot pattern print data by converting outline data) into dot data for each pixel for printing. Laser printer LP
Briefly, as shown in FIG. 1, it is basically composed of a control unit 10, a dot data creation device 20, and a printing mechanism 30.

【0015】このレーザプリンタLPのコントロールユ
ニット10は、外部機器50から供給される各種のデー
タを受信するシリアルインターフェースやビデオコント
ローラやDCコントローラなどを備え、ドットデータ作
成装置20で作成されたキャラクタのドットパターンデ
ータや画像データを、印字機構30に設けられた半導体
レーザの発光素子であるレーザダイオード、多面体ミラ
ー、現像機構及び定着機構などを駆動制御して印字用紙
に印字する為のものである。このコントロールユニット
10は、一般に用いられているものと同様であり、本案
に直接関係しないことから、その詳しい説明を省略す
る。
The control unit 10 of the laser printer LP is equipped with a serial interface for receiving various data supplied from the external device 50, a video controller, a DC controller, etc., and the dots of the character created by the dot data creating device 20. The pattern data and the image data are printed on a print sheet by driving and controlling a laser diode, a polyhedral mirror, a developing mechanism and a fixing mechanism, which are light emitting elements of a semiconductor laser provided in the printing mechanism 30. The control unit 10 is the same as the one generally used and is not directly related to the present invention, and thus its detailed description is omitted.

【0016】前記ドットデータ作成装置20は、図2に
示すように、基本的には、CPU21と、このCPU2
1にデータバスなどのバス26を介して接続された操作
パネル22と、ROM23〜24と、RAM25とから
構成され、このバス26は、コントロールユニット10
内のバスに接続されている。前記ROMからなるフォン
トデータメモリ23には、文字や記号や数字などの複数
のキャラクタの各々に関する輪郭線データがキャラクタ
コードに対応づけて記憶されている。また、ROMから
なるプログラムメモリ24には、受信した画像データや
テキストデータから印字用のドットデータに展開して作
成するドットデータ作成制御を含み、レーザプリンタL
Pの駆動を制御する各種の制御プログラム、後述する本
案特有の領域管理制御の制御プログラムが格納されてい
る。
As shown in FIG. 2, the dot data producing device 20 basically has a CPU 21 and a CPU 21.
1 is composed of an operation panel 22, which is connected via a bus 26 such as a data bus, ROMs 23 to 24, and a RAM 25.
Connected to the bus inside. In the font data memory 23 including the ROM, contour line data regarding each of a plurality of characters such as characters, symbols and numbers is stored in association with a character code. In addition, the program memory 24, which is a ROM, includes dot data creation control for creating dot data for printing from the received image data or text data, and includes the laser printer L.
Various control programs for controlling the driving of P, and a control program for area management control peculiar to the present invention described later are stored.

【0017】前記揮発性メモリからなるRAM25に
は、全領域管理テーブルメモリ25a、空き領域管理テ
ーブルメモリ25b、ワークメモリ25c、その他各種
のバッファやメモリが設けられている。前記ワークメモ
リ(領域サイズが可変の複数の領域を有するメモリに相
当する)25cは、図3に示すように、所定の先頭アド
レス(例えば、「1000」)から所定のメモリ容量(アド
レス「1999」まで)を有するメモリであり、このワーク
メモリ25cには、受信したテキストデータや画像デー
タ、フォントデータ、或いは展開されたドットイメージ
データなどが、そのデータ量に応じて確保された領域に
記憶される。ここで、ワークメモリ25cには、図3に
示すように、使用中の領域を斜線で図示し、3つの空き
領域(第1〜第3空き領域)が存在している。
The RAM 25, which is a volatile memory, is provided with an entire area management table memory 25a, a free area management table memory 25b, a work memory 25c, and various other buffers and memories. As shown in FIG. 3, the work memory (corresponding to a memory having a plurality of areas having variable area sizes) 25c has a predetermined memory capacity (address "1999") from a predetermined start address (eg, "1000"). Up to), and the work memory 25c stores the received text data, image data, font data, expanded dot image data, or the like in an area secured according to the data amount. . Here, in the work memory 25c, as shown in FIG. 3, the area in use is illustrated by hatching, and three empty areas (first to third empty areas) are present.

【0018】RAM25の全領域管理テーブルメモリ2
5aには、図4に示すように、ワークメモリ25cの管
理対象の全部の領域について、各領域毎の、領域サイズ
のデータと、各領域の先頭アドレスと、先行側に隣接す
る前領域の先頭アドレスと、後続側に隣接する後領域の
先頭アドレスと、使用中か否かの識別データ(「使用
中」又は「空き」)とをテーブル化した全領域管理テー
ブルが記憶されている。即ち、先頭アドレスを夫々、
「1100」、「1200」、「1300」、「1400」、「1500」、
「1600」、「1800」、「1900」とする8つの領域に関す
る領域管理データがテーブル化して記憶されている。こ
こで、記号「─」は、存在しないか、又は不定を意味し
ている。
All area management table memory 2 of RAM 25
In 5a, as shown in FIG. 4, for all areas to be managed in the work memory 25c, area size data for each area, the start address of each area, and the start of the previous area adjacent to the preceding side An all-area management table in which an address, a head address of a rear area adjacent to the subsequent side, and identification data (“in use” or “empty”) whether or not in use is stored is stored. That is, the start address is
"1100", "1200", "1300", "1400", "1500",
Area management data regarding eight areas “1600”, “1800”, and “1900” are stored in a table. Here, the symbol "-" means that it does not exist or is indefinite.

【0019】更に、前記RAM25の空き領域管理テー
ブルメモリ25bには、図5に示すように、ワークメモ
リ25cの複数の領域のうちの使用中でない空き領域に
ついて、各領域毎の、領域サイズのデータと、空き領域
の先頭アドレスと、先行側に隣接する前空き領域の先頭
アドレスと、後続側に隣接する後空き領域の先頭アドレ
スとをテーブル化した空き領域管理テーブルが記憶され
ている。即ち、図3に示すように、第1〜第3空き領域
が存在する領域使用状況のときには、後述する領域管理
制御の実行により、第1空き領域として、アドレス「13
00」から領域サイズ「100 バイト」、第2空き領域とし
て、アドレス「1600」から領域サイズ「200 バイト」、
第3空き領域として、アドレス「1900」から領域サイズ
「100 バイト」が夫々既に記憶されている。ここで、記
号「─」は、存在しないか、又は不定を意味している。
Further, in the free space management table memory 25b of the RAM 25, as shown in FIG. 5, for the free space which is not in use among the plurality of regions of the work memory 25c, the data of the area size for each area is stored. And a free area management table in which a start address of a free area, a start address of a front free area adjacent to the leading side, and a start address of a rear free area adjacent to a subsequent side are stored. That is, as shown in FIG. 3, in the area use condition in which the first to third free areas are present, the area management control described later is executed to determine the address "13" as the first free area.
The area size is "100 bytes" from 00 ", and the area size is" 200 bytes "from the address" 1600 "as the second free area.
As the third free area, the area size "100 bytes" from the address "1900" is already stored. Here, the symbol "-" means that it does not exist or is indefinite.

【0020】次に、レーザプリンタLPのドットデータ
作成装置20で実行される領域管理制御のルーチンにつ
いて、図6のフローチャートに基づいて説明する。尚、
図中符号Si(i=10、11、12・・・)は各ステ
ップである。受信した各種のデータを書き込みする為
に、或いは展開したドットイメージデータを書き込みす
る為に、一時的に記憶する空き領域が必要になったとき
に、この制御が開始され、先ず書き込みに必要な領域の
サイズYSが読み込まれ(S10)、空き領域管理テーブ
ルメモリ25bのデータに基づいて、最初の空き領域に
ついて検索される(S11)。
Next, the routine of the area management control executed by the dot data creation device 20 of the laser printer LP will be described with reference to the flowchart of FIG. still,
Reference numeral Si (i = 10, 11, 12, ...) In the drawing represents each step. This control is started when an empty area to temporarily store is needed to write various received data or to write expanded dot image data. The size YS is read (S10), and the first free area is searched based on the data in the free area management table memory 25b (S11).

【0021】次に、空き領域管理テーブルから読み込ん
だ最初の空き領域の領域サイズRSが要求された領域サ
イズYSよも小さいときには(S12:No)、後続側の次
の空き領域について検索され(S13)、その空き領域が
存在するときには(S14:Yes )、S12〜S14が繰り返
して実行される。そして、領域サイズRSが要求された
領域サイズYS以上のときには(S12:Yes )、その領
域サイズYSの領域を確保できることから、その空き領
域の先頭アドレスと領域サイズでもって領域が確保され
る(S16)。
Next, when the area size RS of the first empty area read from the empty area management table is smaller than the requested area size YS (S12: No), the next empty area on the subsequent side is searched (S13). ), When the empty area exists (S14: Yes), S12 to S14 are repeatedly executed. When the area size RS is equal to or larger than the requested area size YS (S12: Yes), the area having the area size YS can be secured, so that the area is secured by the start address of the empty area and the area size (S16). ).

【0022】例えば、要求された領域サイズYSが「15
0 バイト」のときには、図3、図5において、空き領域
の先頭アドレスが「1600」で、領域サイズが「200 バイ
ト」である第2空き領域に領域確保が可能なので、図7
に逆斜線で示すように、空き領域の先頭アドレスが「16
00」から、領域サイズ「150 バイト」の領域が新規に確
保される。次に、全領域管理テーブルの該当するデータ
を更新する更新処理が実行される(S17)。例えば、図
8に示すように、先頭アドレスを「1600」とする領域に
ついて、領域サイズが「150 」に、後領域の先頭アドレ
スが「1750」に、更に識別データとして「使用中」に夫
々更新されるとともに、次の先頭アドレスを「1800」と
する領域について、前領域の先頭アドレスが「1750」に
更新される。ここで、このS17が全領域管理テーブル更
新手段に相当する。
For example, if the requested area size YS is "15"
When it is "0 bytes", it is possible to secure the area in the second free area whose start address is "1600" and the area size is "200 bytes" in FIGS.
As indicated by the reverse slash, the start address of the empty area is "16
A new area with an area size of "150 bytes" is newly allocated from "00". Next, an update process for updating the corresponding data in the all area management table is executed (S17). For example, as shown in FIG. 8, regarding the area having the start address of “1600”, the area size is updated to “150”, the start address of the rear area is updated to “1750”, and the identification data is updated to “in use”. At the same time, the start address of the previous area is updated to “1750” for the area having the next start address of “1800”. Here, this S17 corresponds to the all area management table updating means.

【0023】次に、空き領域管理テーブルの該当するデ
ータを更新する更新処理が実行され(S18)、この制御
を終了して、メインルーチンにリターンする。例えば、
図9に示すように、第2空き領域について、空き領域の
先頭アドレスが「1750」に、領域サイズが「50」に更新
されるとともに、次の第3空き領域について、前空き領
域の先頭アドレスが「1750」に更新される。ここで、こ
のS18が空き領域管理テーブル更新手段に相当する。と
ころで、要求された領域サイズYS以上の領域を確保で
きなかったときには(S12:No、S13、S14:No)、エ
ラーフラグをセットするなどのエラー処理が実行され
(S15)、この制御を終了して、同様にリターンする。
Next, an updating process for updating the corresponding data in the free space management table is executed (S18), the control is terminated, and the process returns to the main routine. For example,
As shown in FIG. 9, the start address of the free area is updated to “1750” and the area size is changed to “50” for the second free area, and the start address of the previous free area is updated for the next third free area. Is updated to "1750". Here, this S18 corresponds to the free space management table updating means. By the way, when an area larger than the requested area size YS cannot be secured (S12: No, S13, S14: No), error processing such as setting an error flag is executed (S15), and this control is ended. And then return.

【0024】次に、領域管理制御の作用について説明す
る。全領域管理テーブルメモリ25aには、ワークメモ
リ25cの管理対象の全部の領域について、各領域毎
の、領域サイズのデータと、使用中か否かの識別データ
と、領域特定の為に、領域の先頭アドレスと先行側に隣
接する前領域の先頭アドレスと後続側に隣接する後領域
の先頭アドレスとをテーブル化した全領域管理テーブル
が記憶され、また空き領域管理テーブルメモリ25bに
は、ワークメモリ25cの複数の領域のうちの使用中で
ない空き領域について、各領域毎の、領域サイズのデー
タと、領域特定の為に、空き領域の先頭アドレスと先行
側に隣接する前空き領域の先頭アドレスと後続側に隣接
する後空き領域の先頭アドレスとをテーブル化した空き
領域管理テーブルが記憶されている。
Next, the operation of the area management control will be described. In the all area management table memory 25a, for all areas to be managed in the work memory 25c, area size data for each area, identification data indicating whether or not the area is in use, and area identification for area identification. A full area management table is stored in which the start address, the start address of the front area adjacent to the preceding side, and the start address of the rear area adjacent to the subsequent side are tabulated, and the free area management table memory 25b stores the work memory 25c. For the empty areas that are not in use among the plurality of areas, the area size data for each area, and the start address of the empty area and the start address of the previous empty area that is adjacent to the leading side for specifying the area A free area management table in which the head address of the rear free area adjacent to the side is tabulated is stored.

【0025】即ち、データの書き込み可能な空き領域に
ついて、その書き込みに必要な領域サイズYSに基づい
て、その空き領域管理テーブルのデータを検索すること
で、使用中の領域を除いた空き領域だけについて検索す
ることになり、データの書き込み可能な空き領域の検索
処理と領域確保処理とを簡単化且つ高速化することがで
きる。そして、その空き領域にデータが書き込まれて使
用されることから、次回の空き領域検索の為に、領域サ
イズや使用状況の変更に応じて、全領域管理テーブルの
該当するデータが更新されるとともに、空き領域の領域
サイズや使用状況の変更に応じて、空き領域管理テーブ
ルの該当するデータが更新される。
That is, regarding the writable free area of data, the data in the free area management table is searched based on the area size YS required for writing, and only the free area excluding the used area is searched. As a result of searching, it is possible to simplify and speed up the process of searching for a writable free area of data and the process of securing the area. Then, since the data is written and used in the free area, the corresponding data in the all area management table is updated according to the change of the area size and the usage status for the next free area search. The corresponding data in the free area management table is updated according to the change in area size or usage of the free area.

【0026】このように、ワークメモリ25cの管理対
象の全部の領域に関する全領域管理テーブルに加えて、
ワークメモリ25cの領域のうちの使用中でない空き領
域に関する空き領域管理テーブルを設けたので、データ
の書き込み可能な空き領域を、この空き領域管理テーブ
ルのデータを検索することで、使用中の領域を除いた空
き状態の領域だけについて、データの書き込み可能な空
き領域の検索処理と領域確保処理とを簡単化且つ高速化
することができる。更に、その空き領域管理テーブルや
全領域管理テーブルのデータを、次回の空き領域検索の
為に更新しておくことができる。
Thus, in addition to the all area management table for all areas to be managed in the work memory 25c,
Since the free area management table for the free area which is not used in the area of the work memory 25c is provided, the free area in which the data can be written is searched for the free area management table to find the used area. It is possible to simplify and speed up the process of searching for a writable free area of data and the area securing process for only the removed free area. Further, the data of the free area management table and the entire area management table can be updated for the next free area search.

【0027】また、全領域管理テーブルには、領域特定
の為に、各領域の先頭アドレスと、先行側に隣接する前
領域の先頭アドレスと、後続側に隣接する後領域の先頭
アドレスとを記憶しているので、データ更新の際には、
これら前領域の先頭アドレスと後領域の先頭アドレスと
に基づいて、更新する為の領域の検索が簡単化して、該
当するデータの更新処理を高速化することができる。更
に、空き領域管理テーブルには、領域特定の為に、空き
領域の先頭アドレスと、先行側に隣接する前空き領域の
先頭アドレスと、後続側に隣接する後空き領域の先頭ア
ドレスとを記憶しているので、データ更新の際には、こ
れら前空き領域の先頭アドレスと後空き領域の先頭アド
レスとに基づいて、更新する為の領域の検索が簡単化し
て、該当するデータの更新処理を高速化することができ
る。
Further, in the all area management table, the head address of each area, the head address of the front area adjacent to the leading side, and the head address of the rear area adjacent to the trailing side are stored in order to specify the area. Therefore, when updating the data,
Based on the start address of the front area and the start address of the rear area, the search for the area to be updated can be simplified, and the update processing of the corresponding data can be speeded up. Further, the free area management table stores the start address of the free area, the start address of the previous free area adjacent to the preceding side, and the start address of the post free area adjacent to the subsequent side for the area identification. Therefore, when updating the data, the search for the area to be updated is simplified based on the start address of the previous empty area and the start address of the post empty area, and the update processing of the corresponding data is performed at high speed. Can be converted.

【0028】ところで、ファクシミリ装置の制御装置内
に設けられる揮発性メモリであるRAMに、空き領域管
理テーブルを作成して記憶するようにした場合、このR
AMに、例えば、受信したデータを書き込むときに、こ
の空き領域管理テーブルを検索することで、データの書
き込み可能な空き領域の検索制御を高速化することがで
きる。
By the way, when the free space management table is created and stored in the RAM which is a volatile memory provided in the control device of the facsimile machine, this R
For example, when writing the received data to the AM, by searching this free area management table, it is possible to speed up the search control of the writable free area of the data.

【0029】尚、RAM25に設けた全領域管理テーブ
ルや空き領域管理テーブルのデータをワークメモリ25
cの先頭側に設けるように構成したり、これら両テーブ
ルには、領域の先頭アドレスだけを記憶するように構成
する等、前記実施形態に関し、既存の技術や当業者に自
明の技術に基いて種々の変更を加えることもあり得る。
また、各種のプリンタやファクシミリ装置等の電子機器
におけるメモリの領域管理制御装置に本発明を適用し得
ることは勿論である。
The data of the entire area management table and the free area management table provided in the RAM 25 are stored in the work memory 25.
Based on the existing technology or the technology obvious to those skilled in the art regarding the above-described embodiment, the table is configured to be provided on the head side of c, or both tables are configured to store only the head address of the area. Various changes may be made.
Further, it is needless to say that the present invention can be applied to a memory area management control device in electronic equipment such as various printers and facsimile devices.

【0030】[0030]

【発明の効果】請求項1に係る電子機器におけるメモリ
の領域管理制御装置によれば、領域サイズが可変の複数
の領域を有するメモリにおける複数の領域を管理する領
域管理制御装置において、管理対象の全部の領域に関す
る全領域管理テーブルと、全領域管理テーブル更新手段
と、管理対象の領域のうちの使用中でない空き領域に関
する空き領域管理テーブルと、空き領域管理テーブル更
新手段とを設け、データの書き込み可能な空き領域を、
この空き領域管理テーブルのデータを検索することで、
使用中の領域を除いた空き状態の領域だけについて検索
することになり、データの書き込み可能な空き領域の検
索処理と領域確保処理とを簡単化且つ高速化することが
できる。更に、その空き領域管理テーブルや全領域管理
テーブルのデータを、次回の空き領域検索の為に更新し
ておくことができる。
According to the area management control device for a memory in an electronic device according to a first aspect of the present invention, in an area management control device for managing a plurality of areas in a memory having a plurality of areas of variable area size, An all area management table for all areas, an all area management table updating means, a free area management table for empty areas that are not used among the areas to be managed, and a free area management table updating means are provided to write data. The available free space,
By searching the data in this free space management table,
Since only the free area excluding the area in use is searched, it is possible to simplify and speed up the search processing of the writable free area and the area securing processing. Further, the data of the free area management table and the entire area management table can be updated for the next free area search.

【0031】請求項2に係る電子機器におけるメモリの
領域管理制御装置によれば、請求項1と同様の効果を奏
するが、全領域管理テーブルにおける領域特定用の1又
は複数の先頭アドレスは、各領域の先頭アドレスと、先
行側に隣接する前領域の先頭アドレスと、後続側に隣接
する後領域の先頭アドレスとを含でいるので、データ更
新の際には、これら前領域の先頭アドレスと後領域の先
頭アドレスとに基づいて、該当するデータの更新処理を
高速化することができる。
According to the area management control device of the memory in the electronic device of the second aspect, the same effect as that of the first aspect can be obtained, but one or a plurality of head addresses for area identification in the entire area management table are It includes the start address of the area, the start address of the previous area adjacent to the leading side, and the start address of the back area adjacent to the following side. It is possible to speed up the update processing of the corresponding data based on the area start address.

【0032】請求項3に係る電子機器におけるメモリの
領域管理制御装置によれば、請求項1又は請求項2と同
様の効果を奏するが、空き領域管理テーブルにおける領
域特定用の1又は複数の先頭アドレスは、各空き領域の
先頭アドレスと、先行側に隣接する前空き領域の先頭ア
ドレスと、後続側に隣接する後空き領域の先頭アドレス
とを含んでいるので、データ更新の際には、これら前空
き領域の先頭アドレスと後空き領域の先頭アドレスとに
基づいて、該当するデータの更新処理を高速化すること
ができる。
According to the area management control device of the memory in the electronic device of the third aspect, the same effect as that of the first or second aspect is obtained, but one or a plurality of heads for area identification in the free area management table are provided. Since the address includes the start address of each free space, the start address of the front free space adjacent to the leading side, and the start address of the rear free space adjacent to the succeeding side, when updating the data, these Based on the start address of the front empty area and the start address of the rear empty area, it is possible to speed up the update processing of the corresponding data.

【0033】請求項4に係る電子機器におけるメモリの
領域管理制御装置によれば、請求項3と同様の効果を奏
するが、プリンタに装備された揮発性メモリに、例え
ば、受信したデータや展開したドットイメージデータを
書き込むときに、これらのデータの書き込み可能な空き
領域の検索制御を高速化することができる。請求項5に
係る電子機器におけるメモリの領域管理制御装置によれ
ば、請求項3と同様の効果を奏するが、ファクシミリ装
置に装備された揮発性メモリに、例えば、受信したデー
タを書き込むときに、このデータの書き込み可能な空き
領域の検索制御を高速化することができる。
According to the memory area management control device in the electronic device of the fourth aspect, the same effect as that of the third aspect can be obtained, but the received data and the expanded data are stored in the volatile memory equipped in the printer. When writing dot image data, it is possible to speed up search control of a writable free area of these data. According to the area management control device of the memory in the electronic device of the fifth aspect, the same effect as that of the third aspect can be obtained, but, for example, when the received data is written in the volatile memory equipped in the facsimile apparatus, It is possible to speed up the search control of the writable free area of this data.

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

【図1】本発明の実施形態に係る、レーザプリンタの制
御系のブロック図である。
FIG. 1 is a block diagram of a control system of a laser printer according to an embodiment of the present invention.

【図2】レーザプリンタのドットデータ作成装置の制御
系のブロック図である。
FIG. 2 is a block diagram of a control system of a dot data creation device of a laser printer.

【図3】ワークメモリ内の使用中の領域と空き領域とを
説明する説明図である。
FIG. 3 is an explanatory diagram illustrating an in-use area and a free area in a work memory.

【図4】全領域管理テーブルのデータ構成を説明する説
明図である。
FIG. 4 is an explanatory diagram illustrating a data configuration of an entire area management table.

【図5】空き領域管理テーブルタのデータ構成を説明す
る説明図である。
FIG. 5 is an explanatory diagram illustrating a data structure of a free area management table.

【図6】領域管理制御のルーチンの概略フローチャート
である。
FIG. 6 is a schematic flowchart of a routine for area management control.

【図7】新規に領域が確保された図3相当図である。FIG. 7 is a view corresponding to FIG. 3 in which a new area is secured.

【図8】領域の変更に応じて更新された図4相当図であ
る。
FIG. 8 is a view corresponding to FIG. 4 updated according to a change in area.

【図9】空き領域の変更に応じて更新された図5相当図
である。
FIG. 9 is a diagram corresponding to FIG. 5, which is updated according to a change in free space.

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

LP レーザプリンタ 21 CPU 24 ROM(プログラムメモリ) 25 RAM 25a 全領域管理テーブルメモリ 25b 空き領域管理テーブルメモリ 25c ワークメモリ LP laser printer 21 CPU 24 ROM (program memory) 25 RAM 25a All area management table memory 25b Free area management table memory 25c Work memory

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 プリンタやファクシミリ装置等の電子機
器におけるメモリの領域管理制御装置であって、領域サ
イズが可変の複数の領域を有するメモリにおける複数の
領域を管理する領域管理制御装置において、 管理対象の全部の領域について、各領域毎の、領域サイ
ズのデータと使用中か否かの識別データと領域特定用の
1又は複数の先頭アドレスのデータとをテーブル化した
全領域管理テーブルと、 何れかの領域の領域サイズや使用状況の変更に応じて、
全領域管理テーブルの該当するデータを更新する全領域
管理テーブル更新手段と、 管理対象の領域のうちの使用中でない空き領域につい
て、各領域毎の、領域サイズのデータと領域特定用の1
又は複数の先頭アドレスのデータとをテーブル化した空
き領域管理テーブルと、 何れかの空き領域の領域サイズや使用状況の変更に応じ
て、空き領域管理テーブルの該当するデータを更新する
空き領域管理テーブル更新手段と、 を備えたことを特徴とする電子機器におけるメモリの領
域管理制御装置。
1. An area management control device for a memory in an electronic device such as a printer or a facsimile machine, which manages a plurality of areas in a memory having a plurality of areas of variable area size, A total area management table that tabulates, for each area, area size data, identification data indicating whether or not in use, and one or more head address data for area identification, Depending on the area size and usage status of the
All area management table updating means for updating the corresponding data in the all area management table, and area size data and area identification data 1 for each area for the unused areas of the areas to be managed
Alternatively, a free area management table in which data of a plurality of start addresses is tabulated, and a free area management table for updating the corresponding data of the free area management table according to the change of the area size or the usage status of any free area An area management control device for a memory in an electronic device, comprising: an updating unit.
【請求項2】 前記全領域管理テーブルにおける領域特
定用の1又は複数の先頭アドレスは、各領域の先頭アド
レスと、先行側に隣接する前領域の先頭アドレスと、後
続側に隣接する後領域の先頭アドレスとを含むことを特
徴とする請求項1に記載の電子機器におけるメモリの領
域管理制御装置。
2. One or a plurality of head addresses for area specification in the all area management table include a head address of each area, a head address of a front area adjacent to the leading side, and a back area adjacent to the trailing side. The area management control device for a memory in an electronic device according to claim 1, further comprising a head address.
【請求項3】 前記空き領域管理テーブルにおける領域
特定用の1又は複数の先頭アドレスは、各空き領域の先
頭アドレスと、先行側に隣接する前空き領域の先頭アド
レスと、後続側に隣接する後空き領域の先頭アドレスと
を含むことを特徴とする請求項1又は請求項2に記載の
電子機器におけるメモリの領域管理制御装置。
3. The one or more start addresses for specifying the area in the free area management table are the start address of each free area, the start address of the previous free area adjacent to the leading side, and the back address adjacent to the succeeding side. An area management control device for a memory in an electronic device according to claim 1 or 2, further comprising a start address of an empty area.
【請求項4】 前記メモリはプリンタに装備された揮発
性メモリであることを特徴とする請求項3に記載の電子
機器におけるメモリの領域管理制御装置。
4. The memory area management control device in an electronic apparatus according to claim 3, wherein the memory is a volatile memory equipped in a printer.
【請求項5】 前記メモリはファクシミリ装置に装備さ
れた揮発性メモリであることを特徴とする請求項3に記
載の電子機器におけるメモリの領域管理制御装置。
5. The memory area management control device in an electronic apparatus according to claim 3, wherein the memory is a volatile memory installed in a facsimile apparatus.
JP34741795A 1995-12-13 1995-12-13 Area managing and controlling device for memory in electronic equipment Pending JPH09160823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34741795A JPH09160823A (en) 1995-12-13 1995-12-13 Area managing and controlling device for memory in electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34741795A JPH09160823A (en) 1995-12-13 1995-12-13 Area managing and controlling device for memory in electronic equipment

Publications (1)

Publication Number Publication Date
JPH09160823A true JPH09160823A (en) 1997-06-20

Family

ID=18390090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34741795A Pending JPH09160823A (en) 1995-12-13 1995-12-13 Area managing and controlling device for memory in electronic equipment

Country Status (1)

Country Link
JP (1) JPH09160823A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065764A (en) * 2006-09-11 2008-03-21 Aplix Corp Memory allocation method and memory allocation program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008065764A (en) * 2006-09-11 2008-03-21 Aplix Corp Memory allocation method and memory allocation program

Similar Documents

Publication Publication Date Title
US5822499A (en) Method and apparatus for printing data in accordance with a previously set parameter regardless of currently specified parameters
JPH041069A (en) Printing device
US5617525A (en) Image outputting adaptable to various fonts
JP3029136B2 (en) Output method and device
JPH09160823A (en) Area managing and controlling device for memory in electronic equipment
US5666478A (en) Method and apparatus for processing characters based on previously- used scalable font data
JPH07112552A (en) Method for control of printing form and apparatus therefor in printer
JP2958181B2 (en) Printing equipment
EP0573262A1 (en) Wordprocessing device
JP3097818B2 (en) Font data memory device
JP3143520B2 (en) Character processing apparatus and method
JPH0469261A (en) Printer
JP3121103B2 (en) Character processing apparatus and method
JPH0615927A (en) Output method and device
JPH0811381A (en) Printing machine and method for controlling the same
JP3231863B2 (en) Character processing method and device
JP2000181673A (en) Document printer
JPH0584986A (en) Image forming device
JPH08132703A (en) Method and device for outputting character
JPH09146521A (en) Device and method for output control
JPH082024A (en) Printer
JP2000225745A (en) Printing control device and program recording medium thereof
JPH08282024A (en) Printing device
JP2728916B2 (en) Character processing apparatus and method
JPH01258976A (en) Page printer