Why does %rbp point to nothing?
问题 It is known that %rsp points to the top of the stack frame and %rbp points to the base of the stack frame. Then I can't understand why %rbp is 0x0 in this piece of code: (gdb) x/4xg $rsp 0x7fffffffe170: 0x00000000004000dc 0x0000000000000010 0x7fffffffe180: 0x0000000000000001 0x00007fffffffe487 (gdb) disas HelloWorldProc Dump of assembler code for function HelloWorldProc: => 0x00000000004000b0 <+0>: push %rbp 0x00000000004000b1 <+1>: mov %rsp,%rbp 0x00000000004000b4 <+4>: mov $0x1,%eax