JPH0368029A - Output system for message text - Google Patents

Output system for message text

Info

Publication number
JPH0368029A
JPH0368029A JP1204493A JP20449389A JPH0368029A JP H0368029 A JPH0368029 A JP H0368029A JP 1204493 A JP1204493 A JP 1204493A JP 20449389 A JP20449389 A JP 20449389A JP H0368029 A JPH0368029 A JP H0368029A
Authority
JP
Japan
Prior art keywords
error
message
address
text
error number
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
JP1204493A
Other languages
Japanese (ja)
Inventor
Seiko Kawakami
川上 斉子
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1204493A priority Critical patent/JPH0368029A/en
Publication of JPH0368029A publication Critical patent/JPH0368029A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To read out the message at high speed without executing a text retrieval with an error number by applying a prescribed arithmetic processing to the error number, and deriving clearly a table address of an error message. CONSTITUTION:When an error number is received, a compiler 1 checks whether its error number exists in a built-in error number table 1a or not. When the error number exists, the error number is read out and inputted to an arithmetic circuit 20. The arithmetic circuit 20 denotes the error number concerned as (i), for instance, executes the conversion of (i-1) X 4 and derives the reference address of an error message number table 10. This reference address is deter mined clearly, and an address of a text corresponding to the reference address is determined. Subsequently, the compiler 1 executes an access to the area concerned of an error message text table 11 from the read-out text address.

Description

