mirror of https://github.com/aamine/cbc
r5030@macbookpro: aamine | 2009-06-06 21:36:52 +0900
* lib/alloca.s: shorten assembly. git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4276 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
parent
4cf7bd2ae8
commit
0f036467ce
|
@ -1,3 +1,7 @@
|
||||||
|
Sat Jun 6 21:36:09 2009 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* lib/alloca.s: shorten assembly.
|
||||||
|
|
||||||
Sat Jun 6 21:28:20 2009 Minero Aoki <aamine@loveruby.net>
|
Sat Jun 6 21:28:20 2009 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* sysdep/x86/CodeGenerator.java: refactoring: rename method:
|
* sysdep/x86/CodeGenerator.java: refactoring: rename method:
|
||||||
|
|
|
@ -2,13 +2,11 @@
|
||||||
.globl alloca
|
.globl alloca
|
||||||
.type alloca,@function
|
.type alloca,@function
|
||||||
alloca:
|
alloca:
|
||||||
addl $4, %esp
|
popl %ecx
|
||||||
movl -4(%esp), %ecx
|
|
||||||
movl (%esp), %eax
|
movl (%esp), %eax
|
||||||
addl $3, %eax
|
addl $3, %eax
|
||||||
andl $-4, %eax
|
andl $-4, %eax
|
||||||
subl %eax, %esp
|
subl %eax, %esp
|
||||||
movl %esp, %eax
|
leal 4(%esp), %eax
|
||||||
addl $4, %eax
|
|
||||||
jmp *%ecx
|
jmp *%ecx
|
||||||
.size alloca, .-alloca
|
.size alloca, .-alloca
|
||||||
|
|
Loading…
Reference in New Issue