Skip to content
Snippets Groups Projects
Commit 16a3492a authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Nachtrag: 15.12.2016

parent f51e0d98
No related branches found
No related tags found
No related merge requests found
#include <stdio.h>
void hello (void)
{
printf ("Hello, world!\n");
}
int main (void)
{
hello ();
return 0;
}
.file "function-call.c"
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "Hello, world!"
.text
.globl hello
.type hello, @function
hello:
.LFB11:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
movl $.LC0, %edi
call puts
addq $8, %rsp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE11:
.size hello, .-hello
.globl main
.type main, @function
main:
.LFB12:
.cfi_startproc
subq $8, %rsp
.cfi_def_cfa_offset 16
call hello
movl $0, %eax
addq $8, %rsp
.cfi_def_cfa_offset 8
ret
.cfi_endproc
.LFE12:
.size main, .-main
.ident "GCC: (Debian 4.9.2-10) 4.9.2"
.section .note.GNU-stack,"",@progbits
20161215/photo-20161215-182130.jpg

151 KiB

20161215/photo-20161215-182223.jpg

163 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment