.file "swap.c" .section .rodata .LC0: .string "%d%d\n" .text .globl main .type main,@function main: pushl %ebp movl %esp, %ebp subl $8, %esp andl $-16, %esp movl $0, %eax subl %eax, %esp movl $1, -4(%ebp) movl $2, -8(%ebp) subl $8, %esp leal -8(%ebp), %eax pushl %eax leal -4(%ebp), %eax pushl %eax call swap addl $16, %esp subl $4, %esp pushl -8(%ebp) pushl -4(%ebp) pushl $.LC0 call printf addl $16, %esp movl $0, %eax leave ret .Lfe1: .size main,.Lfe1-main .globl swap .type swap,@function swap: pushl %ebp movl %esp, %ebp subl $8, %esp movl 8(%ebp), %eax movl (%eax), %eax movl %eax, -4(%ebp) movl 12(%ebp), %eax movl (%eax), %eax movl %eax, -8(%ebp) movl 8(%ebp), %edx movl -8(%ebp), %eax movl %eax, (%edx) movl 12(%ebp), %edx movl -4(%ebp), %eax movl %eax, (%edx) leave ret .Lfe2: .size swap,.Lfe2-swap .ident "GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"
|