Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 513 rjek@octopus:~$ cat test.c
- int foo(void) { return 1; }
- 514 rjek@octopus:~$ faucc -b i286 -c test.c -o test.o
- 515 rjek@octopus:~$ objdump -d test.o
- test.o: file format elf32-i386
- Disassembly of section .text:
- 00000000 <foo>:
- 0: 55 push %ebp
- 1: 89 e5 mov %esp,%ebp
- 3: b8 01 00 5d cb mov $0xcb5d0001,%eax
- 516 rjek@octopus:~$ gcc -O2 -m32 -c test.c
- 517 rjek@octopus:~$ objdump -d test.o
- test.o: file format elf32-i386
- Disassembly of section .text:
- 00000000 <foo>:
- 0: 55 push %ebp
- 1: b8 01 00 00 00 mov $0x1,%eax
- 6: 89 e5 mov %esp,%ebp
- 8: 5d pop %ebp
- 9: c3 ret
- 518 rjek@octopus:~$ gcc -O2 -m64 -c test.c
- 519 rjek@octopus:~$ objdump -d test.o
- test.o: file format elf64-x86-64
- Disassembly of section .text:
- 0000000000000000 <foo>:
- 0: b8 01 00 00 00 mov $0x1,%eax
- 5: c3 retq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement