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

Codify Save/Restore Frame Layout #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lenary
Copy link

@lenary lenary commented Jan 2, 2025

These layouts need to be compatible between what the compiler expects when emitting CFI information, and what the library actually implements, so we write a bit more detail about how these should work to ensure that compatibility.

Fixes #35

@lenary
Copy link
Author

lenary commented Jan 2, 2025

@kito-cheng I know you did the GCC implementation, hopefully you feel this wording is good enough to allow some flexibility in implementation, while still ensuring compilers can emit the right CFI information?

src/toolchain-conventions.adoc Outdated Show resolved Hide resolved
src/toolchain-conventions.adoc Outdated Show resolved Hide resolved
src/toolchain-conventions.adoc Show resolved Hide resolved
@lenary lenary force-pushed the pr/save-restore-layout branch from 35aff36 to 07462b9 Compare January 7, 2025 15:50
Copy link
Collaborator

@kito-cheng kito-cheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one minor comment

These layouts need to be compatible between what the compiler expects
when emitting CFI information, and what the library actually implements,
so we write a bit more detail about how these should work to ensure that
compatibility.

Fixes riscv-non-isa#35

Signed-off-by: Sam Elliott <[email protected]>
@lenary lenary force-pushed the pr/save-restore-layout branch from 07462b9 to f0402aa Compare January 16, 2025 11:50
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

Successfully merging this pull request may close these issues.

Stack frame layout for __riscv_{save,restore}_N
2 participants