JPH03252820A - Optimum object generating/processing system - Google Patents

Optimum object generating/processing system

Info

Publication number
JPH03252820A
JPH03252820A JP5086690A JP5086690A JPH03252820A JP H03252820 A JPH03252820 A JP H03252820A JP 5086690 A JP5086690 A JP 5086690A JP 5086690 A JP5086690 A JP 5086690A JP H03252820 A JPH03252820 A JP H03252820A
Authority
JP
Japan
Prior art keywords
model
skeleton
device type
object skeleton
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.)
Pending
Application number
JP5086690A
Other languages
Japanese (ja)
Inventor
Akihiko Takahashi
明彦 高橋
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP5086690A priority Critical patent/JPH03252820A/en
Publication of JPH03252820A publication Critical patent/JPH03252820A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To omit the correction of an optimum object skeleton for each device type by obtaining each device type through a system, choosing an optimum object skeleton for each device type out of a device type-based object skeleton table storing previously the object skeletons, and generating an object program. CONSTITUTION:A code generating part 4 shifts the control once and at first, calls out a device type acquiring means 1 in order to acquire the device types through a system, then inputs an intermediate object program 5. If the input is not through yet with the whole program 5, an optimum object skeleton of each device type is obtained via a device type-based object skeleton table 3 based on the device type acquired by the means 1. Then the read program 5 is outputted as an object program 6 via an acquired optimum object skeleton. Thus no correction is required to the optimum object for each device type.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コンピュータシステムにおけるコンパイラが
出力するオブジェクトプログラムのための最適オブジェ
クト生成処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an optimal object generation processing method for an object program output by a compiler in a computer system.

〔従来の技術〕[Conventional technology]

従来、この種の最適オブジェクト生成処理方式は、一つ
のO8(オペレーティングシステム)に複数の機種があ
り、各機種により同じハードウェア命令に対して実行性
能が良い機種と悪い機種があるとか、命令セットが異な
る機種があるとき、コンパイラなどのコード生成部内に
定義しであるオブジェクトスケルトンを各機種ごとに最
適なオブジェクトスケルトンに変更し、オブジエクトを
生成するという方法をとっている。
Conventionally, this type of optimal object generation processing method has been developed because there are multiple models of one O8 (operating system), and each model has good execution performance and bad execution performance for the same hardware instruction, and instruction set. When there are different types of machines, a method is used in which the object skeleton defined in a code generator such as a compiler is changed to the optimal object skeleton for each model and the object is generated.

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

上述した従来の最適オブジェクト生成方式は、各機種ご
とに最適なオブジェクトスケルトンに変更し、オブジェ
クト生成を行っているため、各機種ごとに最適なオブエ
ジェクトの修正が必要とな本発明の最適オブジェクト生
成処理方式は、一つのO8(オペレーティングシステム
)に複数の機種があるシステムにおけるコンパイラなど
のコード生成部の処理において、最初に一度だけ制御を
移して機種の型をシステムから取得る機種取得手段と、
複数の機種別オブジェクトスケルトンを保有する機種別
オブジェクトスケルトンテーブルと、前記機種取得手段
から取得した機種の型をもとに前記機種別オブジェクト
スケルトンテーブルから最適オブジェクトスケルトンを
入手するオブジェクトスケルトン取得手段と、中間オブ
ジェクトプログラムから前記最適のオブジェクトスケル
トンに従ってオブジェクトプログラムを生成するコード
生成部とを有することにより構成される。
The conventional optimal object generation method described above generates objects by changing the optimal object skeleton for each model, so the optimal object generation method of the present invention requires modification of the optimal object for each model. The processing method includes a model acquisition means that transfers control only once at the beginning and obtains the model type from the system in the processing of a code generation unit such as a compiler in a system where one O8 (operating system) has multiple models;
a model-specific object skeleton table having a plurality of model-specific object skeletons; an object skeleton obtaining means for obtaining an optimal object skeleton from the model-specific object skeleton table based on the model type obtained from the model-specific object skeleton table; and a code generation unit that generates an object program from the object program according to the optimal object skeleton.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例の構成図で、この実施例は
最初に一度だけ制御を移し、機種の型を取得する機種取
得手段1、機種別オブジェクトスケルトンを格納する機
種別オブジェクトスケルトンテーブル3、機種別オブジ
ェクトスケルトンテーブル3から機種の型に対応するオ
ブジェクトスケルトンを得るオブジェクトスケルトン取
得手段2、中間オブジェクトプログラム5を入力し、オ
ブジェクトスケルトン取得手段2から得た機種別の最適
なオブジェクトスケルトンからオブジェクトプログラム
6を出力するコード生成部4とから構成されている。
FIG. 1 is a configuration diagram of an embodiment of the present invention. In this embodiment, control is first transferred only once, and a model acquisition means 1 that obtains the model type, a model-specific object skeleton that stores a model-specific object skeleton, and a model-specific object skeleton that stores a model-specific object skeleton. Object skeleton acquisition means 2 obtains an object skeleton corresponding to the model type from table 3, object skeleton by model table 3, and intermediate object program 5 is input, and from the optimal object skeleton for each model obtained from object skeleton acquisition means 2. The code generation section 4 outputs an object program 6.

