rdpoor:
The answers to many of these questions become clear if you enable the 'build.verbose' option in the Arduino IDE. The process is not exactly straightforward, so I wrote up a short tutorial on how to do just that:
WHAT? Not straightforward? There are two checkboxes in the Preferences for that!