Stream: git-wasmtime

Topic: wasmtime / Issue #1108 How to call functions where args m...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 17 2020 at 10:03):

bnjbvr closed Issue #1108:

For example:

#[derive(C)]
struct S {
    a: u64,
    b: u64,
    c: u64,
    d: u64,
    e: u64,
}

extern "C" {
    fn take_a(a: A);
}

When calling take_a the argument must be put in the input argument area of the stack.

cc https://github.com/bjorn3/rustc_codegen_cranelift/issues/10#issuecomment-523136265


Last updated: Oct 23 2024 at 20:03 UTC