JP2586799B2 - Memory buffer status check device managed by chain method - Google Patents
Memory buffer status check device managed by chain methodInfo
- Publication number
- JP2586799B2 JP2586799B2 JP5228053A JP22805393A JP2586799B2 JP 2586799 B2 JP2586799 B2 JP 2586799B2 JP 5228053 A JP5228053 A JP 5228053A JP 22805393 A JP22805393 A JP 22805393A JP 2586799 B2 JP2586799 B2 JP 2586799B2
- Authority
- JP
- Japan
- Prior art keywords
- frame
- address
- chain
- memory buffer
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 15
- 238000000605 extraction Methods 0.000 claims description 4
- 238000012790 confirmation Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000007726 management method Methods 0.000 description 3
- 230000010365 information processing Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数のフレームから構
成されるメモリバッファの空きフレームをポインタによ
りチェーン化して管理している情報処理装置をターゲッ
トマシンとし、そのメモリバッファの状態を簡便に確認
することができる、チェーン方式で管理されたメモリバ
ッファの状態確認装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus which manages empty frames of a memory buffer composed of a plurality of frames by chaining them with pointers, as a target machine, and easily confirms the state of the memory buffer. The present invention relates to an apparatus for checking the status of a memory buffer managed in a chain system.
【0002】[0002]
【従来の技術】メモリバッファの空きフレームをチェー
ン方式で管理している情報処理装置においては、そのシ
ステムダウン時等に、そのデバッグの一環として、メモ
リバッファの使用状態、特に空きフレームの存在の有無
や空きフレームが存在する場合にはどういう順序でチェ
ーン化されているかといったメモリバッファの状態を確
認する作業が行われる。2. Description of the Related Art In an information processing apparatus that manages empty frames of a memory buffer in a chain system, when the system is down, as a part of debugging, the use state of the memory buffer, particularly whether or not there is an empty frame. When there is an empty frame or an empty frame, an operation of confirming the state of the memory buffer such as the order in which the data is chained is performed.
【0003】従来、このような作業は、メモリバッファ
の内容をそのままプリントアウトするかディスプレイに
表示し、空きフレームのチェーン状態等を作業者がチェ
ーンポインタをたどりながら目視でチェックすることで
行っていた。Conventionally, such work has been performed by printing out the contents of a memory buffer as it is or displaying it on a display, and visually checking the chain state of an empty frame while following the chain pointer. .
【0004】[0004]
【発明が解決しようとする課題】しかしながら、このよ
うな方法では、フレーム数が多いメモリバッファの場
合、空きチェーンのつながり状態等をチェックするのに
慣れと時間を必要とし、これがデバッグ作業の遅延化の
一因となっていた。However, in such a method, in the case of a memory buffer having a large number of frames, it takes time and effort to check the connection state of the empty chains and the like, which delays the debugging work. Was one of the causes.
【0005】本発明はこのような事情に鑑みて提案され
たものであり、その目的は、チェーン方式で管理される
メモリバッファの状態を簡便に確認することができる状
態確認装置を提供することにある。The present invention has been proposed in view of the above circumstances, and an object of the present invention is to provide a state checking device capable of easily checking the state of a memory buffer managed in a chain system. is there.
【0006】[0006]
【課題を解決するための手段】本発明のチェーン方式で
管理されたメモリバッファの状態確認装置は上記の目的
を達成するために、複数のフレームから構成されるメモ
リバッファの空きフレームをポインタにてチェーン化し
て管理しているターゲットマシンにおける前記メモリバ
ッファの先頭フレームのアドレス,最終フレームのアド
レス,1フレームのサイズ,空きチェーンの先頭フレー
ムのアドレスおよび空きチェーンの終了コードを格納す
るパラメータ格納手段と、該パラメータ格納手段に格納
された情報に基づき、前記メモリバッファを構成する各
フレームを前記ターゲットマシンから読み出し、前記タ
ーゲットマシン上の各フレームのアドレスをカレントア
ドレスとして付加してワークメモリにコピーするコピー
手段と、前記パラメータ格納手段に格納された情報に基
づき、前記ワークメモリ上において空きチェーンの先頭
フレームから最終フレームまでを検索して空きチェーン
上の並び順にソート結果格納メモリの空きチェーン格納
域に格納すると共に、空きチェーンにつながれていない
フレームを前記ソート結果格納メモリの使用中フレーム
格納域に格納するソート手段と、前記ソート結果格納メ
モリの空きチェーン格納域および使用中フレーム格納域
の内容を表示装置の画面に表示する制御手段とを備えて
いる。According to the present invention, in order to achieve the above object, an apparatus for checking the status of a memory buffer managed in a chain system uses a pointer to indicate a free frame of a memory buffer composed of a plurality of frames. Parameter storage means for storing the address of the first frame of the memory buffer, the address of the last frame, the size of one frame, the address of the first frame of the free chain, and the end code of the free chain in the target machine managed in a chain; Copy means for reading each frame constituting the memory buffer from the target machine based on the information stored in the parameter storage means, adding the address of each frame on the target machine as a current address, and copying the frame to the work memory. And the para Based on the information stored in the data storage means, the work memory is searched from the first frame to the last frame of the free chain, and stored in the free chain storage area of the sort result storage memory in the order of arrangement on the free chain, Sorting means for storing frames not connected to an empty chain in the used frame storage area of the sort result storage memory; and displaying the contents of the empty chain storage area and the used frame storage area of the sorted result storage memory on a screen of a display device. Control means for displaying.
【0007】[0007]
【作用】本発明のチェーン方式で管理されたメモリバッ
ファの状態確認装置においては、パラメータ格納手段
が、複数のフレームから構成されるメモリバッファの空
きフレームをポインタにてチェーン化して管理している
ターゲットマシンにおける前記メモリバッファの先頭フ
レームのアドレス,最終フレームのアドレス,1フレー
ムのサイズ,空きチェーンの先頭フレームのアドレスお
よび空きチェーンの終了コードを保持し、コピー手段
が、このパラメータ格納手段に格納された情報に基づ
き、メモリバッファを構成する各フレームをターゲット
マシンから読み出してターゲットマシン上の各フレーム
のアドレスをカレントアドレスとして付加してワークメ
モリにコピーし、ソート手段が、前記パラメータ格納手
段に格納された情報に基づき、ワークメモリ上において
空きチェーンの先頭フレームから最終フレームまでを検
索して空きチェーン上の並び順にソート結果格納メモリ
の空きチェーン格納域に格納すると共に、空きチェーン
につながれていないフレームをソート結果格納メモリの
使用中フレーム格納域に格納し、制御手段が、ソート結
果格納メモリの空きチェーン格納域および使用中フレー
ム格納域の内容を表示装置の画面に表示する。In the memory buffer status confirmation device managed by the chain method according to the present invention, the parameter storage means manages the empty frames of the memory buffer composed of a plurality of frames by chaining them with pointers. The first frame address of the memory buffer in the machine, the address of the last frame, the size of one frame, the address of the first frame of the empty chain, and the end code of the empty chain are stored, and the copy means is stored in the parameter storage means. Based on the information, each frame constituting the memory buffer is read from the target machine, the address of each frame on the target machine is added as a current address and copied to the work memory, and the sorting means is stored in the parameter storage means. Based on information In the work memory, search from the first frame to the last frame of the empty chain and store them in the empty chain storage area of the sort result storage memory in the order of the empty chain, and store the frames that are not connected to the empty chain. The data is stored in the used frame storage area of the memory, and the control means displays the contents of the empty chain storage area and the used frame storage area of the sorting result storage memory on the screen of the display device.
【0008】[0008]
【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.
【0009】図1を参照すると、本発明の一実施例のチ
ェーン方式で管理されたメモリバッファの状態確認装置
(以下、単に状態確認装置という)1は、コピー部1
0,ワークメモリ11,パラメータ抽出部12,ソート
部13,パラメータ格納部14,ソート結果格納メモリ
15,制御部16,これらを相互に接続するバス19,
表示装置17,キーボード18およびコネクタCN1を
備え、このコネクタCN1につながるケーブルKによっ
てターゲットマシン2のコネクタCN2に接続されてい
る。Referring to FIG. 1, a memory buffer status confirmation device (hereinafter simply referred to as a status confirmation device) 1 managed in a chain system according to an embodiment of the present invention is a copy unit 1.
0, a work memory 11, a parameter extraction unit 12, a sort unit 13, a parameter storage unit 14, a sort result storage memory 15, a control unit 16, a bus 19 interconnecting these components,
It has a display device 17, a keyboard 18, and a connector CN1, and is connected to a connector CN2 of the target machine 2 by a cable K connected to the connector CN1.
【0010】また、ターゲットマシン2は、メモリバッ
ファ20および図示しないCPU等の他の構成部品とメ
モリバッファ20とを接続するバス21を有し、更に、
メモリバッファ20の内容をバス21を介して読み出し
てコネクタCN2を通じて外部に出力する読み出し部2
2を有している。The target machine 2 has a bus 21 for connecting the memory buffer 20 to the memory buffer 20 and other components such as a CPU (not shown).
A reading unit 2 that reads the contents of the memory buffer 20 via a bus 21 and outputs the contents to the outside through a connector CN2
Two.
【0011】図2はメモリバッファ20の構成例を示
す。メモリバッファ20は、ヘッダ領域200とフレー
ム領域201とで構成される。FIG. 2 shows a configuration example of the memory buffer 20. The memory buffer 20 includes a header area 200 and a frame area 201.
【0012】ヘッダ領域200には、ターゲットマシン
2上のOSがメモリバッファ20を管理するために必要
な種々の情報として、メモリバッファ20の先頭フレー
ムのアドレス,最終フレームのアドレス,1フレームの
サイズ,空きチェーンの先頭フレームのアドレス,OS
が認識している空きチェーンにつながるフレームの数等
の情報が格納されている。The header area 200 contains various information necessary for the OS on the target machine 2 to manage the memory buffer 20, such as the address of the first frame of the memory buffer 20, the address of the last frame, the size of one frame, and the like. Address of first frame of free chain, OS
The information, such as the number of frames connected to the empty chain recognized by the user, is stored.
【0013】フレーム領域201は、複数のフレームF
1〜F7で構成される。なお、フレーム領域201の左
横に記載した「4010」等の数値は各フレームF1〜
F7の先頭位置のアドレス(カレントアドレス)であ
る。各フレームF1〜F7にはチェーン化するためのポ
インタ領域PTがあり、空きフレームはポインタ領域P
Tに設定されたポインタによって一つながりに連結され
て管理される。図示の場合、ヘッダ領域200の空きチ
ェーンの先頭フレームのアドレスに「4010」が設定
されているため、空きチェーンの先頭のフレームはフレ
ームF1であり、フレームF1のポインタ領域PTには
アドレス「4070」が設定されているため、フレーム
F1にチェーンされる空きフレームはフレームF7であ
る。The frame area 201 includes a plurality of frames F
1 to F7. The numerical values such as “4010” written on the left side of the frame area 201 are the values of the frames F1 to F1.
This is the address (current address) of the head position of F7. Each of the frames F1 to F7 has a pointer area PT for chaining.
The pointers set in T are linked and managed in a unified manner. In the illustrated case, since “4010” is set as the address of the first frame of the empty chain in the header area 200, the first frame of the empty chain is the frame F1, and the address “4070” is stored in the pointer area PT of the frame F1. Is set, the empty frame chained to the frame F1 is the frame F7.
【0014】図3はメモリバッファ20の状態を確認す
る際の状態確認装置1の処理例を示すフローチャートで
あり、S1〜S5は各ステップを示す。また、図4およ
び図5は図3のステップS4の詳細なフローチャートで
ある。更に、図6はワークメモリ11に格納される内容
の一例を、図7は表示装置7に表示されるメモリバッフ
ァ状態表示画面の一例を示す。以下、各図を参照して本
実施例の動作を説明する。FIG. 3 is a flowchart showing a processing example of the state confirmation device 1 when confirming the state of the memory buffer 20, and S1 to S5 show respective steps. FIGS. 4 and 5 are detailed flowcharts of step S4 in FIG. 6 shows an example of the contents stored in the work memory 11, and FIG. 7 shows an example of a memory buffer status display screen displayed on the display device 7. Hereinafter, the operation of this embodiment will be described with reference to the drawings.
【0015】状態確認装置1をケーブルKによってター
ゲットマシン2に接続した後、利用者がキーボード18
を操作して、メモリバッファ20のヘッダ領域200の
アドレスと空きチェーンの終了コードとを入力して処理
の開始を指示すると、状態確認装置1は図3に示す処理
を開始する。なお、空きチェーンの終了コードとは、空
きチェーンの最後尾のフレームのポインタ領域PTに設
定されるコード(ストッパ)のことであり、本実施例で
は「0000」になっている。After connecting the status checking device 1 to the target machine 2 via the cable K, the user
Is operated to input the address of the header area 200 of the memory buffer 20 and the end code of the empty chain, and instruct the start of the processing, the state checking device 1 starts the processing shown in FIG. Note that the end code of the empty chain is a code (stopper) set in the pointer area PT of the last frame of the empty chain, and is “0000” in this embodiment.
【0016】状態確認装置1の制御部16は、キーボー
ド18から入力されたヘッダ領域200のアドレスと空
きチェーンの終了コードとを入力し、空きチェーンの終
了コードは1つのパラメータとしてパラメータ格納部1
4に格納する(S1)。そして、ヘッダ領域200のア
ドレスを通知してパラメータ抽出部12を起動する。The control unit 16 of the state checking device 1 inputs the address of the header area 200 and the end code of the empty chain input from the keyboard 18, and the end code of the empty chain is stored as one parameter in the parameter storage unit 1.
4 (S1). Then, the address of the header area 200 is notified, and the parameter extracting unit 12 is started.
【0017】パラメータ抽出部12は、ケーブルKで接
続されたターゲットマシン2の読み出し部22に対して
上記ヘッダ領域200のアドレスを通知して、そのアド
レス以降の内容を読み出すよう指示を出し、読み出し部
22がこの指示に応答してバス21を介してメモリバッ
ファ20のヘッダ領域200の内容を読み出してケーブ
ルKを通じて送り返してくると、受信したデータのうち
の予め定められた箇所から、図2に示したヘッダ領域2
00中のメモリバッファ20の先頭フレームのアドレ
ス,最終フレームのアドレス,1フレームのサイズ,空
きチェーンの先頭フレームのアドレス,空きチェーンに
つながるフレームの数を検出して、それらを各々1つの
パラメータとしてパラメータ格納部14に格納する(S
2)。そして、必要なデータの読み出しを終えた時点で
読み出し部22に読み出しを停止させる。The parameter extracting unit 12 notifies the reading unit 22 of the target machine 2 connected by the cable K of the address of the header area 200, issues an instruction to read the contents subsequent to the address, and reads the contents. 22 reads out the contents of the header area 200 of the memory buffer 20 via the bus 21 in response to this instruction and sends it back via the cable K. Header area 2
The address of the first frame, the address of the last frame, the size of one frame, the address of the first frame of the empty chain, the number of frames connected to the empty chain, and the number of frames connected to the empty chain are detected as parameters. Stored in the storage unit 14 (S
2). Then, when the reading of necessary data is completed, the reading unit 22 stops reading.
【0018】以上のパラメータ抽出部12の処理によ
り、図2の状態のメモリバッファ20の場合、以下のよ
うなパラメータがパラメータ格納部14に追加される。 メモリバッファ20の先頭フレームのアドレス=401
0 メモリバッファ20の最終フレームのアドレス=407
0 1フレームのサイズ=10(バイト) 空きチェーンの先頭フレームのアドレス=4010 空きチェーンにつながるフレームの数=5By the processing of the parameter extracting unit 12 described above, the following parameters are added to the parameter storing unit 14 in the case of the memory buffer 20 in the state of FIG. Address of first frame of memory buffer 20 = 401
0 Address of the last frame of the memory buffer 20 = 407
0 1 frame size = 10 (bytes) Address of the first frame of the empty chain = 4010 Number of frames connected to the empty chain = 5
【0019】次に、制御部16はコピー部10を起動す
る。Next, the control unit 16 activates the copy unit 10.
【0020】コピー部10は、パラメータ格納部14に
格納されているメモリバッファ20の先頭フレームのア
ドレス「4010」をケーブルKを介して読み出し部2
2に通知して、そのアドレス以降の内容を読み出すよう
指示を出し、読み出し部22がこの指示に応答してメモ
リバイト20のアドレス「4010」以降の内容を読み
出してケーブルKを通じて送り返してくると、パラメー
タ格納部14に格納されている1フレームのサイズ「1
0」に基づいて各フレームの切り出しを行う。そして、
切り出した各フレームにそのフレームの先頭位置のアド
レス(最初のフレームは「4010」,以降は1フレー
ムのサイズをアドレスに換算した値だけ順次加算した
値)をカレントアドレスとして付加して、ワークメモリ
11に順次出力する(S3)。そして、パラメータ格納
部14に格納されているメモリバッファ20の最終フレ
ームのアドレス「4070」のフレームの切り出しを終
えた時点で、読み出し部22に読み出しの停止を指示す
る。The copy unit 10 reads the address “4010” of the first frame of the memory buffer 20 stored in the parameter storage unit 14 via the cable K
2 and instructs to read the contents after the address, and the reading unit 22 reads the contents after the address “4010” of the memory byte 20 in response to this instruction and sends them back through the cable K. The size of one frame stored in the parameter storage unit “1”
Each frame is cut out based on “0”. And
To each of the cut-out frames, the address of the head position of the frame (the first frame is “4010”, and thereafter, a value obtained by sequentially adding a value obtained by converting the size of one frame into an address) is added as a current address, and the work memory 11 is added. (S3). Then, when the cutout of the frame at the address “4070” of the last frame of the memory buffer 20 stored in the parameter storage unit 14 is completed, the reading unit 22 is instructed to stop reading.
【0021】以上のコピー部10の処理により、ワーク
メモリ11上に、図6に示すようにメモリバッファ20
を構成する各フレームF1〜F7にカレントアドレスを
付加したフレームが格納されることになる。By the above processing of the copy unit 10, the memory buffer 20 is stored in the work memory 11 as shown in FIG.
Are stored with the current address added to each of the frames F1 to F7 constituting.
【0022】次に制御部16は、ソート部13を起動
し、ソート処理S4を行わせる。Next, the control unit 16 activates the sorting unit 13 to perform the sorting process S4.
【0023】ソート部13は、図4に示すように、内部
変数A〜Jにそれぞれ必要なパラメータ或いは初期値を
設定し(S11)、ステップS12〜S16を実行する
ことにより、空きチェーンの先頭フレームから最終フレ
ームまでを検索して空きチェーン上の並び順にソート結
果格納メモリ15の空きチェーン格納域15aに格納す
る。また、ステップS17〜S22を実行することによ
り、空きチェーンにつながれていないフレームをソート
結果格納メモリ15の使用中フレーム格納域15bに格
納し、更にステップS23を実行することにより、その
他の情報をソート結果格納メモリ15の他情報格納域1
5cに格納する。以下、これらの処理をより詳細に説明
する。As shown in FIG. 4, the sorting unit 13 sets necessary parameters or initial values for the internal variables A to J (S11), and executes steps S12 to S16 to thereby execute the first frame of the empty chain. To the last frame and stored in the empty chain storage area 15a of the sort result storage memory 15 in the order of arrangement on the empty chain. Further, by executing steps S17 to S22, the frames not connected to the empty chains are stored in the used frame storage area 15b of the sort result storage memory 15, and further information is sorted by executing step S23. Other information storage area 1 of result storage memory 15
5c. Hereinafter, these processes will be described in more detail.
【0024】(1)ステップS12〜S16 ソート部13は、ステップS11で変数Dに設定された
空きチェーンの先頭フレームのアドレスを、変数Eに設
定された空きチェーンの終了コードと比較する(S1
2)。一致すれば、空きフレームが1つも存在しないの
で、処理S17へ進む。(1) Steps S12 to S16 The sorting unit 13 compares the address of the first frame of the empty chain set in the variable D in step S11 with the end code of the empty chain set in the variable E (S1).
2). If they match, there is no empty frame, and the process proceeds to step S17.
【0025】不一致の場合、ワークメモリ11からカレ
ントアドレスとして変数Dに設定されたアドレスを持つ
フレームを検索し、そのフレームをソート結果格納メモ
リ15の空きチェーン格納域15aに出力する(S1
3)。このとき、空きチェーン格納域15a内では、先
頭部分より順次書き込みを行う。If there is no match, a frame having the address set in the variable D as the current address is searched from the work memory 11, and the frame is output to the empty chain storage area 15a of the sort result storage memory 15 (S1).
3). At this time, in the empty chain storage area 15a, writing is sequentially performed from the head portion.
【0026】1つのフレームを出力すると、現在注目し
ているカレントアドレスDを、初期値が空集合である集
合変数Jに含める(S14)。これは、後の処理のため
に当該カレントアドレスDが空きフレームにかかるアド
レスであることを記憶しておくためである。When one frame is output, the current address D of interest is included in a set variable J whose initial value is an empty set (S14). This is to store that the current address D is an address relating to an empty frame for a later process.
【0027】次に、空きフレーム数の計数用の変数Gを
+1し(S15)、変数Dに、今回検索したフレーム中
のポインタ領域PTに設定されているアドレスを代入す
る(S16)。そして、ステップS12に戻る。Next, the variable G for counting the number of empty frames is incremented by 1 (S15), and the address set in the pointer area PT in the frame searched this time is substituted for the variable D (S16). Then, the process returns to step S12.
【0028】以上のような処理がワークメモリ11中の
図6に示した内容に対して実行されることにより、フレ
ームF1,フレームF7,フレームF3,フレームF
5,フレームF6の順に検索されて出力され、フレーム
F6のポインタ領域PTが変数Eに設定されている「0
000」に等しいので、その時点でステップS12から
ステップS17へ移行することになる。なお、ステップ
S12へ移行した時点のGの値は5である。The above processing is performed on the contents shown in FIG. 6 in the work memory 11, so that the frame F1, the frame F7, the frame F3, and the frame F
5, the frame F6 is retrieved and output in that order, and the pointer area PT of the frame F6 is set to the variable “0” “0”.
000 ", so that the process proceeds from step S12 to step S17 at that time. Note that the value of G at the time of shifting to step S12 is 5.
【0029】(2)ステップS17〜S22 ソート部13は、ステップS17において、変数Aに設
定されたメモリバッファ20の先頭フレームのアドレス
「4010」を変数Iに設定する。(2) Steps S17 to S22 In step S17, the sorting unit 13 sets the variable “I” to the address “4010” of the first frame of the memory buffer 20 set to the variable A.
【0030】次に、変数Iに設定されたアドレスが集合
変数Jに含まれているか否かを判断する(S18)。含
まれている場合、変数Iに設定されたアドレスをカレン
トアドレスに持つフレームは空きフレームなので、ステ
ップS21に進む。含まれていない場合、変数Iに設定
されたアドレスをカレントアドレスに持つフレームは空
きフレームでないので、ワークメモリ11からカレント
アドレスとしてIを持つフレームを検索し、ソート結果
格納メモリ15の使用中フレーム格納域15bに出力す
る。このとき、使用中フレーム格納域15b内では、先
頭部分より順次書き込みを行う。そして、使用中フレー
ムを計数するための変数Hを+1し(S20)、ステッ
プS21へ進む。Next, it is determined whether or not the address set in the variable I is included in the set variable J (S18). If it is included, the frame having the address set in the variable I at the current address is an empty frame, so the process proceeds to step S21. If it is not included, the frame having the address set in the variable I at the current address is not an empty frame. Therefore, a frame having I as the current address is searched from the work memory 11 and the used frame is stored in the sort result storage memory 15. Output to area 15b. At this time, in the in-use frame storage area 15b, writing is sequentially performed from the head portion. Then, a variable H for counting the number of frames in use is incremented by 1 (S20), and the process proceeds to step S21.
【0031】ステップS21では、変数Cに設定されて
いる1フレームのサイズに相当するアドレス値を、変数
Iに加算することにより、次に注目すべきカレントアド
レスを生成する。そして、このカレントアドレスを、変
数Bに設定されている最終フレームのアドレスと比較
し、I>Bならば、メモリバッファ20の最後のフレー
ムまで処理し終えたことになるので、ステップS23へ
進み、I≦BならばステップS18に戻って上述した処
理を繰り返す。In step S21, an address value corresponding to the size of one frame set in the variable C is added to the variable I to generate a current address to be noted next. Then, the current address is compared with the address of the last frame set in the variable B. If I> B, the processing has been completed up to the last frame of the memory buffer 20, so the process proceeds to step S23. If I ≦ B, the process returns to step S18 to repeat the above-described processing.
【0032】以上のような処理がワークメモリ11中の
図6に示した内容に対して実行されることにより、フレ
ームF2,フレームF4の順に検索されて使用中フレー
ム格納域15bに出力され、Hの値は2となる。The above processing is performed on the contents shown in FIG. 6 in the work memory 11, so that the frames F2 and F4 are searched in this order and output to the in-use frame storage area 15b. Is 2.
【0033】(3)ステップS23 変数Gの値(今の場合は5)を空きチェーンに実際につ
ながるフレームの数として、変数Hの値(今の場合は
2)を使用中フレーム数として、変数Fの値(今の場合
は5)を管理上の空きチェーン・フレーム数として、そ
れぞれソート結果格納メモリ15の他情報格納域15c
へ出力する。(3) Step S23 The value of the variable G (5 in this case) is set as the number of frames actually connected to the empty chain, and the value of the variable H (2 in this case) is set as the number of used frames. The value of F (5 in this case) is set as the number of empty chains / frames on the management, and the other information storage area 15c of the sorting result storage memory 15 is respectively provided.
Output to
【0034】制御部16は、ソート部13の処理が終わ
ると、ソート結果を出力する(S5)。即ち、ソート結
果格納メモリ15の空きチェーン格納域15aに格納さ
れた各空きフレームの内容をその格納順に、カレントア
ドレスを付記して表示装置17の画面に空きチェーン状
況として表示し、使用中フレーム格納域15bに格納さ
れた使用中フレームの内容をその格納順に、カレントア
ドレスを付記して表示装置17の画面に使用中フレーム
として表示する。また、他情報格納域15cに格納され
ている空きチェーンに実際につながるフレームの数,管
理上の空きチェーン・フレーム数,使用中フレーム数も
併せて表示する。When the processing of the sorting section 13 is completed, the control section 16 outputs a sorting result (S5). That is, the contents of each empty frame stored in the empty chain storage area 15a of the sort result storage memory 15 are displayed in the order of their storage in the screen of the display device 17 as the empty chain status with the current address added thereto, and the used frames are stored. The contents of the in-use frames stored in the area 15b are displayed as the in-use frames on the screen of the display device 17 with the current address added thereto in the order of storage. Further, the number of frames actually connected to the empty chain stored in the other information storage area 15c, the number of empty chains / frames for management, and the number of frames in use are also displayed.
【0035】以上のような処理が行われることにより、
表示装置17に、図7に示すような内容のメモリバッフ
ァ状態表示画面が表示される。利用者は、この画面の空
きチェーン状況を見れば、空きフレームが存在していた
か否か、空きフレームがどのような順序でチェーンされ
ているかを直ちに認識することができる。また、空きフ
レームの数も[使用中フレーム数]の欄で直ちに認識で
きる。更に、[空きチェーンに実際につながるフレーム
の数]と[管理上の空きチェーン・フレーム数]の欄と
を比較すれば、空きフレームの個数が正しくOSで管理
されていたか否かも判断できる。勿論、各フレームF1
〜F7に格納されている情報自体も表示されているた
め、それらの内容を確認することも可能である。By performing the above processing,
The display device 17 displays a memory buffer status display screen having contents as shown in FIG. By looking at the empty chain status on this screen, the user can immediately recognize whether or not there is an empty frame and in what order the empty frames are chained. Also, the number of empty frames can be immediately recognized in the column of [Number of used frames]. Further, by comparing the [number of frames actually connected to empty chains] column with the [number of empty chains / frames on management] column, it can be determined whether the number of empty frames has been correctly managed by the OS. Of course, each frame F1
Since the information itself stored in .about.F7 is also displayed, it is also possible to confirm the contents thereof.
【0036】以上本発明の実施例について説明したが、
本発明は以上の実施例にのみ限定されず、その他各種の
付加変更が可能である。例えば、上記実施例では、コピ
ー部10およびソート部13の処理に必要なパラメータ
の一部をパラメータ抽出部12によってメモリバッファ
20のヘッダ領域200から自動的に抽出するようにし
たが、これらを利用者がキーボード18から入力するよ
うに構成しても良い。The embodiments of the present invention have been described above.
The present invention is not limited to the above embodiments, and various other additions and changes are possible. For example, in the above-described embodiment, a part of the parameters necessary for the processing of the copy unit 10 and the sort unit 13 is automatically extracted from the header area 200 of the memory buffer 20 by the parameter extraction unit 12. The user may make an input from the keyboard 18.
【0037】[0037]
【発明の効果】以上説明したように本発明のチェーン方
式で管理されたメモリバッファの状態確認装置によれ
ば、確認対象となるメモリバッファにおける空きチェー
ンにつながれているフレームの内容がそのカレントアド
レスと共にチェーン上の並び順に表示装置の画面に表示
され、また空きチェーンにつながれていないフレームの
内容もそのカレントアドレスと共に表示されるため、各
フレームの内容を確認することができることは勿論のこ
と、空きフレームの存在の有無や空きフレームが存在す
る場合にはどういう順序でチェーン化されているかとい
ったメモリバッファの状態を一目で確認することができ
るという効果がある。As described above, according to the memory buffer status confirmation apparatus managed by the chain method according to the present invention, the contents of the frame connected to the empty chain in the memory buffer to be confirmed together with its current address. Since the contents of frames not connected to an empty chain are displayed together with their current addresses on the screen of the display device in the order of arrangement on the chain, it is possible to confirm the contents of each frame as well as the contents of each frame. It is possible to check at a glance the state of the memory buffer, such as the presence or absence of a frame and the order in which the frames are chained when an empty frame exists.
【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.
【図2】メモリバッファの構成例を示す図である。FIG. 2 is a diagram illustrating a configuration example of a memory buffer.
【図3】メモリバッファの状態を確認する際の状態確認
装置の処理例を示すフローチャートである。FIG. 3 is a flowchart illustrating a processing example of a state checking device when checking the state of a memory buffer;
【図4】図3のステップS4の詳細な流れの一部を示す
フローチャートである。FIG. 4 is a flowchart showing a part of a detailed flow of step S4 in FIG. 3;
【図5】図3のステップS4の詳細な流れの残りの部分
を示すフローチャートである。FIG. 5 is a flowchart showing the remaining part of the detailed flow of step S4 in FIG. 3;
【図6】ワークメモリに格納される内容の一例を示す図
である。FIG. 6 is a diagram showing an example of contents stored in a work memory.
【図7】表示装置に表示されるメモリバッファ状態表示
画面の一例を示す図である。FIG. 7 is a diagram illustrating an example of a memory buffer status display screen displayed on the display device.
1…状態確認装置 10…コピー部 11…ワークメモリ 12…パラメータ抽出部 13…ソート部 14…パラメータ格納部 15…ソート結果格納メモリ 15a…空きチェーン格納域 15b…使用中フレーム格納域 15c…他情報格納域 16…制御部 17…表示装置 18…キーボード 19…バス 2…ターゲットマシン 20…メモリバッファ 21…バス 22…読み出し部 CN1,CN2…コネクタ K…ケーブル DESCRIPTION OF SYMBOLS 1 ... State confirmation apparatus 10 ... Copy part 11 ... Work memory 12 ... Parameter extraction part 13 ... Sort part 14 ... Parameter storage part 15 ... Sort result storage memory 15a ... Empty chain storage area 15b ... Used frame storage area 15c ... Other information Storage area 16 Control unit 17 Display device 18 Keyboard 19 Bus 2 Target machine 20 Memory buffer 21 Bus 22 Read unit CN1, CN2 Connector K Cable
Claims (2)
ッファの空きフレームをポインタにてチェーン化して管
理しているターゲットマシンにおける前記メモリバッフ
ァの先頭フレームのアドレス,最終フレームのアドレ
ス,1フレームのサイズ,空きチェーンの先頭フレーム
のアドレスおよび空きチェーンの終了コードを格納する
パラメータ格納手段と、 該パラメータ格納手段に格納された情報に基づき、前記
メモリバッファを構成する各フレームを前記ターゲット
マシンから読み出し、前記ターゲットマシン上の各フレ
ームのアドレスをカレントアドレスとして付加してワー
クメモリにコピーするコピー手段と、 前記パラメータ格納手段に格納された情報に基づき、前
記ワークメモリ上において空きチェーンの先頭フレーム
から最終フレームまでを検索して空きチェーン上の並び
順にソート結果格納メモリの空きチェーン格納域に格納
すると共に、空きチェーンにつながれていないフレーム
を前記ソート結果格納メモリの使用中フレーム格納域に
格納するソート手段と、 前記ソート結果格納メモリの空きチェーン格納域および
使用中フレーム格納域の内容を表示装置の画面に表示す
る制御手段とを備えることを特徴とするチェーン方式で
管理されたメモリバッファの状態確認装置。1. An address of a first frame, an address of a last frame, a size of one frame, and an address of a first frame of a memory buffer in a target machine which manages an empty frame of a memory buffer composed of a plurality of frames by chaining with a pointer. Parameter storage means for storing the address of the first frame of the free chain and the end code of the free chain; and reading out each frame constituting the memory buffer from the target machine based on the information stored in the parameter storage means. Copying means for adding the address of each frame on the machine as a current address and copying the data to the work memory; and, based on the information stored in the parameter storage means, from the first frame of the empty chain to the last frame on the work memory. Sorting means for searching up to the system and storing in the free chain storage area of the sort result storage memory in the order of arrangement on the free chain, and storing frames not connected to the free chain in the used frame storage area of the sort result storage memory. And a control means for displaying the contents of an empty chain storage area and a used frame storage area of the sort result storage memory on a screen of a display device, wherein a state check apparatus of a memory buffer managed by a chain method is provided. .
リバッファのヘッダ領域から前記メモリバッファの先頭
フレームのアドレス,最終フレームのアドレス,1フレ
ームのサイズ,空きチェーンの先頭フレームのアドレス
を抽出して前記パラメータ格納手段に格納するパラメー
タ抽出手段を備えることを特徴とする請求項1記載のチ
ェーン方式で管理されたメモリバッファの状態確認装
置。2. The parameter storage means for extracting, from a header area of the memory buffer in the target machine, an address of a first frame of the memory buffer, an address of a last frame, a size of one frame, and an address of a first frame of an empty chain. 2. The apparatus according to claim 1, further comprising parameter extraction means for storing parameters in a memory system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5228053A JP2586799B2 (en) | 1993-08-20 | 1993-08-20 | Memory buffer status check device managed by chain method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5228053A JP2586799B2 (en) | 1993-08-20 | 1993-08-20 | Memory buffer status check device managed by chain method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0756801A JPH0756801A (en) | 1995-03-03 |
| JP2586799B2 true JP2586799B2 (en) | 1997-03-05 |
Family
ID=16870464
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5228053A Expired - Lifetime JP2586799B2 (en) | 1993-08-20 | 1993-08-20 | Memory buffer status check device managed by chain method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2586799B2 (en) |
-
1993
- 1993-08-20 JP JP5228053A patent/JP2586799B2/en not_active Expired - Lifetime
Non-Patent Citations (1)
| Title |
|---|
| 発明協会公開技報公技番号92−22191 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0756801A (en) | 1995-03-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH03266039A (en) | Free format data link processing system | |
| US7251808B2 (en) | Graphical debugger with loadmap display manager and custom record display manager displaying user selected customized records from bound program objects | |
| US5819024A (en) | Fault analysis system | |
| JP2586799B2 (en) | Memory buffer status check device managed by chain method | |
| JPH0719311B2 (en) | Data processing device | |
| JP3253224B2 (en) | Input/Output Command Test Equipment | |
| JPS60122435A (en) | Memory damp system | |
| JP2722684B2 (en) | File system search device | |
| JPH05173964A (en) | History acquisition system for input/output data | |
| JP3098501B2 (en) | Source step execution method and apparatus | |
| JPH0816382A (en) | Erroneously corrected line retrieving device | |
| JP2973520B2 (en) | Display method in electronic document editing device | |
| JPH024288A (en) | Image processor and method for managing its font file | |
| JP3111081B2 (en) | Data retrieval device | |
| JPH0836563A (en) | Document edition system and device for preparing document using the same | |
| JPH0896010A (en) | Logic circuit simulation result display device | |
| JPH04195222A (en) | Inspection system for module specifications | |
| JPH06231200A (en) | Circuit simulation device | |
| JPH06230951A (en) | Program development supporting device | |
| JPH0520319A (en) | Display controller | |
| JPH04297928A (en) | Method for outputting source program list | |
| JPH06230952A (en) | Program editing device | |
| JPH05181706A (en) | Device for forming execution time information output debugger control sentence | |
| JPH04259058A (en) | Document processor with space deleting function | |
| JPH08212188A (en) | Cause / effect graph creation device and sentence type classification device |