Assembly Crash Course
Compilers convert C code into Instructions
HEAP
Whenever you use malloc or calloc or global or static variable we use the memory of heap
Registers
Registers are special memory containers present in CPU.
There are general purpose registers (eax,ebx,ecx,edx,esi,edi) & Reserved registers (ebp,esp,eip)
The Stack
push & pop
Stack grows downward
Whenever functions are called code & variables are stored in stack as stack frame
ebp -> base pointer
esp -> stack pointer
(esp - ebp ) denotes the stack frame for one function
Instructions
- mov r1,r2;