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

User avatar
By RE:
#40444 I'm trying to get Ada running on the ESP8266.

I could successfully build my own compiler with the help of https://github.com/esp8266/esp8266-wiki/wiki/Toolchain#install-the-xtensa-crosstool-ng-as-local-user and http://wiki.linux-xtensa.org/index.php/Crosstool-NG. Unfortunately I hit some problems in the compiler and I have to switch to gcc-5.3. Is there anybody porting the xtensa toolchain to gcc-5.3?

Is there anybody else interested in programming the ESP8266 in Ada? I'd be glad if I could integrate the porting result into the general toolchain.

best regards
RE
User avatar
By jcmvbkbc
#40514
RE: wrote:Is there anybody porting the xtensa toolchain to gcc-5.3?

What porting do you feel is needed?

You can check out branch xtensa-1.22.x of https://github.com/jcmvbkbc/crosstool-NG , it's based on the latest crosstool-NG release offering gcc-5.2, not much different from 5.3.
I've tried to build ada compiler with it, it takes ./ct-ng menuconfig after ./ct-ng xtensa-lx106-elf , changing gcc version to 5.2 and adding ada to 'other languages' list (both in the 'C compiler' menu). Then running ./ct-ng build. For it to succeed you need gcc-5 based ada compiler on your host.
User avatar
By RE:
#40785 Instead of version 1.22 I used the HEAD version of crosstool-NG (not your branch of it) It provides already the support for gcc-5.3. So yes I can build the Ada compiler (together with C and C++) with crosstool-NG. Thanks.

The hard part for Ada is its run-time-system RTS (which is for Ada what libc is for C). But that is an entirely different problem. I am currently looking how to maintain the RTS as close as possible to the gcc build environment. My experience from AVR-Ada (http://sourceforge.net/projects/avr-ada/) shows an extra burden if I cannot maintain it as a set of patches relative to the gcc sources.

best regards
RE
User avatar
By jcmvbkbc
#40789
RE: wrote:Instead of version 1.22 I used the HEAD version of crosstool-NG (not your branch of it) It provides already the support for gcc-5.3. So yes I can build the Ada compiler (together with C and C++) with crosstool-NG. Thanks.

Good, I guess you've figured out how to use the overlay and what to do with the newlib.