Beruflich Dokumente
Kultur Dokumente
Memory
February 1, 2017 7 Comments
Despite these similarities, the register and memory share few differences
with each other. The basic difference between the register and memory is
that the register holds the data that CPU is currently processing whereas,
the memoryholds program instruction and data that the program requires
for execution.
We will discuss some more differences between register and memory with
the help of comparison chart shown below.
Comparison Chart
BASIS FOR
REGISTER MEMORY
COMPARISON
Basic Registers hold the operands or Memory holds the instructions and
requires.
Capacity Register holds the small amount of Memory of the computer can range
Definition of Register
Registers are the smallest data holding elements that are built into the
processor itself. Registers are the memory locations that
are directly accessible by the processor. The registers hold the instruction
or operands that is currently being accessed by the CPU.
Registers are the high-speed accessible storage elements. The processor
accesses the registers within one CPU clock cycle. In fact, the processor
can decode the instructions and perform operations on the register
contents at the rate of more than one operation per CPU clock
cycle. So we can say that processor can access registers faster than the
main memory.
The register is measured in bits like a processor may have 16-bit, 32-bit, or
64-bit registers. The number of register bits specifies the speed and power
of CPU. For example, a CPU which has 32-bit register can access the 32-bit
instructions at a time. The CPU which has 64-bit register can execute 64-bit
instructions. Hence, more the number of bits of register more is the speed
and power of CPU.
Definition of Memory
Memory is a hardware device used to store computer programs,
instructions and data. The memory that is internal to the processor is
a primary memory (RAM), and the memory that is external to the
processor is a secondary memory (Hard Drive). Memory can also be
categorized on the basis of volatileand non-volatile memory.
Primary memory or RAM is a volatile memory which means the data in the
primary memory exist when the systems power is on, and the data
vanishes as the system is switched off. The primary memory contains the
data that will be required by the currently executing program in CPU. If the
data required by the processor is not in primary memory, then the data is
transferred from secondary storage to primary memory, and then it is
fetched by the processor.
Related Differences:
1. Difference Between Symmetric and Asymmetric
Multiprocessing
2. Difference Between RISC and CISC
3. Difference Between Interrupt and Polling in OS
4. Difference Between Contiguous and Noncontiguous Memory
Allocation
5. Difference Between Virtual and Cache Memory in OS