Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add Register Spill to GC for all target processor architectures #10311

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

Open
eightycc opened this issue May 5, 2025 · 2 comments
Open

Add Register Spill to GC for all target processor architectures #10311

eightycc opened this issue May 5, 2025 · 2 comments

Comments

@eightycc
Copy link
Collaborator

eightycc commented May 5, 2025

It is possible, as demonstrated by #10298, for a live memory pointer to exist only in a register when gc_collect is called. ports/espressif/mphalport.c:cpu_get_regs_and_sp() implements register spill for Xtensa processors. Similar spilling needs to be implemented, in a processor-dependent fashion, for other target processor architectures.

@tannewt
Copy link
Member

tannewt commented May 5, 2025

I don't think RISC-V needs spilling because it doesn't have register windows. Instead, we'll want to copy out of the RISC-V registers.

@eightycc
Copy link
Collaborator Author

eightycc commented May 5, 2025

I don't think RISC-V needs spilling because it doesn't have register windows. Instead, we'll want to copy out of the RISC-V registers.

I think we mean the same thing. I was using the term spill in its more general sense, meaning to move register contents to RAM.

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

No branches or pull requests

2 participants