If you’re looking for a similar project for the ESP32, [Rui] has you covered there as well. You may also be interested in the series of ESP8266 tutorials we recently highlighted.
and putting some code on the ESP8266. It’s all in a git, with some video annotations. The tutorial covers setting up the Xtensa toolchain and a patched version of GCC, GDB, and binutils.