Stream: cranelift

Topic: Calling malloc?


view this post on Zulip osa1 (May 13 2020 at 07:45):

I'm trying to call malloc in my cranelift-generated code, but I'm not sure how make an ExternalName for it. It's certainly not a user name or a test case, but it seems like it's also not a LibCall? Any tips?

view this post on Zulip bjorn3 (May 13 2020 at 09:25):

You can use cranelift-module crate: module.define_function + module.define_func_in_func

view this post on Zulip osa1 (May 13 2020 at 21:51):

Thanks!


Last updated: Dec 23 2024 at 12:05 UTC