Demo entry 6780580

Chronological order

   

Submitted by anonymous on Dec 27, 2018 at 12:16
Language: C. Code size: 1.4 kB.

 1     .file   "hello.c"                                                                                                                                                                                  
  2     .text
  3     .globl  sleepsecs
  4     .data
  5     .align 4
  6     .type   sleepsecs, @object
  7     .size   sleepsecs, 4
  8 sleepsecs:
  9     .long   2
 10     .section    .rodata
 11 .LC0:
 12     .string "Usage: Hello \345\255\246\345\217\267 \345\247\223\345\220\215\357\274\201"
 13 .LC1:
 14     .string "Hello %s %s\n"
 15     .text
 16     .globl  main
 17     .type   main, @function
 18 main:
 19 .LFB5:
 20     .cfi_startproc
 21     pushq   %rbp
 22     .cfi_def_cfa_offset 16
 23     .cfi_offset 6, -16
 24     movq    %rsp, %rbp
 25     .cfi_def_cfa_register 6
 26     subq    $32, %rsp
 27     movl    %edi, -20(%rbp)
 28     movq    %rsi, -32(%rbp)
 29     cmpl    $3, -20(%rbp)
 30     je  .L2
 31     leaq    .LC0(%rip), %rdi
 32     call    puts@PLT
 33     movl    $1, %edi
 34     call    exit@PLT
 35 .L2:
 36     movl    $0, -4(%rbp)
 37     jmp .L3
 38 .L4:
 39     movq    -32(%rbp), %rax
 40     addq    $16, %rax
 41     movq    (%rax), %rdx
 42     movq    -32(%rbp), %rax
 43     addq    $8, %rax
 44     movq    (%rax), %rax
 45     movq    %rax, %rsi
                                    

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).