What does a 64 bit assembly procedure prologue and epilogue look like?

01/11/2010 - 15:22 von Ken Snyder | Report spam
Hi,

i guess the subject says it all. What does a
standard prologue and a final epilogue of a
procedure on a 64 bit assembly (Intel/AMD)
look like? Given this:

push ebp
mov ebp,esp
int 3
mov esp,ebp
pop ebp
ret

What would this look like on 64 bit?


thanks in advance

Ken
 

Lesen sie die antworten

#1 Heiko Nocon
01/11/2010 - 16:54 | Warnen spam
Ken Snyder wrote:

i guess the subject says it all.



Of course it doesn't...

What does a
standard prologue and a final epilogue of a
procedure on a 64 bit assembly (Intel/AMD)
look like?



...because there are no mandatory prologue or epilogue patterns. Such
things are ABI-dependend only.

push ebp
mov ebp,esp
int 3
mov esp,ebp
pop ebp
ret



Seems to be a linux-x86 system call. Refer the fuckin' documentation of
linux-amd64 or linux-i64 to find out the ABI conventions for these
systems.

Ähnliche fragen