int foo(int a, int b, int c)
{
return a+ b + c;
}
| .file "callee.c"
.text
.globl foo
.type foo, @function
foo:
pushl %ebp
movl %esp, %ebp
movl 12(%ebp), %eax
addl 8(%ebp), %eax
addl 16(%ebp), %eax
popl %ebp
ret
.size foo, .-foo
.ident "GCC: (GNU) 4.1.2 20080704 ...
.section .note.GNU-stack,"",@progb...
| .file 1 "callee.c"
.section .mdebug.abi32
.previous
.abicalls
.text
.align 2
.globl foo
.ent foo
.type foo, @function
foo:
.frame $fp,8,$31 # vars= 0, regs=...
.mask 0x40000000,-8
.fmask 0x00000000,0
.set noreorder
.cpload $25
.set reorder
addiu $sp,$sp,-8
sw $fp,0($sp)
move $fp,$sp
sw $4,8($fp)
sw $5,12($fp)
sw $6,16($fp)
lw $3,8($fp)
lw $2,12($fp)
addu $2,$3,$2
lw $3,16($fp)
addu $2,$2,$3
move $sp,$fp
lw $fp,0($sp)
addiu $sp,$sp,8
j $31
.end foo
.ident "GCC: (GNU) 3.4.5"
| .file "callee.c"
.text
.globl foo
.type foo, @function
foo:
pushl %ebp
movl %esp, %ebp
movl 12(%ebp), %eax
addl 8(%ebp), %eax
addl 16(%ebp), %eax
popl %ebp
ret
.size foo, .-foo
.ident "GCC: (GNU) 4.1.2 20080704 ...
.section .note.GNU-stack,"",@progb...
| .file 1 "callee.c"
.section .mdebug.abi32
.previous
.abicalls
.text
.align 2
.globl foo
.ent foo
.type foo, @function
foo:
.frame $sp,0,$31 # vars= 0, regs=...
.mask 0x00000000,0
.fmask 0x00000000,0
.set noreorder
.cpload $25
.set reorder
addu $2,$4,$5
.set noreorder
.set nomacro
j $31
addu $2,$2,$6
.set macro
.set reorder
.end foo
.ident "GCC: (GNU) 3.4.5"
| .file "callee.c"
.text
.p2align 4,,15
.globl foo
.type foo, @function
foo:
pushl %ebp
movl %esp, %ebp
movl 12(%ebp), %eax
addl 8(%ebp), %eax
addl 16(%ebp), %eax
popl %ebp
ret
.size foo, .-foo
.ident "GCC: (GNU) 4.1.2 20080704 ...
.section .note.GNU-stack,"",@progb...
| .file 1 "callee.c"
.section .mdebug.abi32
.previous
.abicalls
.text
.align 2
.globl foo
.ent foo
.type foo, @function
foo:
.frame $sp,0,$31 # vars= 0, regs=...
.mask 0x00000000,0
.fmask 0x00000000,0
.set noreorder
.set nomacro
addu $2,$4,$5
j $31
addu $2,$2,$6
.set macro
.set reorder
.end foo
.ident "GCC: (GNU) 3.4.5"
|