作者: James Renwick , Tom Spink , Björn Franke
关键词:
摘要: The C++ programming language offers a strong exception mechanism for error handling at the level, improving code readability, safety, and maintainability. However, current implementations are targeted general-purpose systems, often sacrificing size, memory usage, resource determinism sake of performance. This makes exceptions particularly undesirable choice embedded applications where size paramount. Consequently, coding guidelines either forbid use exceptions, or tool chains omit altogether. In this paper, we develop novel implementation that eliminates these issues, enables their systems. We combine existing stack unwinding techniques with new approach to management run-time type information (RTTI). doing so create compliant implementation, providing bounded runtime while reducing requirements by up 82%, incurring only minimal overhead common case no exceptions.