JPH03230282A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH03230282A
JPH03230282A JP2025779A JP2577990A JPH03230282A JP H03230282 A JPH03230282 A JP H03230282A JP 2025779 A JP2025779 A JP 2025779A JP 2577990 A JP2577990 A JP 2577990A JP H03230282 A JPH03230282 A JP H03230282A
Authority
JP
Japan
Prior art keywords
program
register files
purpose registers
register
general
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.)
Ceased
Application number
JP2025779A
Other languages
Japanese (ja)
Inventor
Mikio Ogisu
荻須 幹雄
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2025779A priority Critical patent/JPH03230282A/en
Publication of JPH03230282A publication Critical patent/JPH03230282A/en
Ceased legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To efficiently use register files by changing the number of general purpose registers constituting each register file in a microprocessor to constitute an asymmetrical register file group. CONSTITUTION:The register files A to C are constituted of general purpose registers 1, the number of registers 1 constituting each register file is different and the system is constituted of asymmetrical register files. In a supervisor program or a user program, the number of general purpose registers to be used is different in accordance with the contents of the program and the registers of a proper number are chained in accordance with a field using the system to constitute the system, so that the number of unused RAM areas can be reduced as less as possible. Thus, the register files can be efficiently used.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、複数のレジスタファイルを有するマイクロプ
ロセッサに開するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention is directed to microprocessors having multiple register files.

従来の技術 従来、?u I&のレジスタファイルを持つシステムの
構成は、第4図に示すように、レジスタファイルを構成
する汎用レジスタlの本数は各々のレジスタファイルと
も共通であり、コンパイラがソースプログラムをオブジ
ェクトプログラムに変更しやすい反面、プログラムの内
容によっては汎用レジスタを使用しないという場合が存
在していた。
Conventional technologyConventional,? As shown in Figure 4, the configuration of a system with u I & register files is such that the number of general-purpose registers l that make up the register file is common to each register file, and the compiler changes the source program to an object program. While this is easy, there are cases where general-purpose registers are not used depending on the content of the program.

このため、不必要、未使用のハートが存在することにな
り、汎用性が問われるマイクロプロセッサ(マイクロコ
ンピュータを含む、以後同様)には不動作の部分が存在
していた。
For this reason, there are unnecessary and unused hearts, and microprocessors (including microcomputers, hereinafter the same) whose versatility is in question have inoperable parts.

発明が解決しようとする課題 この問題を解決するために、従来使用しないレジスタフ
ァイルをデータRAM領域とし・てアクセスできるもの
が考えられているが、コンパイラのソースプロゲラ11
からオブジェクトプログラムに変換する手段は−通りで
あり、レジスタファイルの使用本数にはユーザープログ
ラムにより差があリ、やはり未使用のRAM領域が大き
く存在していた。
Problem to be Solved by the Invention In order to solve this problem, a system has been considered that can access register files that are not used conventionally as a data RAM area.
There are several ways to convert a program into an object program, the number of register files used varies depending on the user program, and there is still a large unused RAM area.

本発明は上記従来の課題を解決するもので、ユーザープ
ログラムの内容に応して、レジスタファイル内の汎用レ
ジスタの本数が選択できるように、各々のレジスタファ
イルを構成する汎用レジスタの本数が異なるシステノ、
を提供するごとにより、RAM領域をユーザープログラ
ムが変わっても効率的に使用するマイクロプロセッサを
提供することを目的としている。
The present invention solves the above-mentioned conventional problem.The present invention is intended to solve the above-mentioned conventional problem. ,
The object of the present invention is to provide a microprocessor that uses the RAM area efficiently even if the user program changes.

課題を解決するための手段 請求項1の本発明は、複数のレジスタファイルを持つマ
イク【Jプロセッサにおいて、前記各レジスタファイル
を構成する汎用レジスタの本数が異なり、非ヌー1称な
レジスタファイル群を構成することを特徴とするもので
ある。
Means for Solving the Problems The present invention as claimed in claim 1 provides a microphone [J processor] having a plurality of register files, in which the number of general-purpose registers constituting each register file is different, and a group of non-uniform register files is formed. It is characterized by configuring.

請求項20本発明は、高級言語からオブジェクトコード
を生成するコンパイラの動作において、請求項l記載の
非対称なレジスタファイル群が所有している汎用レジス
タの本数に応じて、スーパバイザプログラム、ユーザー
プログラム、またはソースプログラムの注釈文によって
区分されたソースプログラムに対し、オブジェクトコー
ドを発生ずることを特徴とするものである。
Claim 20 The present invention provides that, in the operation of a compiler that generates object code from a high-level language, a supervisor program, a user program, or This method is characterized in that object code is generated for source programs classified by source program annotation sentences.

