This is perhaps a silly question, but does Rust have a macro (I am guessing it needs to be a macro) to call a function with a different stack?
I am looking for something similar to the @call
builtin from Zig, where we can simply pass a pointer a new stack.
Admittedly, this macro will require unsafe to run, but that is fine by me.
2 Likes
Any idea if these are usable in a WASM module?
Unfortunately not. Per psm
's README.md
:
This library is not applicable to the target. WASM hasn’t a specified C ABI, the callstack is not even in an address space and does not appear to be manipulatable.
2 Likes