Re:Practical Guide to Bare Metal C++
by fdsfsafasfdas on Friday June 02, 2017 @05:04PM
(#14473304)
Disabling exceptions has solved this. There are no need for exceptions in the kernel, and the cost is high.
[ Parent
| on HN ]
Re:Practical Guide to Bare Metal C++
by concede_pluto on Friday June 02, 2017 @05:48PM
(#14473563)
Isn't table-driven stack unwinding cheaper than having a bunch of functions each check an error code and return to their caller?
The practicalities of bare metal programming means that a lot of the time an individual work item has to jump contexts (ie. stacks and register sets) in a way that doesn't map cleanly to C++ style exceptions.