enumswitch.s

sima/test/enumswitch.s · 536 B

From the archive 970706-sima.tgz

Download the archive   « Back to the archive contents

	.file	"enumswitch.c"
gcc2_compiled.:
___gnu_compiled_c:
.text
LC0:
	.ascii "good\12\0"
LC1:
	.ascii "evil\12\0"
	.align 4
.globl _f
_f:
	pushl %ebp
	movl %esp,%ebp
	cmpl $6,_a
	ja L2
	movl _a,%eax
	jmp *L10(,%eax,4)
	.align 4,0x90
L10:
	.long L5
	.long L7
	.long L9
	.long L7
	.long L5
	.long L5
	.long L9
	.align 4,0x90
L5:
	pushl $LC0
	call _printf
	movl %ebp,%esp
	popl %ebp
	ret
	.align 4,0x90
L7:
	pushl $LC1
	call _printf
	movl %ebp,%esp
	popl %ebp
	ret
	.align 4,0x90
L9:
	call _s
L2:
	movl %ebp,%esp
	popl %ebp
	ret
.comm _a,4

Site Stats

Snippets: 1791
Codebases: 571