Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat t.c
- int f(int *a, int *b) {
- *a = 1;
- *b = 2;
- return *a;
- }
- int g(int *a, long *b) {
- *a = 1;
- *b = 2;
- return *a;
- }
- $ gcc -m32 -O3 -S t.c && cat t.s
- .file "t.c"
- .section .text.unlikely,"ax",@progbits
- .LCOLDB0:
- .text
- .LHOTB0:
- .p2align 4,,15
- .globl f
- .type f, @function
- f:
- .LFB0:
- .cfi_startproc
- movl 4(%esp), %eax
- movl 8(%esp), %edx
- movl $1, (%eax)
- movl $2, (%edx)
- movl (%eax), %eax
- ret
- .cfi_endproc
- .LFE0:
- .size f, .-f
- .section .text.unlikely
- .LCOLDE0:
- .text
- .LHOTE0:
- .section .text.unlikely
- .LCOLDB1:
- .text
- .LHOTB1:
- .p2align 4,,15
- .globl g
- .type g, @function
- g:
- .LFB1:
- .cfi_startproc
- movl 4(%esp), %eax
- movl $1, (%eax)
- movl 8(%esp), %eax
- movl $2, (%eax)
- movl $1, %eax
- ret
- .cfi_endproc
- .LFE1:
- .size g, .-g
- .section .text.unlikely
- .LCOLDE1:
- .text
- .LHOTE1:
- .ident "GCC: (Debian 4.9.2-10) 4.9.2"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement