JPH0594296A - Data area constitution list display system - Google Patents
Data area constitution list display systemInfo
- Publication number
- JPH0594296A JPH0594296A JP3256102A JP25610291A JPH0594296A JP H0594296 A JPH0594296 A JP H0594296A JP 3256102 A JP3256102 A JP 3256102A JP 25610291 A JP25610291 A JP 25610291A JP H0594296 A JPH0594296 A JP H0594296A
- Authority
- JP
- Japan
- Prior art keywords
- data area
- configuration list
- data
- list
- area configuration
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、PASCAL言語で記
述されたソースプログラムにおいて、ソースプログラム
中の変数宣言部で宣言されたグローバル変数、ローカル
変数および手続き・関数頭部で宣言されたパラメータに
対し、どのグローバル変数が、メモリ内のどの位置に、
どれだけのサイズで割り付けられたか、またローカル変
数やパラメータがスタック上のどの位置にどれだけのサ
イズで割り付けられたかを示す、グローバル変数、ロー
カル変数およびパラメータの割り付け状態を表形式で表
示することを可能とする、PASCAL言語のデータ領
域構成一覧表示方式に関するものである。BACKGROUND OF THE INVENTION The present invention relates to a global variable, a local variable and a parameter declared at the head of a procedure / function in a source program written in the PASCAL language. , Which global variable is at which position in memory,
A tabular display of the allocation status of global variables, local variables and parameters, showing how much size was allocated and where and how much local variables and parameters were allocated on the stack. The present invention relates to a data area configuration list display method in the PASCAL language that is enabled.
【0002】[0002]
【従来の技術】従来、PASCAL言語で記述されたソ
ースプログラムの変数宣言部で宣言されたグローバル変
数、ローカル変数、および手続き・関数頭部で宣言され
たパラメータの割り付け状態を生成する場合には、それ
ぞれのグローバル変数の型とサイズ、そして、グローバ
ル変数の割り付け位置をメモリ内の先頭位置からのオフ
セットで示し、ローカル変数およびパラメータの型とサ
イズ、割り付け位置をスタック内のフレームポインタか
らのオフセットで示すような形式でデータ領域構成一覧
を表示している。2. Description of the Related Art Conventionally, in the case of generating an allocation state of global variables, local variables declared in a variable declaration part of a source program written in the PASCAL language, and parameters declared in a procedure / function head, The type and size of each global variable, and the allocation position of the global variable are indicated by the offset from the start position in memory, and the type and size of the local variables and parameters and the allocation position are indicated by the offset from the frame pointer in the stack. The data area structure list is displayed in such a format.
【0003】[0003]
【発明が解決しようとする課題】従来、PASCAL言
語で記述されたソースプログラムの変数宣言部で宣言さ
れたグローバル変数、ローカル変数、および手続き・関
数頭部で宣言されたパラメータのデータ領域の割り付け
状態を表示する場合には、それぞれのグローバル変数の
型とサイズ、そして、グローバル変数の割り付け位置を
メモリ内の先頭位置からのオフセットで示し、ローカル
変数およびパラメータの型とサイズ、割り付け位置をス
タック内のフレームポインタからのオフセットで示すよ
うな形式でしかデータ領域構成一覧を表示することが出
来ないため、割り付け状態が視覚的に把握しにくいとい
う欠点がある。Conventionally, the allocation state of the global variable, local variable declared in the variable declaration part of the source program written in the PASCAL language, and the data area of the parameter declared in the procedure / function head. When displaying, the type and size of each global variable and the allocation position of the global variable are shown as an offset from the start position in memory, and the type and size of the local variable and parameter and the allocation position are stored in the stack. Since the data area configuration list can be displayed only in the format indicated by the offset from the frame pointer, there is a drawback that it is difficult to visually grasp the allocation state.
【0004】本発明の目的は、ソースプログラムの変数
宣言部で宣言されたグローバル変数、ローカル変数、お
よび手続き・関数頭部で宣言されたパラメータのデータ
領域の割り付け状態を、それぞれの変数およびパラメー
タの型とサイズ、そして、変数およびパラメータの割り
付け位置を表形式で表示し、ソースプログラム開発時の
データ領域の割り付け状態を生成し、プログラムのデバ
ッグ等を行う際に、それぞれの変数およびパラメータの
割り付け状態が視覚的に把握でき、大規模プログラムの
開発を行いやすくシステムを提供することにある。An object of the present invention is to determine the allocation state of the data area of the global variables, local variables, and parameters declared in the procedure / function head declared in the variable declaration part of the source program. Displays the type and size, and variable and parameter allocation positions in a table format, generates the data area allocation status during source program development, and allocates each variable and parameter when debugging the program. Is to provide a system that can be visually grasped and facilitates the development of large-scale programs.
【0005】[0005]
【課題を解決するための手段】第1の発明は、PASC
AL言語で記述されたソースプログラムに対するデータ
領域構成一覧表示方式において、コマンドによって指示
された入力ソースファイルの名称を解析するコマンド解
析手段と、前記名称によって指示されたソースプログラ
ムを入力し予め決められた項目の内部データを生成する
データ領域構成一覧生成手段と、生成された前記内部デ
ータを用いてデータ領域構成一覧を編集するデータ領域
構成一覧編集手段と、編集された前記データ領域構成一
覧を出力するデータ領域構成一覧出力手段とを有するこ
とを特徴とする。A first invention is a PASC.
In the data area structure list display method for the source program described in the AL language, the command analysis means for analyzing the name of the input source file designated by the command, and the source program designated by the name are input and predetermined. A data area configuration list generating means for generating internal data of an item, a data area configuration list editing means for editing the data area configuration list using the generated internal data, and an edited data area configuration list are output. And a data area configuration list output means.
【0006】[0006]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は本発明によるデータ領域構成一覧表
示方式の一実施例を示すブロック図である。Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a data area configuration list display method according to the present invention.
【0007】同図においてデータ領域構成一覧処理部2
は、コマンド7によって指示された入力ファイル名をコ
マンド解析手段3によって認識し、認識したファイル名
を持ちPASCAL言語で記述された入力ソースファイ
ル1を入力し、データ領域構成一覧生成手段4により内
部データを生成する処理を行い、データ領域構成一覧編
集手段5により処理された結果を編集し、データ領域構
成一覧出力手段6により、出力リスト8に結果を出力す
る。In the figure, the data area configuration list processing unit 2
Recognizes the input file name designated by the command 7 by the command analysis means 3, inputs the input source file 1 having the recognized file name and described in the PASCAL language, and the data area configuration list generation means 4 inputs internal data. Is generated, the result processed by the data area configuration list editing means 5 is edited, and the result is output to the output list 8 by the data area configuration list output means 6.
【0008】図2は、入力ソースプログラムの一例を示
す図であり、図3〜図8はデータ領域構成一覧表示方式
のデータ領域構成一覧処理部2におけるデータ領域構成
一覧生成手段4において生成される、内部データ形式の
説明図である。データ領域構成一覧生成手段4によって
生成された内部データは、図3のグローバルデータ領域
構成一覧テーブルと、図4の関数effectのローカ
ルデータ領域構成一覧テーブルと、図5の手続きche
ckerのローカルデータ領域構成一覧テーブルと、図
6の型名登録用テーブルと、図7の配列型の範囲テーブ
ルと、図8の配列型データの構成一覧テーブルによって
構成される。FIG. 2 is a diagram showing an example of the input source program, and FIGS. 3 to 8 are generated by the data area configuration list generation means 4 in the data area configuration list processing unit 2 of the data area configuration list display method. 3 is an explanatory diagram of an internal data format. FIG. The internal data generated by the data area structure list generation means 4 includes the global data area structure list table of FIG. 3, the local data area structure list table of the function effect of FIG. 4, and the procedure che of FIG.
cker local data area configuration list table, type name registration table of FIG. 6, array type range table of FIG. 7, and array type data configuration list table of FIG.
【0009】グローバルデータ領域構成一覧テーブル
(図3)には、入力ソースプログラム(図2)から入力
されたグローバルレベルの変数宣言部で宣言されている
変数を全てグローバルデータ領域構成一覧テーブルの
“データ名”というフィールドに登録し、同時にその変
数のサイズとメモリ内の位置を“サイズ”と“オフセッ
ト”というフィールドにそれぞれ登録する。この時、こ
の変数の持つ属性を型名登録用テーブル(図6)の“n
ame”というフィールドに登録し、グローバルデータ
領域構成一覧テーブル(図3)の“型名登録用テーブル
へのポインタ”というフィールドにポインタを入れ関連
づける。また、変数の型が配列型の場合には、その配列
型データが詰め有りかどうかを示すフラグを配列型デー
タの構成一覧テーブル(図8)の“詰め有りかどうか”
というフィールドに登録する。そして、配列型の範囲テ
ーブル(図7)の“range”というフィールドにそ
の配列型の変数のもつ範囲を登録し、配列型データの構
成一覧テーブル(図8)の“配列型の範囲テーブルへの
ポインタ”というフィールドにポインタをはり関連づけ
る。さらに、その配列型データのもつ型名を型名登録用
テーブル(図6)に登録し、配列型データの構成一覧テ
ーブル(図8)の“1要素の型名を示す型名登録用テー
ブルへのポインタ”というフィールドにポインタをはり
関連づける。最後に、その配列型データが多次元の場合
には、その次の次元の配列型データの構成を示す配列型
データの構成一覧テーブル(図8)のインデックスを示
す値を配列型データの構成一覧テーブル(図8)の“次
の次元の構成情報を示す配列型データの構成一覧テーブ
ルへのポインタ”というフィールドにセットする。そこ
で登録された配列型データの構成一覧テーブル(図8)
からグローバルデータ領域構成一覧テーブル(図3)の
“配列型データの構成一覧テーブルへのポインタ”とい
うフィールドにポインタをはり関連づける。さらに、関
数effectのローカルデータ領域構成一覧テーブル
(図4)には、入力ソースプログラムから入力された関
数effectの関数頭部で宣言された関数名やパラメ
ータと関数effectのローカルレベルの変数宣言部
で宣言されている変数を全て関数effectのローカ
ルデータ領域構成一覧テーブル(図5)の“データ名”
というフィールドに登録し、同時にそのパラメータや変
数のサイズとスタックフレーム内の位置を関数effe
ctのローカルデータ領域構成一覧テーブル(図4)の
“サイズ”と“オフセット”というフィールドにそれぞ
れ登録する。その他のフィールドへのデータの登録方法
は、グローバルデータ領域構成一覧テーブル(図3)へ
の登録方法と同様である。また、手続きchecker
のローカルデータ領域構成一覧テーブル(図5)には、
入力ソースプログラムから入力された手続きcheck
erの手続き頭部で宣言されたパラメータと手続きch
eckerのローカルレベルの変数宣言部で宣言されて
いる変数を全て“データ名”というフィールドに登録
し、同時にそのパラメータや変数のサイズとスタックフ
レーム内の位置を“サイズ”と“オフセット”というフ
ィールドのそれぞれ登録する。その他のフィールドへの
データの登録方法は、グローバルデータ領域構成一覧テ
ーブル(図3)への登録方法と同様である。In the global data area configuration list table (FIG. 3), all variables declared in the global level variable declaration section input from the input source program (FIG. 2) are stored in the "data" table of the global data area configuration list table. The size of the variable and the position in memory are registered in the fields of "name" and "size" and "offset", respectively. At this time, the attribute of this variable is set to “n” in the type name registration table (FIG. 6).
It is registered in the field "ame", and a pointer is associated in the field "Pointer to type name registration table" of the global data area configuration list table (Fig. 3). If the variable type is an array type, A flag indicating whether or not the array type data is packed is added to the "Listed or not packed" flag in the array type data structure list table (FIG. 8).
Register in the field. Then, the range of the array type variable is registered in the field "range" of the array type range table (FIG. 7), and the range of the array type data configuration list table (FIG. 8) is changed to the "array type range table". A pointer is associated with a field called "pointer". Further, the type name of the array type data is registered in the type name registration table (FIG. 6), and the type name registration table showing the type name of one element of the array type data configuration list table (FIG. 8) is registered. A pointer is associated with a field called "pointer". Finally, when the array type data is multidimensional, the value indicating the index of the array type data configuration list table (FIG. 8) showing the configuration of the array data of the next dimension is set to the array type configuration list. It is set in a field of the table (FIG. 8) "pointer to configuration list table of array type data indicating configuration information of next dimension". Configuration list table of array type data registered there (Fig. 8)
To the field "Pointer to the configuration list table of array type data" of the global data area configuration list table (FIG. 3) to associate them. Furthermore, in the local data area structure list table of the function effect (FIG. 4), the function name and parameters declared in the function head of the function effect input from the input source program and the local level variable declaration part of the function effect are described. All declared variables are "data names" in the local data area configuration list table (Fig. 5) of the function effect.
Field and the size of the parameter and variable and the position in the stack frame at the same time as the function effe.
It is registered in the "size" and "offset" fields of the ct local data area configuration list table (FIG. 4), respectively. The method of registering data in the other fields is the same as the method of registering in the global data area configuration list table (FIG. 3). Also, the procedure checker
The local data area configuration list table (Fig. 5) of
Procedure check input from the input source program
Parameters declared in the procedure head of er and procedure ch
All variables declared in the local level variable declaration part of ecker are registered in the "data name" field, and at the same time, the size of the parameter or variable and its position in the stack frame are stored in the "size" and "offset" fields. Register each. The method of registering data in the other fields is the same as the method of registering in the global data area configuration list table (FIG. 3).
【0010】図9は、入力ソースプログラム(図2)を
データ領域構成一覧処理部2に入力した結果出力され
る、出力リストの例である。FIG. 9 shows an example of an output list output as a result of inputting the input source program (FIG. 2) to the data area configuration list processing unit 2.
【0011】[0011]
【発明の効果】以上説明したように、本発明では、PA
SCAL言語で記述されたソースプログラムのデータ領
域構成一覧を生成する際に、ソースプログラムのグロー
バルレベルの変数宣言部で宣言された変数のデータ領域
の割り付け状態や、手続き・関数頭部で宣言されたパラ
メータと手続き・関数のローカルレベルの変数宣言部で
宣言された変数のスタックフレーム内での割り付け状態
をそれぞれの変数の型とサイズ、そして、変数の割り付
け位置を表形式で表示することができるため、ソースプ
ログラムの開発時にデータ領域の割り付け状態を生成
し、プログラムのデバッグ等を行う際には、それぞれの
変数の割り付け状態が視覚的に把握できるようになるた
め、大規模プログラムの開発を行いやすくなるという効
果がある。As described above, according to the present invention, the PA
When generating the data area structure list of the source program written in SCAL language, the allocation status of the variable data area declared in the global-level variable declaration part of the source program, or the declaration of the procedure / function head Because the allocation status in the stack frame of the variables declared in the variable declaration section at the local level of the parameter and procedure / function can be displayed in the form of table, the type and size of each variable and the allocation position of the variable can be displayed. , It is easy to develop a large-scale program because the allocation status of the data area is generated during the development of the source program and the allocation status of each variable can be visually grasped when debugging the program. There is an effect of becoming.
【図1】本発明によるデータ領域構成一覧表示方式の一
実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a data area configuration list display method according to the present invention.
【図2】本実施例の入力ソースプログラムの一例を示す
図である。FIG. 2 is a diagram showing an example of an input source program of this embodiment.
【図3】本実施例のグローバルデータ領域構成一覧テー
ブルを示す図である。FIG. 3 is a diagram showing a global data area configuration list table according to the present embodiment.
【図4】本実施例の関数effectのローカルデータ
領域構成一覧テーブルを示す図である。FIG. 4 is a diagram showing a local data area configuration list table of a function effect of the present embodiment.
【図5】本実施例の手続きcheckerのローカルデ
ータ領域構成一覧テーブルを示す図である。FIG. 5 is a diagram showing a local data area configuration list table of a procedure checker of the present embodiment.
【図6】本実施例の型名登録用テーブルを示す図であ
る。FIG. 6 is a diagram showing a model name registration table of the present embodiment.
【図7】本実施例の配列型の範囲テーブルを示す図であ
る。FIG. 7 is a diagram showing an array type range table of the present embodiment.
【図8】本実施例の配列型データの構成一覧テーブルを
示す図である。FIG. 8 is a diagram showing a configuration list table of array type data according to the present embodiment.
【図9】本実施例の出力リストの例を示す図である。FIG. 9 is a diagram showing an example of an output list of this embodiment.
1 入力ソースファイル 2 データ領域構成一覧処理部 3 コマンド解析手段 4 データ領域構成一覧生成手段 5 データ領域構成一覧編集手段 6 データ領域構成一覧出力手段 7 コマンド 8 出力リスト DESCRIPTION OF SYMBOLS 1 input source file 2 data area structure list processing unit 3 command analysis unit 4 data area structure list generation unit 5 data area structure list editing unit 6 data area structure list output unit 7 command 8 output list
Claims (1)
グラムに対するデータ領域構成一覧表示方式において、
コマンドによって指示された入力ソースファイルの名称
を解析するコマンド解析手段と、前記名称によって指示
されたソースプログラムを入力し予め決められた項目の
内部データを生成するデータ領域構成一覧生成手段と、
生成された前記内部データを用いてデータ領域構成一覧
を編集するデータ領域構成一覧編集手段と、編集された
前記データ領域構成一覧を出力するデータ領域構成一覧
出力手段とを有することを特徴とするデータ領域構成一
覧表示方式。1. A data area structure list display method for a source program written in PASCAL language,
Command analysis means for analyzing the name of the input source file designated by the command, and data area configuration list generation means for inputting the source program designated by the name and generating internal data of predetermined items,
Data comprising data area configuration list editing means for editing a data area configuration list using the generated internal data, and data area configuration list output means for outputting the edited data area configuration list Area configuration list display method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3256102A JPH0594296A (en) | 1991-10-03 | 1991-10-03 | Data area constitution list display system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3256102A JPH0594296A (en) | 1991-10-03 | 1991-10-03 | Data area constitution list display system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0594296A true JPH0594296A (en) | 1993-04-16 |
Family
ID=17287920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3256102A Pending JPH0594296A (en) | 1991-10-03 | 1991-10-03 | Data area constitution list display system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0594296A (en) |
-
1991
- 1991-10-03 JP JP3256102A patent/JPH0594296A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6961924B2 (en) | Displaying variable usage while debugging | |
JPH0594296A (en) | Data area constitution list display system | |
JPH0756768A (en) | Automatic testing method corresponding to data type | |
JPH08255012A (en) | Plant operation recording and report generating device | |
JPS6254337A (en) | Specification displaying system for program hierarchy | |
JPH04336326A (en) | Display system for data area assignment state | |
JP2731572B2 (en) | Logic simulation method | |
JPH0488469A (en) | Device for issuing business management document or the like | |
JPH04273328A (en) | Generation system for cross-reference list | |
JP2811804B2 (en) | Variable output range specification method | |
JP3224386B2 (en) | Program creation device | |
JP3722854B2 (en) | Data editing device | |
JPH0527933A (en) | Crt screen display system for application program | |
JPH04330521A (en) | Cross reference list forming system | |
JPH05119989A (en) | Program specification management system | |
JPS63163964A (en) | Drawing issuing system for flow chart | |
JPS63196934A (en) | System for generating window by window attribute data base | |
JPS6146529A (en) | Defining method of attribute in programing | |
JPH07262253A (en) | Automatic graphic generation device | |
JPH0895787A (en) | Parallel support task image display system | |
JPH02214964A (en) | Computer system | |
JPS63219075A (en) | Processing system for parts list automatic preparation | |
JPH0264744A (en) | Fault analyzing information acquiring system | |
JPH02268324A (en) | Filling system | |
JPH0243612A (en) | System for registering data to file |