第2図はコード生成部4の動作フローで、第2図を参照
すると、コード生成部4は、最初に一度だけ制御を移し
、機種の型をシステムから取得するために機種取得手段
1を呼出しくステップ21)、中間オブジェクトプログ
ラム5を入力する(ステップ21)。中間オブジェクト
プログラム5の全ての入力が終了したかを判定する(ス
テップ23)。終了していなければ機種取得手段1かち
得た機種の型から各機種別の最適なオブジェクトスケル
トンを機種別オブジェクトスケルトンテーブル3から得
る(ステップ24)。読込んだ中間オブジェクトスケル
トンプログラム5を入手した最適なオブジェクトスケル
トンによりオブジェクトプログラム6として出力する(
ステップ25)。ステップ23で入力が終了するまでス
テップ22から25の処理を繰返す。
FIG. 2 shows the operation flow of the code generation unit 4. Referring to FIG. 2, the code generation unit 4 first transfers control only once and calls the model acquisition means 1 to acquire the model type from the system. (step 21), and inputs the intermediate object program 5 (step 21). It is determined whether all inputs to the intermediate object program 5 have been completed (step 23). If not completed, the optimal object skeleton for each model is obtained from the model-specific object skeleton table 3 based on the model type obtained by the model acquisition means 1 (step 24). Output the read intermediate object skeleton program 5 as an object program 6 using the obtained optimal object skeleton (
Step 25). Steps 22 to 25 are repeated until the input is completed in step 23.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、各機種の型をシステムか
ら得て、各機種ごとに最適なオブジェクトスケルトンを
予め格納している機種別オブジェクトスケルトンテーブ
ルから選定し、オブジェクトプログラムを生成すること
により、各機種ごとに最適なオブジェクトスケルトンへ
の修正が不必要となるという効果がある。
As explained above, the present invention obtains the type of each model from the system, selects the optimal object skeleton for each model from the model-specific object skeleton table stored in advance, and generates an object program. This has the effect that it becomes unnecessary to modify the optimal object skeleton for each model.

第1図のコード生成部の動作のフローである。2 is a flowchart of the operation of the code generator shown in FIG. 1;

1・・・・・・機種別取得手段、2・・・・・・オブジ
ェクトスケルトン取得手段、3・・・・・・機種別オブ
ジェクトスケルトンテーブル、4・・・・・・コード生
成部、5・・・・・・中間オブジェクトプログラム、6
・・・・・・オブジェクトプログラム。
1... Model-specific acquisition means, 2... Object skeleton acquisition means, 3... Model-specific object skeleton table, 4... Code generation unit, 5. ...Intermediate object program, 6
...Object program.

