Abstraction & Technology - 1
Abstraction & Technology - 1
Response time:
• Also called execution time for the computer to complete
a task,
• Includes disk access, memory access, I/O activities,
operating system overhead, CPU execution time etc.
Performance
• Throughput
Disadvantages of stack
• On a stack computer the hardware must evaluate the expression in
only one order and it may have to load an operand multiple times.
Memory Addressing
• Independent of whether the architecture is load-store or
allows any operand to be a memory reference, the
architecture must define:
• How memory addresses are interpreted and
• How they are specified.
Memory Locations and
Addresses
• The memory consists of many millions of storage cells, each of
which can store a bit of information.
• Bit are handled in groups of fixed size.
• Memory is organized so that a group of n bits(word) can be
stored or retrieved in a single, basic operation.
• The memory of a computer can be schematically represented as a
collection of words.
• Machine instructions may require one or more words for their
representation.
Memory Locations and
Addresses
• Modern computers have word lengths that typically range from
16 to 64 bits.
• It is impractical to assign distinct addresses to individual bit
locations in the memory.
• The most practical assignment is to have successive addresses
refer to successive byte locations in the memory.
• Byte locations have addresses 0, 1, 2, . . . .
• Thus, if the word length of the machine is 32 bits(4 bytes),
successive words are located at addresses 0, 4, 8, . . . , with each
word consisting of four bytes.
Big-Endian and Little-Endian Assignments
• Immediate Addressing
• Direct Addressing
• Memory Indirect
• Register Direct
• Register Indirect
• Displacement
• Indexed Addressing
• Auto increment & Auto Decrement
Immediate Addressing Mode
• Effective Address
= Content of Index Register + Address part of the
instruction.