Registers and stacks

  Happy New Year 2022 ,may all complete there goals this year

  So,without wasting any time lets get started ,

what are Registers ?

Registers are locations in a processors which can hold any data value and you can access them instantly . It can hold any  value like characters , pointers etc . 

GPR --> This are general purpose registers in a processor for internal storage . 

SPR --> This are special purpose registers in a processor and are reserved by it for some special function for ex. cs, ds, gs, .


what are Stacks ?

A stack is an kind of abstract data type which follows the rule of  a Last In, First Out.

 

The stack is primarily used for a few things:

  • Storing function arguments
  • Storing local variables
  • Storing processor state between function calls




NEXT BLOG WE WILL SOLVE SOME BINARY EXPLOITATION CHALLENGES FOR BETTER UNDERSTANDING AND WILL LEARN ABOUT SOME BASIC TOOLS 

and u can contact me on telegram link on home page

have a prosporus new year 

Comments