JPH03244032A - Bit conversion system per word - Google Patents
Bit conversion system per wordInfo
- Publication number
- JPH03244032A JPH03244032A JP4189190A JP4189190A JPH03244032A JP H03244032 A JPH03244032 A JP H03244032A JP 4189190 A JP4189190 A JP 4189190A JP 4189190 A JP4189190 A JP 4189190A JP H03244032 A JPH03244032 A JP H03244032A
- Authority
- JP
- Japan
- Prior art keywords
- bit
- word
- data
- bits
- computer
- 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
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、ワード当りのビット変換方式に関し、特に科
学技術計算アプリケーションプログラムの互換性のため
、例えば32ビツト/ワードと36ビツト/ワードとの
ようにアーキテクチャの異なるコンピータ間の演算処理
互換性向上の為のハードウェア的なワード当りのビット
変換方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a bit-per-word conversion method, and in particular, for the compatibility of scientific and technical calculation application programs, for example, 32 bits/word and 36 bits/word conversion method. This paper relates to a hardware-based bit-per-word conversion method for improving computation compatibility between computers with different architectures.
従来、この種の32ビツト/ワードマシンから、36ビ
ツト/ワードマシンへアプリケーションプログラムを移
植する場合、演算処理において、1箇のデータを異なる
属性で参照したりする際、人手により、ソースプログラ
ムを調査し、データを変換を行っていた。Conventionally, when porting an application program from this type of 32-bit/word machine to a 36-bit/word machine, the source program had to be manually inspected when referring to a piece of data with different attributes during arithmetic processing. and was converting the data.
上述した従来の方式は、ソースプログラムを人手により
調査し、変更該当箇所の変換が必要である。その為、プ
ログラムの移植工数が増大するとともに、ソースプログ
ラム自体のロジック変更も伴うという欠点がある。In the conventional method described above, it is necessary to manually examine the source program and convert the relevant parts. Therefore, there are disadvantages in that the number of man-hours for porting the program increases and the logic of the source program itself is also changed.
本発明のワード当りのビット変換方式は、互いに異った
ワード当りのビット数を有するコンピュータのアーキテ
クチャ間で演算処理を行うときのビット変更方式におい
て、ワード崩りのビット数の大きいコンビ二−タのアー
キテクチャのデータにあらかじめ定められたビットとと
に空ビットを設定して構成される。The bit conversion method per word of the present invention is a bit change method when performing arithmetic processing between computer architectures having different numbers of bits per word. It is constructed by setting predetermined bits and empty bits in the architecture data.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
まず、本発明の概要について説明する。First, an overview of the present invention will be explained.
本発明の概要は、例えば36ビツト/ワードのコンピュ
ータ上での演算処理に関して、32ビツトモードで動く
命令と、36ビツトモードで動く命令との2つの命令体
系をもつ。36ビツト/ワードのコンピュータがあって
32ビツト/ワードのコンピータと互換演算処理を行う
場合、ハードウェア的にビットアドレスを変換し、アプ
リケーションプログラムからは、32ビツト/ワードの
イメージで演算処理ができるようにしだものである。ま
た、その際にはコンパイラは32ビツトモードの演算処
理命令をもつオブジェクトプログラムを生成する。The outline of the present invention is, for example, regarding arithmetic processing on a 36-bit/word computer, there are two instruction systems: instructions that operate in 32-bit mode and instructions that operate in 36-bit mode. If you have a 36-bit/word computer and want to perform arithmetic processing compatible with a 32-bit/word computer, you need to convert the bit addresses using hardware so that the application program can perform arithmetic processing using a 32-bit/word image. It's a Nishida thing. Also, in this case, the compiler generates an object program having 32-bit mode arithmetic processing instructions.
第1図は本発明の一実施例のビット変換方式の説明図で
ある。第1図の参照符号1は、36ビツト/ワードのコ
ンピュータにおける文字データのメモリ内の展開イメー
ジである。通常この様な形式であると、そのまま文字デ
ータを整数データとして、演算処理に用いることは不可
能である。FIG. 1 is an explanatory diagram of a bit conversion method according to an embodiment of the present invention. Reference numeral 1 in FIG. 1 is an expanded image of character data in memory in a 36-bit/word computer. Normally, in such a format, it is impossible to use character data as integer data for arithmetic processing.
そこで、展開イメージ2のようにハードウェア的に一定
数のビットごとに空ビットを設けるようにビットアドレ
スを変換して、32ビツト/ワードの整数型データのイ
メージに変換し、演算処理を行えるようにする。また、
この変換処理を行うのはアプリケーションプログラムに
おいて、文字データを整数データとして演算処理を行う
ような部分の前後で行う。コンパイラは、この互換機能
を使用するコンパイラのオプションが指定された場合、
上述のようなムードウェア命令を使用するオブジェクト
プログラムを生成する。Therefore, as shown in expansion image 2, the bit address is converted so that an empty bit is provided for every fixed number of bits in hardware, and the data is converted into an image of 32 bits/word integer type data so that calculation processing can be performed. Make it. Also,
This conversion process is performed in the application program before and after a part where arithmetic processing is performed on character data as integer data. If the compiler option to use this compatibility feature is specified, the compiler will
Generate an object program that uses moodware instructions as described above.
ココでは、36ビツト/ワードのコンピュータのメモリ
内における文字データの展開イメージIにおいては、ビ
ットアドレスθ、9.18.27ノヒツトを無いものと
して、ビットアドレス1〜8.10〜17.19〜26
.28〜35のビット変換し、それぞれビットアドレス
θ〜7,8〜15.16〜23.24〜31にマツピン
グし、第1図2のようなイメージで処理を行う。従って
、32ビツト/ワードの展開イメージ3のデータの処理
が可能となる。Here, in the expansion image I of character data in the memory of a 36-bit/word computer, bit addresses θ, 9, 18, 27 and no hits are assumed to be absent, and bit addresses 1 to 8.10 to 17.19 to 26
.. Bits 28 to 35 are converted and mapped to bit addresses θ to 7, 8 to 15, 16 to 23, and 24 to 31, respectively, and processing is performed with the image shown in FIG. 1. Therefore, it is possible to process the data of the expanded image 3 of 32 bits/word.
また、アプリケーションプログラムのコンパイル時に、
ジョブ記述言語にてこの互換機能を使用を指示するコン
パイルのオプション第2図のように指定すると、コンパ
イラはビットf換必要部分にて、第1図のビット変換命
令を行うようなオブジェクトプログラムを生成する。Also, when compiling the application program,
If you specify the compile option in the job description language to use this compatible function as shown in Figure 2, the compiler will generate an object program that performs the bit conversion instruction shown in Figure 1 in the part where bit f conversion is required. do.
以上説明したように本発明は、32ビツト/ワードマシ
ン上で開発されたアプリケーションプログラム(特にF
ORTRAN) を、36ビツト/ワードマシン上へ
移植する際、あるデータを文字データと整数データのよ
うに異なる属性で使用する場合、現状は人手によって修
正していたものを機械的に変換することによって、アプ
リケーション5−
プログラムの互換性を向上でき移植工数を削減するとい
う効果がある。また、同一の方式により、文字データを
実数データとして扱うこと等も可能となる。更に、36
ビツト/ワードから32ビツトワードへの変換の場合は
データによりオーバフローとなってしまう場合があるが
、これについては制限事項としオーバフローのエラー通
知を出す様にすること罠より移植が可能となる。As explained above, the present invention is applicable to application programs developed on 32-bit/word machines (particularly
ORTRAN) to a 36-bit/word machine, and when using certain data with different attributes such as character data and integer data, it is necessary to manually convert the data that was currently modified manually. , Application 5- This has the effect of improving program compatibility and reducing the number of porting steps. Further, by using the same method, it is also possible to treat character data as real number data. Furthermore, 36
When converting from a bit/word to a 32-bit word, overflow may occur depending on the data, but if this is a restriction and an overflow error notification is issued, portability becomes possible.
第1図は本発明のビット変換の一例を示す説明図、第2
図は本発明の互換機能を指示するコンパイルオプション
の説明図である。
1〜3・・・・・・展開イメージ。FIG. 1 is an explanatory diagram showing an example of bit conversion according to the present invention, and FIG.
The figure is an explanatory diagram of compile options that specify compatible functions of the present invention. 1-3...Development image.
Claims (1)
タのアーキテクチャ間で演算処理を行うときのビット変
更方式において、ワード当りのビット数の大きいコンピ
ュータのアーキテクチャのデータにあらかじめ定められ
たビットごとに空ビットを設定して成ることを特徴とす
るワード当りのビット変換方式。In a bit change method when performing arithmetic processing between computer architectures that have different numbers of bits per word, empty bits are added for each predetermined bit in the data of a computer architecture that has a large number of bits per word. A bit-per-word conversion method characterized by the following:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4189190A JPH03244032A (en) | 1990-02-21 | 1990-02-21 | Bit conversion system per word |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4189190A JPH03244032A (en) | 1990-02-21 | 1990-02-21 | Bit conversion system per word |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03244032A true JPH03244032A (en) | 1991-10-30 |
Family
ID=12620911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4189190A Pending JPH03244032A (en) | 1990-02-21 | 1990-02-21 | Bit conversion system per word |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03244032A (en) |
-
1990
- 1990-02-21 JP JP4189190A patent/JPH03244032A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100239028B1 (en) | Computer system and method for support of two endians | |
JP3320358B2 (en) | Compiling method, exception handling method, and computer | |
EP0729093A1 (en) | A mixed-endian computer system | |
JPH0782441B2 (en) | Simulation method | |
JPS6184740A (en) | Generic object code generation method | |
KR920003044B1 (en) | Control system for guest execution of virtual computer system | |
JPS6124729B2 (en) | ||
JP3169624B2 (en) | Interprocessor communication method and parallel processor therefor | |
Kawano et al. | Fine-grain multi-thread processor architecture for massively parallel processing | |
JP2000353092A (en) | Information processor and register file switching method for the processor | |
JPH03244032A (en) | Bit conversion system per word | |
JP2708647B2 (en) | How coprocessors support auxiliary functions | |
Collavizza | Functional semantics of microprocessors at the microprogram level and correspondence with the machine instruction level | |
JP2915680B2 (en) | RISC processor | |
JPH1091418A (en) | System for executing software corresponding to many languages | |
JPH0496167A (en) | Interruption system for multi-processor system | |
JP2513846B2 (en) | Vector instruction generation method | |
JP3085309B2 (en) | Debug system | |
JPS6338729B2 (en) | ||
JPS5955546A (en) | Firmware processing equipment | |
CN117055953A (en) | Tracking method and system oriented to android system in unshelling environment | |
JPH04287231A (en) | Microprocessor | |
JPS5919287A (en) | Input and output processing system by memory access instruction | |
JPH0259829A (en) | Microcomputer | |
JPH03296820A (en) | Method and device for assembly processing |