How does the build process for esp8266 work in arduino IDE. Arduino ide uses avr-gcc to compile programs For atmel micro controllers. Does it uses same for compiling programs for esp8266?


1 Answer 1


Does it uses same for compiling programs for esp8266 ?.

No. It uses xtensa-lx106-elf-gcc. The compiler has to match the architecture.

Most of the build "process" (as in the actions that are taken) is the same, but executables specific to the EXP8266's XTensa core are used. There's also a few extra things in there, like building the (optional) SPIFFS image, etc.

  • What about uploading code to the board, does it use avrdude for that. Is uploading process same for various boards like nodeMCU or wemos D1.
    – B45i
    Apr 4, 2018 at 13:31
  • 2
    No, it uses the ESP8266 specific program, called esptool. Every executable run is the ESP8266 specific one.
    – Majenko
    Apr 4, 2018 at 13:31

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.