Couldn't attatch it:
Code:
.file "main.c"
.text
.globl func
.type func, @function
func:
pushl %ebp
movl %esp, %ebp
subl $4, %esp
movl 8(%ebp), %eax
movb %al, -4(%ebp)
movsbl -4(%ebp),%eax
movl table(,%eax,4), %eax
leave
ret
.size func, .-func
.globl main
.type main, @function
main:
leal 4(%esp), %ecx
andl $-16, %esp
pushl -4(%ecx)
pushl %ebp
movl %esp, %ebp
pushl %ecx
subl $20, %esp
movl $0, -8(%ebp)
jmp .L4
.L5:
movl -8(%ebp), %eax
movsbl %al,%eax
movl %eax, (%esp)
call func
addl $1, -8(%ebp)
.L4:
cmpl $254, -8(%ebp)
jle .L5
movl $0, %eax
addl $20, %esp
popl %ecx
popl %ebp
leal -4(%ecx), %esp
ret
.size main, .-main
.comm table,1024,32
.ident "GCC: (GNU) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)"
.section .note.GNU-stack,"",@progbits