RIOT and static initializers in C++

If you want to stay close to Posix, IMHO you should retain main, perhaps even with (compile-time constant) argc and argv there, too. And perhaps also allow main to return (only to be called again, perhaps), or call exit, to reboot the device.

If Posix-compliance is not a strict goal, it doesn't really matter what you want to call the entry point to the application. You have to document anyway, carefully, what happens before the application entry point is called, as there is no single right way in the embedded world.

--Pekka

Hi,

what I was asking is whether there are other toolchains that would handle things differently (*better* for whatever meaning of better anyone can come up with in the context of RIOT) during the build process. I.e. obsoleting parts of linker scripts or whatever.

Cheers, Ludwig