Skip to content

Hylo in Resource-Constrained Embedded #918

Closed Answered by dabrahams
waydan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @waydan, thanks for your interest!

the exception implementation relies on dynamic memory (causing non-deterministic execution time) and RTTI (bloating the image side). P0709 explains this is due to the way exceptions are specified in the language.

There's no need for dynamic memory allocation, and I don't think the paper says there is. Yes, some form of RTTI is needed, but as far as I can tell there's no reason its performance needs to be non-deterministic, especially if you only catch primitive types and final classes. I do see that the paper says “today’s dynamic exception types violate the zero- overhead principle, and do not have statically boundable space and time costs,” which …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by waydan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants