I'm extracting out an issue for my comment at #799 (comment). Currently the __wasm_get_stack_pointer function is a non-inlinable inline assembly function that, at the wasm level, calls the context.get intrinsic which is imported. This indirection is not boiled away by runtimes like Wasmtime by default, and I think it's something that we should strive to fix at the toolchain level. This may require changes in wasm-ld, or may require changes here, I'm not entirely sure.
I'm extracting out an issue for my comment at #799 (comment). Currently the
__wasm_get_stack_pointerfunction is a non-inlinable inline assembly function that, at the wasm level, calls thecontext.getintrinsic which is imported. This indirection is not boiled away by runtimes like Wasmtime by default, and I think it's something that we should strive to fix at the toolchain level. This may require changes in wasm-ld, or may require changes here, I'm not entirely sure.