About 4,030,000 results
Open links in new tab
  1. What is the purpose of the RBP register in x86_64 assembler?

    172 rbp is the frame pointer on x86_64. In your generated code, it gets a snapshot of the stack pointer (rsp) so that when adjustments are made to rsp (i.e. reserving space for local variables or push ing …

  2. Why are RBP and RSP called general-purpose registers?

    Apr 10, 2016 · In the article Understanding C by learning assembly, it's written that RBP and RSP are special-purpose registers (RBP points to the base of the current stack frame and RSP points to the …

  3. x86 - What do these assembly lines mean? - Stack Overflow

    May 1, 2021 · I am struggling on a homework because I do not understand what these lines are supposed to mean ? mov rax, qword ptr [rbp - 0x28] mov rax, qword ptr [rax] mov eax, dword ptr …

  4. Why RBP instead of another register as a frame pointer?

    Mar 28, 2021 · 4 I understand the usage of push rbp... pop rbp at the start and end of a function to preserve the rbp value of the calling function, since the rbp register is callee-preserved. And then I …

  5. What is the "-4" for in assembler: movl $1, -4(%rbp)

    Sep 29, 2020 · 2 -4 / -8 / -12 bytes relative to the address held in rbp, which is the pointer to the top of the stack (which grows downward). 4 bytes / 32 bits because that is the size of int on your machine.

  6. assembly - Are there different ways to set RBP? Why does Windows …

    Mar 13, 2023 · Putting RBP closer to the middle of space you might want to access increases the amount of space you can reach with [rbp + disp8], which uses a sign-extended 8-bit displacement in …

  7. What does the R stand for in RAX, RBX, RCX, RDX, RSI, RDI, RBP, RSP?

    The x86 assembler language has had to change as the x86 processor architecture has changed from 8bit to 16bit to 32bit and now 64bit. I know that in 32bit assembler register names (EAX, EBX, etc.)...

  8. What are the names of the new X86_64 processors registers?

    Nov 18, 2009 · EDX -> RDX ESI -> RSI EDI -> RDI ESP -> RSP EBP -> RBP X64 also adds the following 64-bit general purpose registers: R8, R9, R10, R11, R12, R13, R14, R15 Additionally, SSE …

  9. How to understand "cmpl $0x0, -0x30 (%rbp)" / "je ..."

    Oct 8, 2017 · Rest of what -x(%rbp) means in various instructions (pay attention to the lea vs <any other instruction> semantics difference of "memory operand" usage, the lea does only the memory …

  10. assembly - Understanding C disassembled call - Stack Overflow

    The function is decomposed like this (I ignore the unnecessary lines): First, there is the saving of the previous stack-frame: pushq %rbp movq %rsp, %rbp Here, the old %rbp is pushed onto the stack to …