Computer Science, asked by pranavamrutha3251, 1 year ago

Difference between memory stack and register stack

Answers

Answered by writersparadise
57

A register stack is usually associated with the CPU. This stack can be accessed at a very fast rate. It is fairly small in size.


A memory stack is linked to the RAM. Access to this stack takes place only slowly. It is larger in size than a register stack.
Answered by santy2
36
We begin by defining a stack :

This is a list of data elements usually bytes or words, with access restrictions that the element can be added or removed from any of the two ends of the list that is top and bottom.

The difference between the memory stack and the register stack is :

1. The operation of the memory stack is exactly similar to the operation of the register stack but the memory stack is implemented using computer memory instead of the CPU register array.

2. The memory stack is slower than the register stack since the register stack needs not a memory access being that the register is internal to the CPU.
Similar questions