Add new comment

Disassemble Teensyduino Sketch

Submitted by Erik Wegner on
Body

The Arduino IDE compiles the C-style code and uploads the result to the target board.

When the code actually runs on the silicon, some strange behaviour may occur. To get a better understanding what is going on, have a look at the final assembler code.

  1. Open the preferences dialog in the file menu.
  2. Configure extended output for the compile step.
  3. Confirm the dialog and compile your sketch.
  4. Find the temporary directory for the compile process in the output window.
  5. Find the .elf (Teensy) file.
  6. Dump its content: arm-none-eabi-objdump -S /tmp/arduino_build_761689/sketch.ino.elf > result.txt
  7. The file result.txt will contain the source code and the final assembler.
Categories
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.