Stream: git-cranelift

Topic: cranelift / Issue #913 How to call functions where args m...


view this post on Zulip GitHub (Feb 28 2020 at 23:26):

alexcrichton transferred Issue #913:

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: Nov 22 2024 at 16:03 UTC