Re:Initialization in C++ is Seriously Bonkers
by monocasa on Saturday January 05, 2019 @10:54PM
(#18836473)
(Having been the lead for an RTOS) it matters less what the spec says, and more what the compiler expects. So like, you can ignore kill(3) by just not calling it. Patching the compiler to not depend on zero initialized .bss is way harder, and it's just easier to clear it yourself pre main.
Now C might want to do it too, but bare metal stuff is not necessarily compliant C so that doesn’t matter much.