作用 本発明は、スーパバイザプログラム、或はユーザーブ[
Iグラ11、またはソースプログラムの注釈文によって
区分されたソースプログラムに対し、オブジェクトプロ
ゲラ11を、使用する汎用レジスタの本数に応じて作成
でき、レジスタファイルを効率よく使用することができ
る。
Operation The present invention can be performed by a supervisor program or a user program.
The object programmer 11 can be created according to the number of general-purpose registers to be used for a source program divided by an I-grain 11 or source program annotation, and register files can be used efficiently.

実施例 以下、本発明の実施例について、図面を参照して説明す
る。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第1図は、本発明のレジスタファイル構成を示した図で
ある。レジスタファイルは汎用レジスタlから構成され
ており、各々のレジスタファイルを構成している汎用レ
ジスタlの本数が異なり、非対称なレジスタファイルか
らシステ11が構成されている。スーパバイザプログラ
ム、或はユーザープログラムにおいて、プログラムの内
容により、使用する汎用レジスタの本数は異なり、本シ
ステムが使用される分野によ)でレジスタ本数をチュー
ンし構成することにより、未使用のRAM領域を極力少
なくすることができる。
FIG. 1 is a diagram showing the register file configuration of the present invention. The register files are made up of general-purpose registers l, and the number of general-purpose registers l making up each register file is different, and the system 11 is made up of asymmetric register files. In the supervisor program or user program, the number of general-purpose registers used varies depending on the content of the program, and by tuning and configuring the number of registers (depending on the field in which this system is used), unused RAM area can be freed up. It can be reduced as much as possible.

第2図は、本発明のコンパイラの変換方法を示した図で
、スーパバイザプログラム、或はユーザープログラムに
よって区分されたソースプログラムを使用するレジスタ
ファイルの汎用レジスタの本数に応じてオブジェクトプ
ログラムに変換する例である。
FIG. 2 is a diagram showing the conversion method of the compiler of the present invention, and is an example of converting a source program divided by a supervisor program or a user program into an object program according to the number of general-purpose registers in a register file that uses it. It is.

ソースプロゲラノー、A21及びソースプログラムB2
2は、それぞれスーパパイザブ[1グラム及びユーザー
プログラムであり、別々のファイルから構成されている
。コンパイラ23は、該ソースプロゲラj、A、B、2
1.22が順次人力される。
Source Progelano, A21 and Source Program B2
2 are a super program and a user program, respectively, and are composed of separate files. The compiler 23 uses the source progera j, A, B, 2
1.22 will be manually operated one after another.

その入力時にどのレジスタファイルを使用するか、或は
汎用レジスタファイルの本数を指定することにより、変
換されたオブジェクトA、  B、24.25の内容は
、指定したレジスタファイルA、  B、26.27に
λ・1応した汎用レジスタ本数になる。
By specifying which register file to use or the number of general-purpose register files at the time of input, the contents of converted objects A, B, 24.25 can be changed to the specified register files A, B, 26.27. The number of general-purpose registers corresponds to λ・1.

第3図は、本発明のコンパイラの変換方法を示した図で
、ソースプログラム3]の注釈文によって区分された領
域を、使用するレジスタファイルA、  B、  C1
34,35,36或は汎用レジスタの本数に応じてオブ
ジェクトプログラムに変換する例である。
FIG. 3 is a diagram showing the conversion method of the compiler of the present invention, in which the areas divided by the annotation statements of the source program 3 are divided into the register files A, B, and C1 to be used.
This is an example in which the program is converted into an object program according to the number of 34, 35, 36 or general-purpose registers.

ソースプログラム31は、その内容によって注釈文で区
分されており、注釈文には領域の開始と終了が記載され
ている。この様に記載されたソースプログラム31を、
コンパイラ32に人力すると共に、指定された領域に対
し、どのレジスタファイルA、  B、  C,34,
35,36を使用するかを人力する。この指定に応じて
注釈文で領域指定されたソースプログラムに対応するオ
ブジェクトプログラムA、B、C33が作成され、該オ
ブジェクトプログラムはレジスタファイルA、  B、
C134,35,36の汎用レジスタの本数に対応した
プログラム構成となっている。
The source program 31 is divided into annotations based on its contents, and the annotations include the start and end of an area. The source program 31 written in this way is
In addition to manually inputting information into the compiler 32, which register files A, B, C, 34,
35 and 36 are to be used manually. In accordance with this specification, object programs A, B, and C33 corresponding to the source program whose area is specified by the comment statement are created, and the object programs include register files A, B, and C33.
The program structure corresponds to the number of general-purpose registers of C134, 35, and 36.

スーパバイザプログラム、或はユーザープログラム、ま
たはソースプログラムの注釈文によって区分されたソー
スプログラムに対し、オブジェクトプログラムを、使用
する汎用レジスタの本数に応じて作成でき、レジスタフ
ァイルを効率よく使用することができる。
Object programs can be created according to the number of general-purpose registers to be used for a supervisor program, a user program, or a source program divided by annotation statements of the source program, and register files can be used efficiently.

