Memory allocation is the act of reserving a chunk of memory for some set of data.Memory contains bytes.Some of those bytes are instructions ,and some of those bytes are data.MIPS processors typically divide memory into three parts:
- Text segment
- Data segment
- Stack segment
Its value and the storage location(address).The address of a data can be evenly divisible by 1,2,4, or 8.In other words,data object can have 1 byte,2 byte,4 byte,8 byte alignment.
The MIPS microprocessor contains 32 user accessible registers that are numbered as 0-31.
- Register are 32 bits for MIPS.
- Register $1,$26,$27,$29 are reserved for special purpose by the assembler,compiler and operating system.
- Register $0 is hard wired to the value zero , and $31 is the link register for jump and link instructions but can be used with other instructions with caution.
The following table summarizes the usage convention for these registers:-
*** Coprocessor 0 contains exception control registers that handles exception.
SPIM doesn't implement all of the coprocessor 0's registers , since they are not much useful in a simulator or part of the memory system , which is not implemented. However, it does provide trap registers as show as below.
Trap Register:
Exception code register:
LIM ZHEW SHENGSPIM doesn't implement all of the coprocessor 0's registers , since they are not much useful in a simulator or part of the memory system , which is not implemented. However, it does provide trap registers as show as below.
Trap Register:
Exception code register:
B031210379
i can understand well.^^
ReplyDeletethis is the awesome explanation.i can understand well
ReplyDeletegreat explanation.
ReplyDeleteeasy to understand..keep it
ReplyDeletethanks for your information.i can understand well
ReplyDeleteeasy to understand=]
ReplyDeleteThanks for your sharing.
ReplyDeleteI can understand.
This show you put a lot of effort..
This is a awesome explanation i ever see.
ReplyDeleteThanks for your information.
great..I like this topic..thanks for your explanation.
ReplyDeletegreat explanation
ReplyDeleteawesome!! is a good explanation
ReplyDeletevery easy to understand
ReplyDeleteyeah!the informations very clear.keeo it
ReplyDeletewow!! i like the way of your explanations
ReplyDeleteyeah!!thanks for your details
ReplyDeleteit really help in my test