2
I’m following a book about Computer Architecture and I’m on the register side, but it doesn’t contain any practical examples of how
Registers of Specific Purpose.
Among them are:
PC (Program Control) -> Has the address and search the next instruction to be searched
GO (Instruction Register) Save the Instruction and pass to the UCD
SEA (Memory Adress Register) Works when the data is in memory and not in the recorder
MBR (Memory Buffer Register, alias this has something to do with the
buffer
that we see in programming?) Response of Memory is recorded in MBR
How these above recorders work when we are coding?
The general purpose recorders are what we keep variables so the clear example already comes close to my mind, but the general purpose approach is quite different...
var x = 10 //Seria isso?
In memory these data types are stored: 4(Curt) or 8(long) bytes, float, double, array of bytes, bits, string. For the variable you gave example is 4 bytes.
– Maury Developer
I’m sorry for the ignorance, but I don’t really understand what you’re referring to in the question...
– user152996
I talked about variable data type.
– Maury Developer
Each IC architecture implements the registers differently. In the book it is explaining in a generic way. And no, the variables of your C program are not stored in the general-purpose registers, they are stored in the RAM, but on the way from the input to the RAM storage the information will certainly travel by registers. Yes registers work analogous to variables, but the scope of their use is intrinsic and restricted to micro operations that are the blocks that form the instructions of the programming languages.
– Augusto Vasques
@Augustovasques didn’t know how this whole process works, he thought it would go straight to the register (very strange thing, because I learned from an early age that things would go to RAM memory), because it doesn’t say anything about RAM (until the chapter where I read and I was in doubt). Even so, thank you for the explanation. About the IC architectures have some site informing the most famous or all?
– user152996
I think what you’re looking for are the manufacturers' manuals. http://home.ifi.uio.no/...IA32Doc/ These are all the manuals of the IA-32(x86) architecture, are in English and are available for free on the Intel website, only that this is a zone and it would take me a long time to make the query, so I preferred to pass this link
– Augusto Vasques