Register allocation method and device

The invention discloses a register allocation method and device which can be used in the field of data processing.The method comprises the steps that firstly, register type constraint conditions corresponding to multiple variables in a to-be-processed instruction are obtained; then, based on a regis...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: CHEN TAO, LANG JUNHAO, LI WEI, BIE MENGNI, LI HUIQIN, WU AIQING, NAN LONGMEI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a register allocation method and device which can be used in the field of data processing.The method comprises the steps that firstly, register type constraint conditions corresponding to multiple variables in a to-be-processed instruction are obtained; then, based on a register type constraint condition, obtaining a target register type in which a plurality of variables can be configured; and finally, based on the target register type and a pre-stored register allocation algorithm, allocating registers conforming to the target register type for a plurality of variables in the to-be-processed instruction. Therefore, in a process of allocating registers in a processor of a multi-register group and multi-register type organization mode for variables, the register is allocated to the variable. The register type conflict caused by the fact that the registers to which one or more variables are actually allocated do not conform to the register type constraint conditions corresponding to the