Presentation is loading. Please wait.

Presentation is loading. Please wait.

Visual Studio x64 C Compiler function entrance code

Similar presentations


Presentation on theme: "Visual Studio x64 C Compiler function entrance code"— Presentation transcript:

1 Visual Studio x64 C Compiler function entrance code
Kei Hasegawa

2 At the top address of function
rsp function return address

3 rsp function return address rcx rdx Save parameter registers r8 r9

4 rsp rdi push rbp and rdi rbp function return address rcx rdx r8 r9

5 rsp allocate stack (depends on function) rdi rbp function return address rcx rdx r8 r9

6 Update rbp and rdi rdi rsp rbp rdi rbp function return address rcx rdx

7 Fill stack area with 0xcc
rsp rbp Fill stack area with 0xcc rdi rdi rbp function return address rcx rdx r8 r9


Download ppt "Visual Studio x64 C Compiler function entrance code"

Similar presentations


Ads by Google