Arduino sketch compiler

Enable verbose mode in the IDE and upload a sketch. It will show you all the commands used.