Get a manual for your processors assembly and a description of the way binaries are organized for your operating system (Headers, sections).
Try to build a minimal binary with c, analyze it, try to modify it. Find out what the appropriate tools are for your operating system.