krh commented on issue #1043:
Is there an option to force spilling of callee save registers?
cfallin commented on issue #1043:
Not exactly as such; we have ongoing work to add ABIs that behave this way, but switching the ABI specified for a callee implies much bigger changes than just forced-spills.
Could you say more about why you want this in particular? Knowing the end goal might help us understand better what to recommend. E.g., if you're trying to call a function that actually does conform to an ABI with no callee-saves, the right answer is "add support for that different ABI". If you want registers on the stack for... debugging, or observability, or something like that, then we can talk about that in more detail.
jameysharp commented on issue #1043:
Kristian gave a little more context in Zulip ("I'm calling into something that can't guarantee it won't clobber callee saved registers"). I'd suggest we continue the conversation there or open a new issue; this issue isn't all that related.
cfallin commented on issue #1043:
Ah! Indeed, I didn't connect the two threads as being related, sorry :-)
krh commented on issue #1043:
Hehe, sorry for spamming this old bug, it came up search.
Last updated: Oct 23 2024 at 20:03 UTC