Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int a=5,b=6,c=11;
- printf("%d %d %d"); //printing without giving variable name
- getch();
- }
- printf("%d %d %d", a, b, c);
- some people say it should be 11 6 5.
- .cfi_def_cfa_register 6
- subq $16, %rsp
- movl $5, -12(%rbp)
- movl $6, -8(%rbp)
- movl $11, -4(%rbp)
- movl $.LC0, %eax
- movq %rax, %rdi
- movl $0, %eax
- call printf
- movl $0, %eax
- leave
- .cfi_def_cfa_register 6
- subq $16, %rsp
- movl $5, -12(%rbp)
- movl $6, -8(%rbp)
- movl $11, -4(%rbp)
- movl $.LC0, %eax
- movl -4(%rbp), %ecx //Registers are used here, for storing args for
- movl -8(%rbp), %edx //printf() function.
- movl -12(%rbp), %esi //But in previous case, values of variables are
- movq %rax, %rdi //not moved to registers.
- movl $0, %eax
- call printf
- movl $0, %eax
- leave
Add Comment
Please, Sign In to add comment