annotate loader/stubs.s @ 644:88eb1a3f7bfb

Changed code, should be faster on Athlon/K6 but slower on PIII with SSE, more portable.
author atmosfear
date Thu, 26 Apr 2001 20:35:58 +0000
parents 3b5f5d1c5041
children 9355b2ae634e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 .file "stubs.c"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 .version "01.01"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 gcc2_compiled.:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 .section .rodata
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 .LC0:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 .string "Called unk_%s\n"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 .text
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 .align 4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 .globl unk_exp1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 .type unk_exp1,@function
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 unk_exp1:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 pushl %ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 movl %esp,%ebp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 subl $4,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 movl $1,-4(%ebp)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 movl -4(%ebp),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 movl %eax,%ecx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 movl %ecx,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 sall $4,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 subl %eax,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 leal 0(,%edx,2),%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 movl %eax,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 addl $export_names,%edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 pushl %edx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 pushl $.LC0
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 call printf
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 addl $8,%esp
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 xorl %eax,%eax
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 jmp .L1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 .align 4
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 .L1:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 leave
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 ret
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 .Lfe1:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 .size unk_exp1,.Lfe1-unk_exp1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 .ident "GCC: (GNU) egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)"