-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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_typewith 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels