1

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
1
  • 1
    avr-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". Commented Jan 7, 2017 at 16:31

1 Answer 1

2

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.