Demo entry 6780579

Chronological order


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

	.file	"hello.c"
	.globl	sleepsecs
	.align 4
	.type	sleepsecs, @object
	.size	sleepsecs, 4
	.long	2
	.section	.rodata
	.string	"Usage: Hello \345\255\246\345\217\267 \345\247\223\345\220\215\357\274\201"
	.string	"Hello %s %s\n"
	.globl	main
	.type	main, @function
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	cmpl	$3, -20(%rbp)
	je	.L2
	leaq	.LC0(%rip), %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
	movl	$0, -4(%rbp)
	jmp	.L3
	movq	-32(%rbp), %rax
	addq	$16, %rax
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	$8, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	sleepsecs(%rip), %eax
	movl	%eax, %edi
	call	sleep@PLT
	addl	$1, -4(%rbp)
	cmpl	$9, -4(%rbp)
	jle	.L4
	call	getchar@PLT
	movl	$0, %eax
	.cfi_def_cfa 7, 8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0"
	.section	.note.GNU-stack,"",@progbits

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).