-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Append .aot to .wasm as a custom section named "aot" #2933
Append .aot to .wasm as a custom section named "aot" #2933
Conversation
how do you plan to use the section? |
a pre_compiled wasm plugin for Envoy |
how does it load and execute the aot section? |
thanks for reminding. in a nutshell, envoy will load aot custom section and pass the content(in a string_view) to WAMR. https://github.com/proxy-wasm/proxy-wasm-cpp-host/blob/master/src/wasm.cc#L293 |
i suppose that it's safer to make some padding so that the start offset of |
the section layout likes:
IIUC, please correct me if wrong, the 4 byte padding goes to the beginning of section content, and the consumer(WAMR or embedder) needs to ignore the 4 padding. |
yea, i guess it's simplest to add the padding at the top of the custom section body.
note that the implementation might be a bit tricky as "section length" is variable lengh (leb128) and it affects the padding length. |
4cd440e
to
fe5bc8a
Compare
…e#2933) As a pre_compiled wasm plugin for Envoy: https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/wasm/v3/wasm.proto
No description provided.