Understanding Arduino build process for IDE-haters

I'll inspect disassembled .hex files

Don't do that; inspect the .elf files instead. The .elf files contain MUCH more information (symbols, linenumber info, sections, etc.) The .hex file is completely stripped except for the actual object code bytes!