⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sort.sbk

📁 lcc,一个可变目标c语言编译器的源码
💻 SBK
字号:
.data.globl in.align 4.type in,@objectin:.long 10.long 32.long -1.long 567.long 3.long 18.long 1.long -51.long 789.long 0.size in,40.globl main.text.align 16.type main,@functionmain:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpsubl $4,%esppushl $10pushl $incall sortaddl $8,%espmovl $0,-4(%ebp)jmp .LC5.LC2:movl -4(%ebp),%edipushl in(,%edi,4)call putdaddl $4,%esppushl $10call putcharaddl $4,%esp.LC3:incl -4(%ebp).LC5:movl -4(%ebp),%edicmpl $10,%edijb .LC2mov $0,%eax.LC1:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf6:.size main,.Lf6-main.globl putd.align 16.type putd,@functionputd:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpcmpl $0,20(%ebp)jge .LC8pushl $45call putcharaddl $4,%espnegl 20(%ebp).LC8:movl 20(%ebp),%eaxmov $10,%ecxcdqidivl %ecxcmpl $0,%eaxje .LC10movl 20(%ebp),%eaxmov $10,%ecxcdqidivl %ecxpushl %eaxcall putdaddl $4,%esp.LC10:movl 20(%ebp),%eaxmov $10,%ecxcdqidivl %ecxleal 48(%edx),%edipushl %edicall putcharaddl $4,%espmov $0,%eax.LC7:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf12:.size putd,.Lf12-putd.globl sort.align 16.type sort,@functionsort:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpmovl 24(%ebp),%edisubl $1,%edimovl %edi,24(%ebp)pushl %edipushl $0movl 20(%ebp),%edimovl %edi,xxpushl %edicall quickaddl $12,%espmov $0,%eax.LC13:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf14:.size sort,.Lf14-sort.globl quick.align 16.type quick,@functionquick:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpsubl $4,%espmovl 28(%ebp),%edicmpl %edi,24(%ebp)jl .LC16mov $0,%eaxjmp .LC15.LC16:pushl 28(%ebp)pushl 24(%ebp)pushl 20(%ebp)call partitionaddl $12,%espmovl %eax,-4(%ebp)movl -4(%ebp),%edisubl $1,%edipushl %edipushl 24(%ebp)pushl 20(%ebp)call quickaddl $12,%esppushl 28(%ebp)movl -4(%ebp),%edileal 1(%edi),%edipushl %edipushl 20(%ebp)call quickaddl $12,%espmov $0,%eax.LC15:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf18:.size quick,.Lf18-quick.globl partition.align 16.type partition,@functionpartition:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpsubl $8,%espincl 28(%ebp)movl 24(%ebp),%edimovl %edi,-8(%ebp)movl -8(%ebp),%edimovl 20(%ebp),%esimovl (%esi,%edi,4),%edimovl %edi,-4(%ebp)jmp .LC21.LC20:incl 24(%ebp)jmp .LC24.LC23:incl 24(%ebp).LC24:movl 24(%ebp),%edimovl 20(%ebp),%esimovl -4(%ebp),%ebxcmpl %ebx,(%esi,%edi,4)jl .LC23decl 28(%ebp)jmp .LC27.LC26:decl 28(%ebp).LC27:movl 28(%ebp),%edimovl 20(%ebp),%esimovl -4(%ebp),%ebxcmpl %ebx,(%esi,%edi,4)jg .LC26movl 28(%ebp),%edicmpl %edi,24(%ebp)jge .LC29movl 20(%ebp),%edimovl 28(%ebp),%esileal (%edi,%esi,4),%esipushl %esimovl 24(%ebp),%esileal (%edi,%esi,4),%edipushl %edicall exchangeaddl $8,%esp.LC29:.LC21:movl 28(%ebp),%edicmpl %edi,24(%ebp)jl .LC20movl 20(%ebp),%edimovl 28(%ebp),%esileal (%edi,%esi,4),%esipushl %esimovl -8(%ebp),%esileal (%edi,%esi,4),%edipushl %edicall exchangeaddl $8,%espmovl 28(%ebp),%eax.LC19:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf31:.size partition,.Lf31-partition.globl exchange.align 16.type exchange,@functionexchange:pushl %ebppushl %ebxpushl %esipushl %edimovl %esp,%ebpsubl $4,%espmovl xx,%edimov $4,%esimovl 24(%ebp),%ebxsubl %edi,%ebxmovl %ebx,%eaxmovl %esi,%ecxcdqidivl %ecxpushl %eaxmovl 20(%ebp),%ebxsubl %edi,%ebxmovl %ebx,%eaxmovl %esi,%ecxcdqidivl %ecxpushl %eaxpushl $.LC33call printfaddl $12,%espmovl 20(%ebp),%edimovl (,%edi),%esimovl %esi,-4(%ebp)movl 24(%ebp),%esimovl (,%esi),%esimovl %esi,(,%edi)movl 24(%ebp),%edimovl -4(%ebp),%esimovl %esi,(,%edi)mov $0,%eax.LC32:movl %ebp,%esppopl %edipopl %esipopl %ebxpopl %ebpret.Lf34:.size exchange,.Lf34-exchange.bss.globl xx.align 4.type xx,@object.size xx,4.comm xx,4.data.align 1.LC33:.byte 101.byte 120.byte 99.byte 104.byte 97.byte 110.byte 103.byte 101.byte 40.byte 37.byte 100.byte 44.byte 37.byte 100.byte 41.byte 10.byte 0.text.ident "LCC: 4.1"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -