How can I set the Arduido IDE to generate the -S
flag to gcc to see the machine code in Arduino? (the sketches)
VE7JRO
2,51519 gold badges27 silver badges29 bronze badges
asked Jan 4, 2017 at 16:54
FJsantoFJsanto
-
1avr-gcc's switch "-S" means "Compile only; do not assemble or link". Are you thinking of avr-objdump? It's "-S" switch means "Intermix source code with disassembly".JRobert– JRobert2017年01月07日 16:31:48 +00:00Commented Jan 7, 2017 at 16:31
1 Answer 1
Compiler flags are defined in the platform.txt of the board you have selected in the Tools> Board menu. You can also add compiler flags via a build.extra_flags
property in the boards.txt entry for the selected board.
answered Jan 4, 2017 at 23:47