I really would like to be able to add additional c++ compiler options that would do the following:
write a file consisting of the output of the preprocessing stage (i.e. a file containing the source code file with all macros expanded). This is easy enough to do with the -E option if I were to manually execute: gcc -E ....
write a file consisting of the assembler code generated by the compiler. This would allow me to actually see and study, in a meaningful way, what code is actually generated and executed.
I've looked at the Arduino preferences file to see if there exists a flag to enable this behavior but did not find any. Also searching all the arduino related files also did not reveal where the compiler is actually invoked so I could not make any modifications. So, is there a way I can do this or can the Arduino development team add this functionality?