Stream: cranelift

Topic: data offset


view this post on Zulip julia (Oct 14 2022 at 02:56):

Hi, sorry if my question looks silly. I need to automatically detect the offset of a specific string variable in the data section. Is there any way to detect it from wasm module with Cranelift or I have to use the compiler which has translated the code to wasm module?

view this post on Zulip bjorn3 (Oct 14 2022 at 07:18):

If you export a global variable the wasm global with the name of this global variable will contain the offset. If you don't export it I'm not sure you can access it.


Last updated: Dec 23 2024 at 13:07 UTC