aWsm icon indicating copy to clipboard operation
aWsm copied to clipboard

Translation when table is exported

Open michelledaviest opened this issue 2 years ago • 4 comments

Hello!

Does aWsm translate binaries whose tables are exported? I keep getting the following error when I try to compile binaries that export their libraries.

thread 'main' panicked at 'Have not implemented export kind Table', src/wasm.rs:1238:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Thanks!

michelledaviest avatar Jul 27 '22 00:07 michelledaviest

I think this error is in place because we never decided on an ABI for table exports.

Do you actually want to export your tables? Or just have us not crash when encountering tables that happen to be exported?

Others avatar Jul 27 '22 00:07 Others

I wanted to export my tables. Do you have any workaround or were y'all planning to introduce this in the future? Thanks for the quick response! :)

michelledaviest avatar Jul 27 '22 00:07 michelledaviest

Is the idea that you'd then link in another binary that imported that table?

Others avatar Jul 27 '22 00:07 Others

Yup!

michelledaviest avatar Jul 27 '22 00:07 michelledaviest