1 Star 0 Fork 0

20145203 / the forth week

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rfact.s 659 Bytes
一键复制 编辑 原始数据 按行查看 历史
20145203 提交于 2016-10-16 22:56 . new file
.file "rfact.c"
.text
.globl rfact
.type rfact, @function
rfact:
.LFB0:
.cfi_startproc
pushl %ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
movl %esp, %ebp
.cfi_def_cfa_register 5
subl $24, %esp
cmpl $1, 8(%ebp)
jg .L2
movl $1, -12(%ebp)
jmp .L3
.L2:
movl 8(%ebp), %eax
subl $1, %eax
subl $12, %esp
pushl %eax
call rfact
addl $16, %esp
imull 8(%ebp), %eax
movl %eax, -12(%ebp)
.L3:
movl -12(%ebp), %eax
leave
.cfi_restore 5
.cfi_def_cfa 4, 4
ret
.cfi_endproc
.LFE0:
.size rfact, .-rfact
.ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609"
.section .note.GNU-stack,"",@progbits
C
1
https://gitee.com/gzsgzsgzs/the-forth-week.git
git@gitee.com:gzsgzsgzs/the-forth-week.git
gzsgzsgzs
the-forth-week
the forth week
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891