Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By CHERTS
#7335
missyrat wrote:@CHERTS
Thank you for the awesome easy to use devkit install!
Version 1.0.5 doesn't seem to include g++ - from the comments on this forum I get the impression that pre 1.0.5 did - do you plan to add it back in?
Thanks again!


Yes, g ++ compiler is not DevKit version 1.0.5 x86, it was never there.
g ++ was DevKit version 1.0.4 x64, but I stopped her support.

I do not see any reason to use the compiler g ++, because
1. Dramatically increases the memory consumption in esp8266
2. No basic libraries compiled g ++
Its use for the assembly of firmware currently impossible.
User avatar
By igrr
#7349
CHERTS wrote:I do not see any reason to use the compiler g ++, because
1. Dramatically increases the memory consumption in esp8266
2. No basic libraries compiled g ++
Its use for the assembly of firmware currently impossible.

Personally I don't see any issues with g++ on esp8266, aside from the fact that you need to define new/delete operators and provide a routine that initializes global objects. I've got some fairly complex pieces of c++ code running on esp8266 with no memory issues. So in case anyone needs a toolchain which includes g++, here's one for Windows x86:
http://download.igrr.me/win32-xtensa-lx106-elf.tgz
Just watch out for extern "C" declarations and adjust your makefile to compile cpp files with g++ ;)
User avatar
By l0ur3nz0
#7442
boseji wrote:Hello,

I wish to thank you for your work on the Windows SDK.

I have tried to package all the things together and am now set to load my custom Firmware.

Thank you,

Warm Regards,
Boseji


x2!

thank you for your hard work!

keep going!