anqur opened PR #12028 from anqur:main to bytecodealliance:main:
When emitting the ELF object with related DWARF debuginfo for an in-memory generated code, one typically needs to set the size of the
.textsection, this API is for such advanced usage.See some related discussions in this Zulip chat.
anqur requested alexcrichton for a review on PR #12028.
anqur requested wasmtime-compiler-reviewers for a review on PR #12028.
anqur edited PR #12028:
When emitting the ELF object with related DWARF debuginfo for an in-memory generated code, one typically needs to set the size of the
.textsection, this API is for such advanced usage.See some related discussions in this Zulip chat.
anqur updated PR #12028.
bjorn3 commented on PR #12028:
You can also use
context.compiled_code().unwrap().buffer.total_size()after callingmodule.define_function(func_id, &mut context).
bjorn3 edited a comment on PR #12028:
You can also use
context.compiled_code().unwrap().buffer.data().len()after callingmodule.define_function(func_id, &mut context).
anqur closed without merge PR #12028.
@bjorn3 That's some absolute stunning and pure fire, thanks so much for this deep dive!
Last updated: Dec 06 2025 at 07:03 UTC