Claims (1)

【特許請求の範囲】[Claims] 一つのOS(オペレーティングシステム)に複数の機種
があるシステムにおけるコンパイラなどのコード生成部
の処理において、最初に一度だけ制御を移して機種の型
をシステムから取得る機種取得手段と、複数の機種別オ
ブジェクトスケルトンを保有する機種別オブジェクトス
ケルトンテーブルと、前記機種取得手段から取得した機
種の型をもとに前記機種別オブジェクトスケルトンテー
ブルから最適オブジェクトスケルトンを入手するオブジ
ェクトスケルトン取得手段と、中間オブジェクトプログ
ラムから前記最適のオブジュケトスケルトンに従ってオ
ブジェクトプログラムを生成するコード生成部とを有す
ることを特徴する最適オブジェクト生成処理方式。
In the processing of a code generation unit such as a compiler in a system where one OS (operating system) has multiple models, there is a model acquisition means that transfers control only once at the beginning to obtain the model type from the system, and a method for obtaining the model type from the system. a model-specific object skeleton table holding object skeletons; an object skeleton obtaining means for obtaining an optimal object skeleton from the model-specific object skeleton table based on the model type obtained from the model obtaining means; An optimal object generation processing method, comprising: a code generation unit that generates an object program according to an optimal object skeleton.
JP5086690A 1990-03-02 1990-03-02 Optimum object generating/processing system Pending JPH03252820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5086690A JPH03252820A (en) 1990-03-02 1990-03-02 Optimum object generating/processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5086690A JPH03252820A (en) 1990-03-02 1990-03-02 Optimum object generating/processing system

Publications (1)

Publication Number Publication Date
JPH03252820A true JPH03252820A (en) 1991-11-12

Family

ID=12870650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5086690A Pending JPH03252820A (en) 1990-03-02 1990-03-02 Optimum object generating/processing system

Country Status (1)

Country Link
JP (1) JPH03252820A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6305013B1 (en) 1998-04-01 2001-10-16 Nec Corporation Compiling method for generating target program in accordance with target processor type, compiling device, recording medium with compiling program recorded therein and recording medium with conversion table used in compiling recorded therein

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6305013B1 (en) 1998-04-01 2001-10-16 Nec Corporation Compiling method for generating target program in accordance with target processor type, compiling device, recording medium with compiling program recorded therein and recording medium with conversion table used in compiling recorded therein

Similar Documents

Publication Publication Date Title
JPH07191840A (en) Automatic program generator
JPH03252820A (en) Optimum object generating/processing system
JPH06348766A (en) Method and device for incorporating tool
JPH0764766A (en) Maximum and minimum value calculating method for parallel computer
JPH03240837A (en) Debug information generating device
JP2002312167A (en) Program for making computer calculate value of variable, compile program, variable value determining method, and program generating method
JPH03282935A (en) Compile processor and compile processing system
JP2554169B2 (en) Relative Rank Analysis Method for Data Driven Processor
CN114356462A (en) Visual detection method, device, equipment and medium based on flow chart
JPH09101899A (en) Processing system for procedure
CN115562654A (en) Operation method and device based on general data operation framework and electronic equipment
JPH04116721A (en) System definition directive analysis system
JPS6375836A (en) Program forming device
JPH04367946A (en) Debug information output system
JP2831717B2 (en) Data path display device
JPH04138575A (en) Device for repreparing finite element data
JP2003263316A (en) Dsp device, dsp control method, and its control program
JPH05224711A (en) Control method for programmable controller
JPH0283634A (en) Program debugging system
JPH07121358A (en) Program customizing device
JPH05197538A (en) Exception generation line number display system of precompiler system
JPH07168720A (en) Language processing system
JPH0895763A (en) Method for fetching component program in original program
JPH0628159A (en) Relocatable object integrating method and linkage editor
JPH0579646U (en) Microprocessor