JPH0217540A - Constant registering processing method - Google Patents

Constant registering processing method

Info

Publication number
JPH0217540A
JPH0217540A JP16849788A JP16849788A JPH0217540A JP H0217540 A JPH0217540 A JP H0217540A JP 16849788 A JP16849788 A JP 16849788A JP 16849788 A JP16849788 A JP 16849788A JP H0217540 A JPH0217540 A JP H0217540A
Authority
JP
Japan
Prior art keywords
constant
data
registered
storage area
program
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.)
Granted
Application number
JP16849788A
Other languages
Japanese (ja)
Other versions
JP3007356B2 (en
Inventor
Tamami Shimada
島田 玲実
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 JP63168497A priority Critical patent/JP3007356B2/en
Publication of JPH0217540A publication Critical patent/JPH0217540A/en
Application granted granted Critical
Publication of JP3007356B2 publication Critical patent/JP3007356B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To reduce a constant storing area by adding and registering a noncoincident part only when the continuous part of the head of data to be newly registered and the continuous part of the end of the registered data are coincident. CONSTITUTION:When a constant registering request is received from a source program, the registered data are taken out of a constant storing area digit by digit, successively retrieved, the address of the head of data is stored into a register for a work and the data of one byte of the address are read. Next, the data are compared with one byte of a constant to receive the registration request, and when they are coincident, the next type of the registration constant is compared with the next byte of the constant storing area and this is repeated. When the completion of the registered data is detected, the part of the remainder of data registered is continuously added and registered after the registered data.

Description

【発明の詳細な説明】 〔概 要〕 計算機の原始プログラムを目的プログラムに翻訳スるコ
ンパイラの処理に関し、 原始プログラムに記述されている定数のデータを保持す
るための、目的プログラム上の定数格納域を縮小できる
定数登録処理方法を目的とし、原始プログラムを翻訳し
て、計算機で実行される目的プログラムを生成する場合
に、該原始プログラムに記述されている定数を表すデー
タを、該目的プログラムに設ける定数格納域に登録する
ための計算機の処理において、新たに登録すべき該デー
タの先頭の連続部分と、該定数格納域に登録されている
データの末尾の連続部分との一致を検索し、該一致が得
られ、且つ該登録すべきデータに該先頭の連続部分を除
いた残り部分がある場合には、該残り部分のみを該定数
格納域の該末尾の連続部分に続く領域に登録するように
構成する。
[Detailed Description of the Invention] [Summary] Regarding the processing of a compiler that translates a computer source program into a target program, a constant storage area on the target program is used to hold constant data written in the source program. When a source program is translated to generate an object program that is executed on a computer, data representing constants written in the source program is provided in the object program. In the computer process for registering data in the constant storage area, it searches for a match between the continuous part at the beginning of the data to be newly registered and the continuous part at the end of the data registered in the constant storage area, and If a match is found and the data to be registered has a remaining part after removing the first continuous part, only the remaining part is registered in the area following the last continuous part of the constant storage area. Configure.

〔産業上の利用分野] 本発明は、計算機の原始プログラムを目的プログラムに
翻訳するコンパイラの処理、特に原始プログラムに記述
されている定数のデータを目的プログラム上の定数格納
域に登録するための定数登録処理方法に関する。
[Industrial Application Field] The present invention relates to the processing of a compiler that translates a computer source program into a target program, and in particular, the processing of a compiler that translates a computer source program into a target program, and in particular, the processing of constants for registering constant data written in the source program in a constant storage area of the target program. Regarding registration processing method.

計算機における、C0BOLプログラミング言語等で記
述された原始プログラムを翻訳して、所要の計算機で実
行するための目的プログラムを生成する処理で、原始プ
ログラムに数値等の定数が記述されている場合には、目
的プログラム上に設ける定数格納域にそれら定数のデー
タを集めて登録しておき、所要のプログラムステップで
定数格納域の中の所要の部分のデータを参照するように
目的プログラムを生成することは、よく知られている通
りである。
In the process of translating a source program written in the C0BOL programming language etc. in a computer to generate a target program to be executed on the required computer, if constants such as numerical values are written in the source program, Collecting and registering the data of these constants in a constant storage area provided on the target program, and generating the target program so that the required program step refers to the data in the required part of the constant storage area is as follows: As is well known.

