English 中文(简体)
Instructions loading into registers
原标题:

In Instruction Set Architecture, are all kinds of instructions R- Type, I- Type, J-Type loaded into the same General Purpose Register or different kinds of instructions loaded into different registers based on the opCodes ? If different registers, then How does processor know which instruction to load to which register ? and In the design of compilers are the number of registers allowed to be loaded with instructions fixed ?

How does the processor differentiate the different types of instructions R- Type, I- Type, J-Type , is it based on the first initial opcodes ?

问题回答

In Instruction Set Architecture, are all kinds of instructions R- Type, I- Type, J-Type loaded into the same General Purpose Register or different kinds of instructions loaded into different registers based on the opCodes ?

You seem confused. Instructions aren t loaded into registers (unless you re writing, maybe, a disassembler). Instructions are processed and executed -- which may cause other data to be copied into or out of registers.

If different registers, then How does processor know which instruction to load to which register ? and In the design of compilers are the number of registers allowed to be loaded with instructions fixed ?

Not sure what you mean here.

How does the processor differentiate the different types of instructions R- Type, I- Type, J-Type , is it based on the first initial opcodes ?

The distinction between R/I/J (this seems to be a MIPS convention?) seems somewhat arbitrary. In many architectures they can t be so neatly divided. Every instruction is decoded, and it may involve loading from memory, loading from an immediate, or changing the PC.





相关问题
How do you create a textbox in visual Studio with c#?

I feel kind of silly asking this question as it seems really simple, but how do I create a text box that I can type in instructions and stuff like that. I don t need the user to be able to change it, ...

Instructions loading into registers

In Instruction Set Architecture, are all kinds of instructions R- Type, I- Type, J-Type loaded into the same General Purpose Register or different kinds of instructions loaded into different registers ...

Problems with AdMob integration into Android App

I am quite new into Java and Android Apps, so , while this may be cake for others it gives me some headache . The app should load , play a sound file , and close . And it works fine without the AdMob ....

actions vs. avm instructions in actionscript

My questıon is that, what are actions and what are avm instructions. I ve been reading these two documents: http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v10.pdf http://www.adobe.com/...

Instructions Package for Java

I want to make a help/instructions page for my Java program but I really don t want to have to go through and program all the frames and searching and such. Is there a package or program that I can ...

How many instructions to access pointer in C?

I am trying to figure out how many clock cycles or total instructions it takes to access a pointer in C. I dont think I know how to figure out for example, p->x = d->a + f->b i would assume two loads ...

热门标签