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: Dec 23 2024 at 13:07 UTC