Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int a = 5;
- int b = 5 + a;
- return 0;
- }
- -------------------------------------------
- main:
- .LFB0:
- push rbp
- mov rbp, rsp
- mov DWORD PTR [rbp-4], 5
- mov eax, DWORD PTR [rbp-4]
- add eax, 5
- mov DWORD PTR [rbp-8], eax
- mov eax, 0
- pop rbp
- ret
- -------------------------------------------
- .Ltext0:
- main:
- .LFB0:
- sub sp, sp, #16
- mov w0, 5
- str w0, [sp, 12]
- ldr w0, [sp, 12]
- add w0, w0, 5
- str w0, [sp, 8]
- mov w0, 0
- add sp, sp, 16
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement