Guest User

Untitled

a guest
Jan 17th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main()
  4. {
  5. int a=5,b=6,c=11;
  6. printf("%d %d %d"); //printing without giving variable name
  7. getch();
  8. }
  9.  
  10. printf("%d %d %d", a, b, c);
  11.  
  12. some people say it should be 11 6 5.
  13.  
  14. .cfi_def_cfa_register 6
  15. subq $16, %rsp
  16. movl $5, -12(%rbp)
  17. movl $6, -8(%rbp)
  18. movl $11, -4(%rbp)
  19. movl $.LC0, %eax
  20. movq %rax, %rdi
  21. movl $0, %eax
  22. call printf
  23. movl $0, %eax
  24. leave
  25.  
  26. .cfi_def_cfa_register 6
  27. subq $16, %rsp
  28. movl $5, -12(%rbp)
  29. movl $6, -8(%rbp)
  30. movl $11, -4(%rbp)
  31. movl $.LC0, %eax
  32. movl -4(%rbp), %ecx //Registers are used here, for storing args for
  33. movl -8(%rbp), %edx //printf() function.
  34. movl -12(%rbp), %esi //But in previous case, values of variables are
  35. movq %rax, %rdi //not moved to registers.
  36. movl $0, %eax
  37. call printf
  38. movl $0, %eax
  39. leave
Add Comment
Please, Sign In to add comment