You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the return types are under-specified in the case that a WASM func returns more than one value (this is part of spec v1.1).
Let's assume we want to emit DWARF from wast2wasm:
when there are zero returns, omit the DW_AT_type
when one result emit DW_AT_type with that result type
when more than one result, ???.
One workaround that comes to my mind is emitting a synthetic tuple type, but maybe a proper solution should be worked out in cooperation with a future DWARF6 spec.
I am actually asking for ideas how to map multi-returns to DWARF5 and I am happy to provide input for discussion.
The text was updated successfully, but these errors were encountered:
One workaround that comes to my mind is emitting a synthetic tuple type, but maybe a proper solution should be worked out in cooperation with a future DWARF6 spec.
I think it is sensible do both. We want to introduce DW_TAG_ extension to be specific for Wasm multi-value return for sure, and per "7.1 Vendor Extensibility" of the standard it is an acceptable way.
I think the return types are under-specified in the case that a WASM
func
returns more than one value (this is part of spec v1.1).Let's assume we want to emit DWARF from
wast2wasm
:DW_AT_type
DW_AT_type
with that result typeOne workaround that comes to my mind is emitting a synthetic tuple type, but maybe a proper solution should be worked out in cooperation with a future DWARF6 spec.
I am actually asking for ideas how to map multi-returns to DWARF5 and I am happy to provide input for discussion.
The text was updated successfully, but these errors were encountered: