AVR GCC
This is my fork of GCC with all of my exception handling stuff. It also contains the standard C++ library, which means you can just write normal(ish) C++.
#include <vector>
#include <cstdio>
int main(){
printf("hello world!\n");
std::vector v = {1,2,3,4};
for(int i : v){
printf("i: %d\n", i);
}
}
The fork is here, but you can download the full compiled toolchain here since it requires a forked binutils as well.
Caveats
Currently, iostreams
is known to be too large to fit in most devices because of floating
point conversion functions. Locale also is left unimplemented.