About 3,750,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 …

  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 …

  3. 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 …

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

    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 …

  5. 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 …

  6. What does the R stand for in RAX, RBX, RCX, RDX, RSI, RDI, RBP, …

    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, …

  7. assembly - Is RBP/EBP register really necessary to support Variable ...

    Jun 2, 2016 · CSAPP 3rd edition said: To manage a variable-size stack frame, x86-64 code uses register %rbp to server as a frame pointer. However, I'm curious whether this %rbp register is …

  8. assembly - "mov rbp, rsp" in function prologue - Stack Overflow

    May 8, 2021 · 1 push rbp mov rbp, rsp mov DWORD PTR [rbp-0x4],edi In assembly function prologue, isn't push rbp already moves its value to rsp ? Why did mov rbp, rsp instruction …

  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 …

  10. 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 …