Non-Volatile Register

Definition - What does Non-Volatile Register mean?

A non-volatile register is a type of register witth contents that must be preserved over subroutine calls. Whenever the value of a nonvolatile register is changed by the routine, the old value has to be saved on the stack prior to changing the register and that value has to be restored before returning. A register is similar to a variable, except that there is a fixed number of registers. Every register is a unique location in the CPU in which a single value is saved. A register is the one and only place where mathematical functions, such as addition, multiplication, subtraction, etc., can be carried out. Registers often hold pointers that refer to the memory. Moving values between memory and registers is a common phenomenon.

Techopedia explains Non-Volatile Register

The following are a few examples of non-volatile registers: ebx: A non-volatile register used for general purposes. It is usually set to a common value all through a function to accelerate the calculations. esi: A non-volatile register used for general purposes. It is commonly used as a pointer, especially for "rep-" class instructions that require a source and destination for data. Here, the esi points to the source. esi generally holds data that is used all through a function as it is not prone to changes. edi: Another non-volatile register used for general purposes. This is commonly used as a pointer. edi is identical to esi, with the exception that it usually points to the destination. ebp: Another non-volatile register that is used as a general purpose register. It has two distinctive uses based on the compile settings. It is either a general purpose register or a frame pointer. If the compilation has not been optimized or if the code is hand written, ebp monitors the location of the stack when a function begins. Since the stack is changed all through a function, when ebp is set at the original value, the variables saved on the stack are allowed to be referenced easily. If compilation has been optimized, ebp will be used as a general purpose register to store any type of data, while the calculations for the stack pointer are carried out depending on its movement.
Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.