Is value of ebp register always multiple of 8?

74 views Asked by At

I am new to reverse engineering. Whenever I disassemled a program, I always found that value of ebp register be multiple of 8.

Is value of ebp register always multiple of 8 or just my observation?

1

There are 1 answers

0
Mark Segal On

For performance reasons, modern x64 calling conventions requires the stack to be aligned to 16 bytes. https://msdn.microsoft.com/en-us/library/ms235286.aspx https://en.wikipedia.org/wiki/X86_calling_conventions

This is also the case for GCCs x86 calling convention.

I can assume this is relevant for ebp, not only esp.