-
Notifications
You must be signed in to change notification settings - Fork 13.3k
exception playground #4694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exception playground #4694
Conversation
CI failed due to linker complaining |
Ok, so let me get this straight:
I know less than nothing about the voodoo involved here, but it sounds to me like this is pretty close to viable.
Overall, I think that if catch gets fixed, then maybe we're good for a first version. @igrr @earlephilhower what are your thoughts on this? |
This is needed somewhere (for Travis-CI too):
|
There are a few more things missing for exception support...
|
For me this is an area that has a sign that says "here be dragons", but it sounds like it would be more or less straightforward for someone with the right knowledge. |
In addition to exceptions above, and if we come to try with gcc changes, let's not forget #4520:
@igrr one can always start from scratch (with jcmvbkbc/gcc-xtensa or? pfalcon/esp-open-sdk). |
@earlephilhower You also have the beginning of an answer. What I'm pushing for is a common place to start experiments with. That way interesting findings, even if not rightly used, can be stored and visible for a later review when someone have time to play with. |
Closing in favor of #5376 . |
Out of curiosity, I tried to enable exceptions.
With these changes and a random sketch, flash size is increased by 40KB, and a hundred bytes in ram.
It compiles and run until a
throw
test supposed to becatch(...)
ed, which ends up in anabort()
call (nothing is executed after thethrow
).I'm not sure whether I'm playing with fire but I'd like to understand the (un)feasibility of the thing.