Guest User

Untitled

a guest
Oct 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Code -[compiler/gcc]-> x86 GSM (32 bit)
  2.  
  3. Stack + Registers
  4. Your memory has 0-(2^32-1)
  5. The temporary var Stack is at the top, Text segment (where the code is) is at the bottom. Data is above the text which is where the variables are. Heap is the dynamic memory, so like malloc. Static is data and text. Stack goes down, Heap goes up. So if you run into each other, you'll run out of memory and get errors.
  6.  
  7. eax, edx
  8.  
  9. esp - Stack ptr, ebp - base ptr, eip - inst ptr.
  10. esp, ebp, eip all point to the stack.
  11.  
  12. If you were to pop ebp, you'd go backwards in the program.
  13.  
  14.  
  15. rip = return inst. ptr, sfp = ebp of previous stack, call-> push eip+4, jmp %foo
Add Comment
Please, Sign In to add comment