Skip to content

wasip3: Calls to __wasm_get_stack_pointer should directly invoke the imported context.get intrinsic #805

Description

@alexcrichton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions