Compiling an object file with debug information and without optimization (gcc -O0 -c -g simple.c) and then dumping it (objdump -d -S simple.o) produces
simple.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <someFunc>:
int someFunc(int param_1, int param_2) {
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
4: 89 7d ec mov %edi,-0x14(%rbp)
7: 89 75 e8 mov %esi,-0x18(%rbp)
int ret = param_1 + param_2;
a: 8b 55 ec mov -0x14(%rbp),%edx
d: 8b 45 e8 mov -0x18(%rbp),%eax
10: 01 d0 add %edx,%eax
12: 89 45 fc mov %eax,-0x4(%rbp)
return ret;
15: 8b 45 fc mov -0x4(%rbp),%eax
}
18: 5d pop %rbp
19: c3 retq