Skip to content
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

Herbceptions ABI for loongarch #6

Open
trcrsired opened this issue Dec 27, 2023 · 0 comments
Open

Herbceptions ABI for loongarch #6

trcrsired opened this issue Dec 27, 2023 · 0 comments

Comments

@trcrsired
Copy link

trcrsired commented Dec 27, 2023

https://github.com/loongson/la-abi-specs/blob/release/lapcs.adoc

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0709r4.pdf
https://www.open-std.org/JTC1/SC22/WG14/www/docs/n2429.pdf

According to C and C++ standard, there is a proposal on defining a new exception handling system. It runs by returning 2 registers + a boolean discriminant.

I suggest to define the ABI now by using r12 register as the register for storing that boolean discriminant flag to indicate the function throws an exception or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant