Paste #5SE -- näytä pelkkänä tekstinä -- uusi tämän pohjalta
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | $ cat bla.c #include <stdio.h> int main(void) { int i = 0, j = 1; for(i = 32; i < 64; ++i) { char buf[10000]; for(j = 0; j < 10000; ++j) buf[j] = i; buf[9999] = 0; puts(buf); } return 0; } $ gcc -S -O0 -o bla.S bla.c $ cat bla.S .file "bla.c" .text .globl main .type main, @function main: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $10016, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) movl $32, -4(%rbp) jmp .L2 .L5: movl $0, -8(%rbp) jmp .L3 .L4: movl -4(%rbp), %eax movl %eax, %edx movl -8(%rbp), %eax cltq movb %dl, -10016(%rbp,%rax) addl $1, -8(%rbp) .L3: cmpl $9999, -8(%rbp) jle .L4 movb $0, -17(%rbp) leaq -10016(%rbp), %rax movq %rax, %rdi call puts addl $1, -4(%rbp) .L2: cmpl $63, -4(%rbp) jle .L5 movl $0, %eax leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size main, .-main .ident "GCC: (Gentoo 4.6.3 p1.11, pie-0.5.2) 4.6.3" .section .note.GNU-stack,"",@progbits |