発明の効果 以上のように、本発明は、汎用レジスタの本数が異なる
レジスタファイル群を有するので、汎用レジスタを無駄
なく効率よく使用できる。
Effects of the Invention As described above, the present invention has a group of register files having different numbers of general-purpose registers, so that general-purpose registers can be used efficiently without waste.

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

第1図は、本発明の一実施例にかかるマイクロプロセッ
サのレジスタファイル構成を示したブロック図、第2.
3図は、同実施例のコンパイラの変換方法を示したブロ
ック図、第4図は、従来の複数のレジスタファイルを持
つシステムの構成例を示すブロック図である。 l・・・汎用レジスタ、21.22.31・・・ソース
プログラム、23.32・−・コンパイラ、24.25
.33・・・オブジェクトプログラム、26.27.3
4.35.36・・・レジスタファイル。 第1 図 レジ又タフv号IVA 第2図
FIG. 1 is a block diagram showing the register file configuration of a microprocessor according to an embodiment of the present invention, and FIG.
FIG. 3 is a block diagram showing the compiler conversion method of the same embodiment, and FIG. 4 is a block diagram showing an example of the configuration of a conventional system having a plurality of register files. l...General purpose register, 21.22.31...Source program, 23.32...Compiler, 24.25
.. 33...Object program, 26.27.3
4.35.36...Register file. Figure 1 Rejimata Tough V IVA Figure 2

Claims (2)

【特許請求の範囲】[Claims] (1)複数のレジスタファイルを持つマイクロプロセッ
サにおいて、前記各レジスタファイルを構成する汎用レ
ジスタの本数が異なり、非対称なレジスタファイル群を
構成することを特徴とするマイクロプロセッサ。
(1) A microprocessor having a plurality of register files, wherein each register file has a different number of general-purpose registers, forming an asymmetric register file group.
(2)高級言語からオブジェクトコードを生成するコン
パイラの動作において、請求項1記載の非対称なレジス
タファイル群が所有している汎用レジスタの本数に応じ
て、スーパバイザプログラム、ユーザープログラム、ま
たはソースプログラムの注釈文によって区分されたソー
スプログラムに対し、オブジェクトコードを発生するこ
とを特徴とするマイクロプロセッサ。
(2) In the operation of a compiler that generates object code from a high-level language, depending on the number of general-purpose registers owned by the asymmetric register file group according to claim 1, the supervisor program, user program, or source program is annotated. A microprocessor characterized in that it generates object code for a source program divided by statements.
JP2025779A 1990-02-05 1990-02-05 Microprocessor Ceased JPH03230282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2025779A JPH03230282A (en) 1990-02-05 1990-02-05 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2025779A JPH03230282A (en) 1990-02-05 1990-02-05 Microprocessor

Publications (1)

Publication Number Publication Date
JPH03230282A true JPH03230282A (en) 1991-10-14

Family

ID=12175326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2025779A Ceased JPH03230282A (en) 1990-02-05 1990-02-05 Microprocessor

Country Status (1)

Country Link
JP (1) JPH03230282A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0217541A (en) * 1988-07-06 1990-01-22 Hitachi Ltd Stack system micro-computer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0217541A (en) * 1988-07-06 1990-01-22 Hitachi Ltd Stack system micro-computer

Similar Documents

Publication Publication Date Title
Vasilakis et al. PaSh: light-touch data-parallel shell processing
CN111597323B (en) Key field filtering method and device, storage medium and electronic equipment
WO2025123954A1 (en) Method and apparatus for type inference of programming language
Räihä et al. Developments in compiler writing systems
Walden Macro memories, 1964–2013
JPH03242727A (en) Shifting system for switching between new and old computer systems
Ting Systems Guide to fig-FORTH
Palazzi WR Zhao: IHEP Academica Sinica, Beijing, China'“
JPH03102427A (en) Forcible conversion processing system for user variable
JPH081608B2 (en) Program execution analysis tool
JP2721377B2 (en) BASIC program compression method
JPH1021087A (en) Compilation method
JPH04184631A (en) Frame converting device
JPH02205930A (en) Interface check processing method
JPH0343834A (en) Function delivery mechanism
JPH04243429A (en) Compiler
JPH0465714A (en) Load module control system for computer system
Chou VECT: an automatic visual Perl programming tool for nonprogrammers
JPS62160536A (en) Cobol syntax converting method
Räihä et al. Töölönkatu 11, SF-00100 Helsinki 10, Finland
Evered et al. Toward Zero-Overhead Genericity in Java
JPH02211541A (en) Program generating system
JPH0690669B2 (en) Character string manipulation instruction compilation processing method
JPH03119468A (en) Slip processing system
JPS6315335A (en) Expanding system for end user language for data base to natural language