Stream: wasmtime

Topic: Linker C API


view this post on Zulip Thibault Charbonnier (Jun 16 2020 at 17:02):

Hi everyone,

I'd like to use the new Linker interface from C. Are there plans to support get_by_name and get_one_by_name from the C API as well? Would a PR adding support for it be welcome? Thanks.

view this post on Zulip Thibault Charbonnier (Jun 18 2020 at 21:11):

PR submitted here: https://github.com/bytecodealliance/wasmtime/pull/1897 (Thank you for looking into it @Alex Crichton !)

I'd like to use the new Linker to manage my modules from C, is this a supported use-case for the Linker?

view this post on Zulip Thibault Charbonnier (Jun 18 2020 at 21:13):

I also wonder if exposing the Func.getN() methods (https://bytecodealliance.github.io/wasmtime/api/wasmtime/struct.Func.html#method.get0) would be welcome? In my C embedding, there certainly will be functions of which the type signature will be statically known, and I'd like to take advantage of that.

view this post on Zulip Alex Crichton (Jun 18 2020 at 21:30):

@Thibault Charbonnier I've long wanted to add that to the C API as well

view this post on Zulip Alex Crichton (Jun 18 2020 at 21:30):

I'm not entirely sure the best way to expose it though, buf if you'd like to give it a stab feel free!


Last updated: Nov 22 2024 at 16:03 UTC