【発明の詳細な説明】 [概要コ エラーメツセージ等のメツセージ本文を出力するメツセ
ージ本文の出力方式に関し、 エラーメツセージ本文の読出しの高速化とメモリの有効
利用を図ることを目的とし、 エラー番号テーブルにエラー番号が格納されたコンパイ
ラと、メツセージ本文とそのアドレスが格納されたエラ
ーメツセージ番号テーブルと、本文のアドレスに対応し
た番地にその本文の長さとメツセージ本文が格納された
エラーメツセージ本文テーブルを具備し、メツセージ出
力時には、前記エラー番号に所定の演算処理を加えてメ
ツセージ本文が格納されたアドレスを一義的に求め、そ
のアドレスに対応するエラーメツセージ番号テーブルか
ら読出した本文アドレスを基にエラーメソセージ本文テ
ーブルをアクセスして該当するメツセージ本文を読出す
ように構成する。
[Detailed Description of the Invention] [Summary Regarding the message body output method for outputting message bodies such as co-error messages, the purpose of this is to speed up the reading of error message bodies and make effective use of memory. It is equipped with a compiler that stores error numbers, an error message number table that stores the message body and its address, and an error message body table that stores the length and message body of the message at the address corresponding to the address of the body. When outputting a message, the error number is subjected to predetermined arithmetic processing to uniquely find the address where the message body is stored, and the error message body is generated based on the body address read from the error message number table corresponding to that address. It is configured to access the table and read the corresponding message body.

[産業上の利用分野] 本発明は、エラーメツセージ等のメツセージ本文を出力
するメツセージ本文の出力方式に関する。
[Industrial Field of Application] The present invention relates to a message body output method for outputting a message body such as an error message.

近年のソフトウェア使用時のエラー等に関するメツセー
ジのサービス強化に伴い、メツセージ本文の出ノjがザ
ボートされているが、多量のメツセージの蓄積とサービ
スの高速化が要請されてきている。
In recent years, with the enhancement of message services related to errors when using software, etc., the output of message bodies has been curtailed, but there has been a demand for the accumulation of large amounts of messages and for faster services.

[従来の技術] 第4図は、エラーメツセージを出力する場合の従来方式
の説明図である。1はコンパイラであり、その内部にエ
ラー番号が格納されたエラー番号テーブル1aが含まれ
ている。2はエラーメツセージ本文がエラー番号と対で
格納されたエラーメツセージテーブルである。このよう
に構成されたシステムにおいて、エラーメツセージ番号
が入力されると、コンパイラ1は人力されたエラー番号
から例えば2分検索法等の方法を用いてエラーメツセー
ジテーブル2を検索する。そして、見付かったエラー番
号に対応したエラーメツセージテーブル2をアクセスし
、該当番地に入っているメツセージ本文を読出していた
[Prior Art] FIG. 4 is an explanatory diagram of a conventional method for outputting an error message. 1 is a compiler, which includes an error number table 1a in which error numbers are stored. 2 is an error message table in which error message texts are stored in pairs with error numbers. In the system configured as described above, when an error message number is input, the compiler 1 searches the error message table 2 using a method such as a binary search method based on the manually entered error number. Then, the error message table 2 corresponding to the found error number is accessed and the message text contained in the corresponding address is read.

[発明が解決しようとする課題] 従来の方式では、エラー番号テーブル1aから目的とす
るエラーメツセージ番号を検索するのに非常に時間がか
かっていた。更に、従来の方式では、メツセージ本文を
格納する領域の大きさを最大長のメッセヅージに合わせ
た大きさに固定していた。従って、メツセージの短いメ
ツセージが格納される場合には、空いた領域は無駄にな
っていた。
[Problems to be Solved by the Invention] In the conventional method, it took a very long time to search the error message number from the error number table 1a. Furthermore, in the conventional system, the size of the area for storing the message body is fixed to a size that matches the maximum length of the message. Therefore, when a short message is stored, the free space is wasted.

本発明はこのような課題に鑑みてなされたものであって
、エラーメツセージ本文の読出しの高速化とメモリの有
効利用を図ることができるメツセージ本文の出力方式を
提供することを目的としている。
The present invention has been made in view of these problems, and an object of the present invention is to provide a message body output method that can speed up the reading of the error message body and make effective use of memory.

[課題を解決するための手段] 第1図は本発明方式の原理ブロック図である。[Means to solve the problem] FIG. 1 is a block diagram of the principle of the system of the present invention.

第4図と同一のものは、同一の符号を付して示す。Components that are the same as those in FIG. 4 are designated by the same reference numerals.

図において、1はエラー番号テーブル1aにエラー番号
が格納されたコンパイラ、10はエラー番号に対応する
番地に本文のアドレスが格納されたエラーメツセージ番
号テーブル、11は本文のアドレスに対応した番地にそ
の本文の長さとメツセージ本文が格納されたエラーメツ
セージ本文テーブルである。
In the figure, 1 is the compiler in which the error number is stored in the error number table 1a, 10 is the error message number table in which the address of the text is stored in the address corresponding to the error number, and 11 is the compiler in which the address corresponding to the text is stored. This is an error message body table that stores the length of the message body and the message body.

[作用] メツセージ出力時には、エラー番号テーブル1aから目
的のエラー番号を参照してエラー番号に所定の演算処理
を加えて、一義的にエラーメツセージ番号テーブル10
の該当アドレスを求め、該エラーメツセージ番号テーブ
ル10から読出した本文アドレスを基にエラーメツセー
ジ本文テーブル11をアクセスして該当するメツセージ
本文を読出すようにする。本発明によれば、エラー番号
で本文検索を行わずに、メツセージを読出すことができ
るので、処理の高速化とメモリの削減が図れる。
[Function] When outputting a message, the target error number is referred to from the error number table 1a, a predetermined calculation process is applied to the error number, and the message is uniquely output from the error message number table 10.
The error message text table 11 is accessed based on the text address read from the error message number table 10 to read the corresponding message text. According to the present invention, a message can be read without performing a text search using an error number, so that processing speed can be increased and memory requirements can be reduced.

[実施例] 以下、図面を参照して本発明の実施例を詳細に説明する
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第2図は本発明の一実施例を示す構成ブロック図である
。第1図と同一のものは、同一の符号を付して示す。図
において、1はコンパイラで、その内部にエラー番号を
格納するエラー番号テーブル1aを内蔵している。20
はエラー番号テーブル1aから読出されたエラー番号に
所定の演算処理を加えてアドレスを求める演算回路であ
る。該演算回路20の出力は、エラーメツセージ番号テ
ーブル10の同一アドレスの部分をアクセスする。
FIG. 2 is a block diagram showing an embodiment of the present invention. Components that are the same as those in FIG. 1 are designated by the same reference numerals. In the figure, 1 is a compiler, which includes an error number table 1a for storing error numbers. 20
is an arithmetic circuit that performs predetermined arithmetic processing on the error number read from the error number table 1a to obtain an address. The output of the arithmetic circuit 20 accesses the portion of the error message number table 10 at the same address.

エラーメツセージ番号テーブル10は、前述したように
アドレスと本文アドレスの対より構成さ、れている。こ
こで、各本文アドレスとしては、メツセージ本文が格納
されている番地の先頭アドレスが書込まれている。
As described above, the error message number table 10 is composed of pairs of addresses and text addresses. Here, as each text address, the first address of the address where the message text is stored is written.

エラーメツセージ番号テーブル10から読出された本文
アドレスはエラーメツセージ本文テーブル11のアドレ
スをアクセスする。エラーメッセ−ジ本文テーブル11
は、図に示すように本文の長さを示す部分とメツセージ
本文より構成されている。このように、本文の長さとそ
の本文を対で格納することにより、メツセージ本文が格
納される部分を可変長領域とすることができ、メモリの
有効利用を図ることができる。つまり、本発明によれば
、第3図に示すように、長さとメツセージ本文の組合わ
せをじゅずつなぎに収納することができるので、メモリ
に無駄がない。つまり、メモリの有効利用を図ることが
できる。このように構成されたシステムの動作を説明す
れば、以下のとおりである。
The text address read from the error message number table 10 accesses the address of the error message text table 11. Error message body table 11
As shown in the figure, the message consists of a part indicating the length of the message and the message body. In this way, by storing the length of the message and the body in pairs, the portion where the message body is stored can be made into a variable length area, and memory can be used effectively. In other words, according to the present invention, as shown in FIG. 3, combinations of length and message text can be stored in a continuous manner, so there is no waste of memory. In other words, memory can be used effectively. The operation of the system configured as described above will be explained as follows.

コンパイラ1はエラー番号を受取ると、そのエラー番号
が内蔵のエラー番号テーブル1aに存在するかどうかチ
エツクする。エラー番号が存在した場合には、当該エラ
ー番号を読出して演算回路20に人力する。演算回路2
0は、エラー番号を人力すると当該エラー番号をiとし
て、例えば(i−1)X4なる変換演算を行ってエラー
メツセージ番号テーブル10の参照アドレスを求める。
When the compiler 1 receives an error number, it checks whether the error number exists in the built-in error number table 1a. If an error number exists, the error number is read out and input to the arithmetic circuit 20 manually. Arithmetic circuit 2
0, when the error number is entered manually, the reference address of the error message number table 10 is obtained by performing a conversion operation such as (i-1)X4, using the error number as i.

この参照アドレスは一義的に定まるものであり、当該参
照アドレスに対応した本文のアドレス(先頭アドレス)
が定まる。
This reference address is uniquely determined, and the address (first address) of the text corresponding to the reference address
is determined.

そして、コンパイラ1は読出した本文アドレスからエラ
ーメツセージ本文テーブル11の該当領域をアクセスす
る。その領域には、エラーメツセージ本文と当該メツセ
ージの長さ情報が格納されている。ここで、コンパイラ
1は、当該長さ分だけの情報を読出して出力する。つま
り、エラーメツセージ本文テーブル11の先頭に格納さ
れている長さ分だけの情報がとりもなおさず当該メツセ
ージ本文の長さとなる。本発明によれば、エラーメツセ
ージ本文テーブル11.からエラーメツセージ情報を読
出すにあたって従来方式のように検索を行う必要1よな
いので、メツセージ情報の読出しに要する時間が大幅に
削減される。従って、本発明によれば、エラー番号で本
文検索を行わずに、メツセージを読出すことができるの
で、処理の高速化とメモリの削減が図れる。
Then, the compiler 1 accesses the corresponding area of the error message text table 11 from the read text address. The error message body and length information of the message are stored in that area. Here, the compiler 1 reads and outputs information corresponding to the length. In other words, the information corresponding to the length stored at the beginning of the error message body table 11 becomes the length of the message body. According to the present invention, error message body table 11. Since there is no need to perform a search as in the conventional method when reading out error message information from the system, the time required to read out the message information is significantly reduced. Therefore, according to the present invention, a message can be read without performing a text search using an error number, so that processing speed can be increased and memory requirements can be reduced.

上述の説明では、エラーメツセージを出力する場合を例
にとって説明したが、本発明はこれに限るものではなく
、その他の種類のメツセージを出力する場合にも同様に
適用することができる。
In the above description, the case where an error message is outputted has been explained as an example, but the present invention is not limited to this, and can be similarly applied to the case where other types of messages are outputted.

[発明の効果コ 以上、詳細に説明したように、本発明によればコンパイ
ラ内に含まれるエラー番号テーブルに対し、このエラー
番号に所定の演算を施したものをアドレスとしてアドレ
スと本文アドレスが格納されているエラーメツセージ番
号テーブルを一義的にアクセスして、読出した本文アド
レスからエラーメツセージ本文テーブルをアクセスする
ことができ、処理の高速化とメモリの削減を図ることが
できる。
[Effects of the Invention] As explained in detail above, according to the present invention, an address and a text address are stored in the error number table included in the compiler, with the error number subjected to a predetermined operation as an address. It is possible to uniquely access the error message number table stored in the error message number table and access the error message text table from the read text address, thereby speeding up processing and reducing memory requirements.

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

第1図は本発明方式の原理ブロック図、第2図は本発明
の一実施例を示す構成ブロック図、 第3図はエラーメツセージ本文テーブルの収納状態を示
す図、 第4図は従来方式の説明図である。 第1図において、 1はコンパイラ、 1aはエラー番号テーブル、 10はエラーメツセージ番号テーブル、11はエラーメ
ツセージ本文テーブルである。
Fig. 1 is a principle block diagram of the method of the present invention, Fig. 2 is a configuration block diagram showing an embodiment of the invention, Fig. 3 is a diagram showing the storage state of the error message text table, and Fig. 4 is a diagram of the conventional method. It is an explanatory diagram. In FIG. 1, 1 is a compiler, 1a is an error number table, 10 is an error message number table, and 11 is an error message text table.

Claims (1)

【特許請求の範囲】 エラー番号テーブル(1a)にエラー番号が格納された
コンパイラ(1)と、 メッセージ本文とそのアドレスが格納されたエラーメッ
セージ番号テーブル(10)と、 本文のアドレスに対応した番地にその本文の長さとメッ
セージ本文が格納されたエラーメッセージ本文テーブル
(11)を具備し、 メッセージ出力時には、前記エラー番号に所定の演算処
理を加えてメッセージ本文が格納されたアドレスを一義
的に求め、そのアドレスに対応するエラーメッセージ番
号テーブル(10)から読出した本文アドレスを基にエ
ラーメッセージ本文テーブル(11)をアクセスして該
当するメッセージ本文を読出すようにしたことを特徴と
するメッセージ本文の出力方式。
[Claims] A compiler (1) in which an error number is stored in an error number table (1a), an error message number table (10) in which a message body and its address are stored, and an address corresponding to the address of the body. is equipped with an error message body table (11) in which the length of the message body and the message body are stored, and when a message is output, a predetermined arithmetic processing is performed on the error number to uniquely determine the address where the message body is stored. , the error message text table (11) is accessed based on the text address read from the error message number table (10) corresponding to the address, and the corresponding message text is read out. Output method.
JP1204493A 1989-08-07 1989-08-07 Output system for message text Pending JPH0368029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1204493A JPH0368029A (en) 1989-08-07 1989-08-07 Output system for message text

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1204493A JPH0368029A (en) 1989-08-07 1989-08-07 Output system for message text

Publications (1)

Publication Number Publication Date
JPH0368029A true JPH0368029A (en) 1991-03-25

Family

ID=16491442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1204493A Pending JPH0368029A (en) 1989-08-07 1989-08-07 Output system for message text

Country Status (1)

Country Link
JP (1) JPH0368029A (en)

Similar Documents

Publication Publication Date Title
JP2665111B2 (en) Vector processing equipment
KR960015518A (en) Signal processor
JPH0248931B2 (en)
US4764896A (en) Microprocessor assisted memory to memory move apparatus
JPS5995660A (en) Data processor
US6356988B1 (en) Memory access system, address converter, and address conversion method capable of reducing a memory access time
JPH0368029A (en) Output system for message text
JPH0831033B2 (en) Data processing device
JPS6168636A (en) Data processor
JPS6148174B2 (en)
JPH0285943A (en) Data processor
JPH0248733A (en) information processing equipment
JPS61198351A (en) Direct memory access control circuit
JPH03127126A (en) Information processor
JPH0223439A (en) Data processor
JPH031233A (en) Pipeline control system information processor
JPS60114937A (en) Microprogram processing unit
JPH05242135A (en) Data loading system
JPS63241647A (en) Microprocessor
JPH047762A (en) Memory access method
JPH01219930A (en) Indirect addressing interrupt control circuit device
JPH04145553A (en) Buffer storage device
JPS6145342A (en) Information processor having variable length data transfer function
JPS63172356A (en) Address translation method
JPH04225426A (en) Data storage