〔従来の技術〕[Conventional technology]

第2図は原始プログラムの翻訳処理を行う計算機の構成
例を示し、計算機で実行されるコンパイラ1は原始プロ
グラム2を入力して翻訳処理し、機械語生成部3によっ
て所要の計算機の機械語からなるプログラムに変換され
た目的プログラム4を出力する。
FIG. 2 shows an example of the configuration of a computer that performs translation processing of a source program. A compiler 1 executed on the computer inputs a source program 2 and performs translation processing, and a machine language generation unit 3 converts it into the required computer machine language. The target program 4 converted into the following program is output.

第3図(alに示す原始プログラム2はC0BOL言語
で記述されたプログラムの一部を示す例であり、例えば
公知のようにその中のプログラム文10は変数Aに定数
r345 Jを設定する処理を示す。
The source program 2 shown in FIG. 3 (al) is an example showing a part of a program written in the C0BOL language. For example, as is well known, the program statement 10 in the program executes the process of setting the constant r345 J to the variable A. show.

こ\で変数Aはプログラム文15で定義され、このプロ
グラム文15は変数Aが3桁の数字データであることを
示しているので、コンパイラ1はそれらに対応して、目
的プログラム4上に変数Aとして3バイトの記憶領域(
各1桁の数字データは1バイトとする)を取り、又定数
r345 Jを表す3バイトのデータを適当な記憶領域
に設定しておき、定数の記憶領域の内容を変数Aの記憶
領域へ転送する機械語のプログラムを生成する。
Here, variable A is defined in program statement 15, and program statement 15 indicates that variable A is 3-digit numerical data, so compiler 1 creates variables in target program 4 correspondingly. A is a 3-byte storage area (
(each 1-digit numeric data is 1 byte), set 3-byte data representing the constant r345J in an appropriate storage area, and transfer the contents of the constant storage area to the variable A storage area. Generate a machine language program to

そのために第2図の機械語生成部3が原始プログラム2
に記述された定数を検出すると、定数登録処理部5にそ
の登録定数を通知して、定数を記憶領域に設定する定数
登録を依頼し、その処理結果として定数の記憶領域のア
ドレスを受は取って、前記データ転送の機械語プログラ
ムの転送元記憶領域のアドレスに使用する。
For this purpose, the machine language generator 3 in Figure 2 is the source program 2.
When a constant written in is detected, it notifies the constant registration processing unit 5 of the registered constant, requests constant registration to set the constant in a storage area, and receives and receives the address of the storage area of the constant as a result of the processing. This is used as the address of the transfer source storage area of the machine language program for data transfer.

定数登録処理部5は定数格納域6を作業領域に持ってい
て、定数登録の依頼を受けると、定数格納域6の先頭か
ら詰めて順次登録定数を格納し、格納した登録定数の先
頭アドレスを機械語生成部3に返す。
The constant registration processing unit 5 has a constant storage area 6 in its work area, and when it receives a request for constant registration, it sequentially stores the registered constants from the beginning of the constant storage area 6, and stores the first address of the stored registered constant. It is returned to the machine language generation unit 3.

但し、その際定数格納域6に既に登録されているデータ
と登録定数を比較し、データの一部又は全部と定数が完
全に一致したならば、新たな登録は行わずに、登録済デ
ータの一致部分を使用することにし、一致部分の先頭の
アドレスを、定数の登録先のアドレスとして返し、この
ようにして定数格納域6の縮小をはかる。
However, at this time, the registered constants are compared with the data already registered in the constant storage area 6, and if part or all of the data and the constants completely match, the registered constants are saved without new registration. It is decided to use the matching part, and the first address of the matching part is returned as the address of the constant registration destination, thereby reducing the constant storage area 6.

例えば、第3図(a)の原始プログラム2におけるプロ
グラム文10〜13のように定数記述があった場合に、
機械語生成部3はプログラムに出現した順に逐次定数登
録を依頼するので、定数登録処理部5は先ずr345 
Jを定数格納域6の先頭に登録する。次にプログラム文
11に記述されたr789 Jの登録依頼があると、r
789 Jと定数格納域6に登録済のr345 Jを比
較し一致しないので、定数格納域60r345 Jに続
く位置に追加登録する。しかし、次のプログラム文12
の定数r345 Jは登録済のデータと一致するので追
加登録は行われずに先頭から3桁のデータがそのま\使
用される。
For example, if there are constant descriptions like program statements 10 to 13 in source program 2 in FIG. 3(a),
Since the machine language generation unit 3 sequentially requests constant registration in the order in which they appear in the program, the constant registration processing unit 5 first registers r345.
Register J at the beginning of constant storage area 6. Next, when there is a registration request for r789J written in program statement 11, r
789 J is compared with r345 J, which has already been registered in constant storage area 6, and since they do not match, it is additionally registered in the position following r345 J in constant storage area 60. However, the following program statement 12
Since the constant r345J matches the registered data, no additional registration is performed and the first three digits of data are used as is.

次のプログラム13の定数r457891Jは既登録デ
ータとr45789 Jまで一致するが、完全な一致が
得られないので、r457891Jが追加登録され、プ
ログラム文14の定数r345789Jは既に登録され
たデータの中に完全に一致する部分があるので追加登録
はされない。
The constant r457891J of the next program 13 matches the already registered data up to r45789J, but since a complete match cannot be obtained, r457891J is additionally registered, and the constant r345789J of program statement 14 matches the already registered data completely. Since there is a matching part, no additional registration will be made.

第4図は定数登録処理部5の処理の流れを示し、定数登
録依願を受けると定数格納域6から登録したデータを1
桁づつ取り出して順次検索するものとして、先ず所要の
制御値の初期設定をした後処理ステップ20で定数格納
域6に未検索データが残っているか識別し、残っていな
ければ(登録が無い場合を含む)直ちに処理ステップ2
9で追加登録し、処理ステップ30で登録した領域の先
頭のアドレスを機械語生成部3に返す。
FIG. 4 shows the process flow of the constant registration processing unit 5. When a constant registration request is received, the registered data is transferred from the constant storage area 6 to 1.
Assuming that digits are retrieved and searched sequentially, first, the required control values are initialized, and in post-processing step 20, it is determined whether unsearched data remains in the constant storage area 6. including) immediate processing step 2
9, and the start address of the area registered in step 30 is returned to the machine language generation unit 3.

定数格納域6にデータがある場合には、処理ステップ2
1で残りのデータの先頭のアドレスを作業用のレジスタ
に記憶して、処理ステップ22でそのアドレスの1バイ
トのデータを読み出す。
If there is data in constant storage area 6, process step 2
At step 1, the first address of the remaining data is stored in a working register, and at step 22, 1 byte of data at that address is read out.

処理ステップ23で受は取っている定数の1バイト目と
定数格納域6から読み出したデータとを比較し、一致し
なければ処理ステップ20に戻って、レジスタに記憶し
であるアドレスにより、定数格納域6の終わりか識別し
、このようにして登録定数の1バイト目と一致するデー
タを定数格納域6に登録済のデータの先頭から検索する
In processing step 23, the receiver compares the first byte of the constant it has taken with the data read from the constant storage area 6, and if they do not match, it returns to processing step 20 and stores the constant at the address stored in the register. The end of area 6 is identified, and in this way, data matching the first byte of the registered constant is searched from the beginning of the data registered in constant storage area 6.

その結果一致するデータが有った場合には、処理ステッ
プ23から処理ステップ24に進んで、登録定数に次の
桁(今の場合は2バイト目)があるか識別し、無い場合
(即ち今の場合は1バイトの定数の場合)は登録定数と
完全に一致する部分が登録済のデータの中にあった場合
であるので、処理ステップ28で先にレジスタに記憶し
であるアドレス(一致部分の先頭バイトのアドレス)を
機械語生成部3に返す。
As a result, if there is matching data, the process proceeds from processing step 23 to processing step 24 to identify whether the registered constant has the next digit (in this case, the second byte), and if there is no matching data (in other words, the current (in the case of a 1-byte constant) is a case where there is a part that completely matches the registered constant in the registered data, so in processing step 28, the address (matching part) is stored in the register first. (address of the first byte) is returned to the machine language generation unit 3.

登録定数に次の桁が残っている場合には、処理ステップ
25で識別して定数格納域6に次のデータがあれば処理
ステップ26で次の1バイトを読み出し、処理ステップ
27で登録定数の次のバイトと比較する。その結果不一
致であれば処理ステップ20に戻り、なお登録済データ
が残っていれば、次のバイトから前記と同様の処理をや
り直す。
If the next digit remains in the registered constant, it is identified in processing step 25, and if the next data exists in the constant storage area 6, the next 1 byte is read out in processing step 26, and the next digit is read out in processing step 27. Compare with next byte. If the result is a mismatch, the process returns to step 20, and if registered data remains, the same process as above is repeated from the next byte.

処理ステップ27で一致が得られた場合には、処理ステ
ップ24に戻り、このようにして登録定数の次のバイト
と定数格納域6に登録されているデータの次のハイドと
の比較を一致が続く限り、何れかのデータが終わるまで
繰り返す。その結果、登録定数が先に終われば、登録定
数と完全に一致する部分が登録済のデータの中にあった
場合で、前記のように処理ステップ24から処理ステッ
プ28に進んで処理を終わる。
If a match is found in processing step 27, the process returns to processing step 24, and in this way the next byte of the registered constant is compared with the next hide of the data registered in the constant storage area 6 to find a match. Repeat as long as possible until some data is completed. As a result, if the registered constant is completed first, if there is a portion in the registered data that completely matches the registered constant, the process proceeds from process step 24 to process step 28 as described above, and the process ends.

又定数格納域6に登録済のデータの方が先に終われば、
完全に一致する部分が無い場合であり、処理ステップ2
5から処理ステップ29に進んで、前記のように登録定
数を追加登録する。
Also, if the data registered in constant storage area 6 finishes first,
This is a case where there is no completely matching part, and processing step 2
5, the process proceeds to step 29, where registration constants are additionally registered as described above.

以上のようにして、原始プログラムの全体について定数
登録を終わると、機械語生成部3は定数登録処理部5の
作った定数格納域6を目的プログラム4の領域に組み込
む。
After completing the constant registration for the entire source program as described above, the machine language generation section 3 incorporates the constant storage area 6 created by the constant registration processing section 5 into the area of the target program 4.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

前記の処理方法によれば、定数格納域6に登録済の定数
データの中に、登録定数と完全に一致する部分がある場
合のみ既登録データが利用され、部分的に一致しても全
く利用することができないが、部分的にのみ一致する場
合も可能な限り既登録データを利用するようにすれば、
定数格納域の所要量を更に減少することができる。
According to the above processing method, the registered constant data is used only when there is a part that completely matches the registered constant among the constant data registered in the constant storage area 6, and even if there is a partial match, it is not used at all. However, if you try to use already registered data as much as possible even if there is only a partial match,
Constant storage requirements can be further reduced.

本発明は、原始プログラムに記述されている定数のデー
タを保持するための、目的プログラム上の定数格納域を
縮小できる定数登録処理方法を目的とする。
An object of the present invention is to provide a constant registration processing method that can reduce the constant storage area on a target program for holding constant data written in a source program.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は、本発明の構成を示す処理の流れ図である。 FIG. 1 is a process flowchart showing the configuration of the present invention.

図は定数登録処理の流れを示し、処理ステップ40〜処
理ステツプ47において登録定数の一部と登録済データ
の末尾が一致する場合を検出し、その場合には処理ステ
ップ51で定数の不一致部分のみを追加登録する。
The figure shows the flow of constant registration processing. In processing steps 40 to 47, a case where a part of the registered constant matches the end of the registered data is detected. In that case, processing step 51 detects only the unmatched part of the constant. Register additionally.

〔作 用〕[For production]

原始プログラムを翻訳して、計算機で実行される目的プ
ログラムを生成する場合に、原始プログラムに記述され
ている定数を表すデータを、定数登録処理部5が目的プ
ログラムに設ける定数格納域に登録する処理を行う。
A process of registering data representing constants written in the source program in a constant storage area provided in the target program by the constant registration processing unit 5 when a source program is translated to generate a target program to be executed on a computer. I do.

その場合に、処理ステップ40〜47の処理によって新
たに登録すべき定数データの先頭の連続部分と、定数格
納域に登録されているデータの末尾の連続部分との一致
を検索する。
In this case, the processing in steps 40 to 47 searches for a match between the continuous part at the beginning of the constant data to be newly registered and the continuous part at the end of the data registered in the constant storage area.

その結果−敗が得られた場合に、登録すべきデータの先
頭の連続部分を除いた残りの部分がある場合には、処理
ステップ51においてその残り部分のみを定数格納域の
該末尾の連続部分に続く領域に登録する。
As a result, if a loss is obtained, and if there is a remaining part of the data to be registered except for the first continuous part, in processing step 51, only the remaining part is transferred to the last continuous part of the constant storage area. Register in the area following.

以上の処理方法により、登録すべきデータと登録済デー
タに一部分の一致がある場合の一部について登録済デー
タの利用が可能になり、定数格納域の減少が可能になる
With the above processing method, when there is a partial match between the data to be registered and the registered data, the registered data can be used for part of the data, and the constant storage area can be reduced.

〔実施例〕〔Example〕

計算機の構成は第2図と同様とし、但しコンパイラ1の
定数登録処理部5は本発明により第1図に示すように処
理を実行する。
The configuration of the computer is the same as that shown in FIG. 2, except that the constant registration processing section 5 of the compiler 1 executes the processing as shown in FIG. 1 according to the present invention.

定数登録処理部5は定数登録依頼を受けると従来と同様
に定数格納域6から登録済データを1桁づつ取り出して
順次検索するものとして、先ず所要の制御値の初期設定
をした後処理ステップ40で定数格納域6に未検索デー
タが残っているか識別し、残っていなければ直ちに処理
ステップ49で追加登録し、処理ステップ50で登録し
た領域の先頭のアドレスを機械語生成部3に返す。
When the constant registration processing unit 5 receives a constant registration request, it extracts the registered data one digit at a time from the constant storage area 6 and sequentially searches it as in the past, and first initializes the required control values in a post-processing step 40. It is determined whether unsearched data remains in the constant storage area 6, and if it does not, it is immediately additionally registered in a processing step 49, and the start address of the registered area is returned to the machine language generation unit 3 in a processing step 50.

定数格納域6にデータがある場合には、処理ステップ4
1で残りのデータの先頭のアドレスを作業用のレジスタ
に記憶して、処理ステップ42でそのアドレスの1バイ
トのデータを読み出し、処理ステップ43で受は取って
いる定数の1バイト目と定数格納域6から読み出したデ
ータとを比較し、−致しなければ処理ステップ40に戻
って定数格納域6の終わりか識別し、このようにして登
録定数の1バイト目と一致するデータを検索する。
If there is data in constant storage area 6, process step 4
In step 1, the first address of the remaining data is stored in the working register, in processing step 42, 1 byte of data at that address is read, and in processing step 43, the receiver stores the first byte of the received constant and the constant. The data read from area 6 is compared, and if they do not match, the process returns to step 40 to identify whether it is the end of constant storage area 6 and thus search for data that matches the first byte of the registered constant.

その結果一致するデータが有った場合には、処理ステッ
プ44に進んで、登録定数に次の桁があるか識別し、無
い場合は登録定数と完全に一致する部分が登録済のデー
タの中にあった場合であるので、処理ステップ48で先
にレジスタに記憶しであるアドレスを機械語生成部3に
返す。
If there is matching data, the process proceeds to step 44 to identify whether the registered constant has the next digit, and if there is no matching data, the part that completely matches the registered constant is found in the registered data. Therefore, in step 48, the address is stored in the register and returned to the machine language generation unit 3.

登録定数に次の桁が残っている場合には、処理ステップ
45で定数格納域6に次のデータがあるか識別し、有れ
ば処理ステップ46で次の1バイトを読み出して、処理
ステップ47で登録定数の次のバイトと比較し、その結
果不一致であれば処理ステップ40に戻る。
If the next digit remains in the registered constant, it is determined in processing step 45 whether the next data exists in constant storage area 6, and if there is, the next 1 byte is read in processing step 46, and processing step 47 The registered constant is compared with the next byte of the registered constant, and if the result does not match, the process returns to step 40.

処理ステップ47で一致が得られた場合には、処理ステ
ップ44に戻り、このようにして登録定数の次のバイト
と定数格納域6に登録されているデータの次のバイトと
の比較を進める。
If a match is obtained in processing step 47, the process returns to processing step 44, and the comparison between the next byte of the registered constant and the next byte of data registered in the constant storage area 6 is proceeded in this way.

その結果、登録定数が先に終われば、登録定数と完全に
一致する部分が登録済のデータの中にあった場合で、前
記のように処理ステップ48に進んで処理を終わる。
As a result, if the registered constant is completed first, in which case there is a part in the registered data that completely matches the registered constant, the process proceeds to step 48 and ends the process as described above.

又処理ステップ45で登録済のデータが終わったことを
検出した場合は、定数格納域6に登録済のデータの末尾
の部分が、登録するデータの先頭から中間の桁までの部
分と一致した場合である。そこでこの場合には処理ステ
ップ45から処理ステップ51へ進み、登録するデータ
の前記一致部分を除いた残りの部分のみを、定数格納域
6の登録済データの後に続けて追加登録し、次いで処理
ステップ48で前記のように、処理ステップ41で記憶
しであるアドレス(登録するデータの先頭バイトと一致
した登録済データのバイトのアドレス)を機械語生成部
3に返す。
In addition, if it is detected in processing step 45 that the registered data has ended, the last part of the registered data in the constant storage area 6 matches the part from the beginning to the middle digit of the data to be registered. It is. Therefore, in this case, the process proceeds from process step 45 to process step 51, and only the remaining part of the data to be registered except for the matching part is additionally registered following the registered data in constant storage area 6, and then process step At step 48, as described above, the address stored at step 41 (the address of the byte of the registered data that matches the first byte of the data to be registered) is returned to the machine language generation unit 3.

以上の処理によれば、例えば第3図(a)の原始プログ
ラム2と同様の例について第3図(b)に示すように、
プログラム文10〜13の定数記述に対して、従来のよ
うにプログラム文10の定数r345 Jを定数格納域
6の先頭に登録し、次にプログラム文11の定数r78
9 Jを定数格納域6のr345 Jに続く位置に追加
登録し、次のプログラム文12の定数r345 Jは登
録済のデータと一致するので追加登録は行われない。
According to the above processing, for example, as shown in FIG. 3(b) for an example similar to the source program 2 in FIG. 3(a),
For the constant descriptions of program statements 10 to 13, the constant r345J of program statement 10 is registered at the beginning of the constant storage area 6, and then the constant r78 of program statement 11 is registered as before.
9 J is additionally registered in the position following r345 J in the constant storage area 6, and since the constant r345 J in the next program statement 12 matches the registered data, no additional registration is performed.

次のプログラム13の定数r457891Jは、既登録
データの中に完全に一致する部分は無いが、既登録デー
タの末尾と定数の前部r45789 Jが一致するので
、定数の末尾の不一致部分「1」のみが追加登録される
。次のプログラム文14のr345789Jは従来同様
に追加登録しない。
The constant r457891J of the following program 13 does not have a completely matching part in the registered data, but since the end of the registered data and the front part of the constant r45789J match, the unmatched part at the end of the constant is "1". will be additionally registered. The next program statement 14, r345789J, is not additionally registered as in the conventional case.

従ってこの処理方法による結果である第3図(blの定
数格納域6を第3図(alと比較して明らかなように、
所要の格納領域量が減少する。
Therefore, as can be seen by comparing the constant storage area 6 of FIG. 3 (bl) with FIG. 3 (al), which is the result of this processing method,
The amount of storage space required is reduced.

計算機の構成例ブロック図 第 図 定数登録の説明図 第 図Computer configuration example block diagram No. figure Diagram of constant registration No. figure

Claims (1)

【特許請求の範囲】 原始プログラムを翻訳して、計算機で実行される目的プ
ログラムを生成する場合に、該原始プログラムに記述さ
れている定数を表すデータを、該目的プログラムに設け
る定数格納域に登録するための計算機の処理(40〜5
1)において、新たに登録すべき該データの先頭の連続
部分と、該定数格納域に登録されているデータの末尾の
連続部分との一致を検索し(40〜47)、 該一致が得られ、且つ該登録すべきデータに該先頭の連
続部分を除いた残り部分がある場合には、該残り部分の
みを該定数格納域の該末尾の連続部分に続く領域に登録
する(51)ことを特徴とする定数登録処理方法。
[Claims] When a source program is translated to generate a target program to be executed on a computer, data representing constants written in the source program is registered in a constant storage area provided in the target program. Computer processing for (40-5
In 1), search for a match between the continuous part at the beginning of the data to be newly registered and the continuous part at the end of the data registered in the constant storage area (40 to 47), and if the match is found. , and if the data to be registered has a remaining part after excluding the continuous part at the beginning, register only the remaining part in the area following the continuous part at the end of the constant storage area (51). Characteristic constant registration processing method.
JP63168497A 1988-07-05 1988-07-05 Compiling device Expired - Fee Related JP3007356B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63168497A JP3007356B2 (en) 1988-07-05 1988-07-05 Compiling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63168497A JP3007356B2 (en) 1988-07-05 1988-07-05 Compiling device

Publications (2)

Publication Number Publication Date
JPH0217540A true JPH0217540A (en) 1990-01-22
JP3007356B2 JP3007356B2 (en) 2000-02-07

Family

ID=15869180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63168497A Expired - Fee Related JP3007356B2 (en) 1988-07-05 1988-07-05 Compiling device

Country Status (1)

Country Link
JP (1) JP3007356B2 (en)

Also Published As

Publication number Publication date
JP3007356B2 (en) 2000-02-07

Similar Documents

Publication Publication Date Title
CN109408588A (en) A kind of method of breakpoint transmission when database synchronization initialization loading
JPH0217540A (en) Constant registering processing method
JPH0423167A (en) Command retrieving system
JP2922025B2 (en) Name search method
JPS62169273A (en) Registration and reference system for label information in language processing program
JPS6316334A (en) In-line evolving system for machine word defined optionally by user
JPS63257030A (en) Character string retrieving circuit
JP2735255B2 (en) Hatching treatment method
JPS63170742A (en) Retrieval processing system for common character string
JPH0269832A (en) System for processing definition operator in expression processing
WO2021028029A1 (en) A network packet processor for processing a data packet
JP3018579B2 (en) Name search processor
JPH034366A (en) Data base inquiry processing system
JPH07121665A (en) Compiling method and retrieving method for character recognition dictionary
JPH0232468A (en) Character string data retrieving system
JPS63221422A (en) Threshold value setting comparison and storage device
JPH0546666A (en) Information retrieving device
JPS6358540A (en) Register/reference system for file buffer
JPS63205730A (en) Information retrieving device
JPH08329095A (en) Data retrieval system for relational data base
JPH0421179A (en) Character string retrieving system
JPH03273341A (en) Allocation system for literal optimization
JPH05108719A (en) Information retrieving device
JPH0325675A (en) Information retrieval system
JPH05216763A (en) Address translation system using two-stage tlb

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees