-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.s
28 lines (24 loc) · 794 Bytes
/
hello.s
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
# gcc -g -c hello.c
# objdump -d -M intel -S hello.o
hello.o: file format pe-i386
Disassembly of section .text:
00000000 <_main>:
#include <stdio.h>
int main()
{
0: 55 push ebp
1: 89 e5 mov ebp,esp
3: 83 e4 f0 and esp,0xfffffff0
6: 83 ec 10 sub esp,0x10
9: e8 00 00 00 00 call e <_main+0xe>
// Primeiro programa hello world
printf("Ola Mundo!!!");
e: c7 04 24 00 00 00 00 mov DWORD PTR [esp],0x0
15: e8 00 00 00 00 call 1a <_main+0x1a>
return 0;
1a: b8 00 00 00 00 mov eax,0x0
1f: c9 leave
20: c3 ret
21: 90 nop
22: 90 nop
23: 90 nop