[Dwarf-Discuss] dwarf stack operator for byte swap.
Fri Nov 8 08:19:48 GMT 2019
Yes, the size of type I have in mind is generic, size of an address.
Software Engineer | Raincode Labs India
Tel: (+91) 080 41159811
Mob: (+91) 9049336744
From: Jakub Jelinek <firstname.lastname@example.org>
Sent: 08 November 2019 13:45
To: Chirag Patel <Chirag at raincode.com>
Cc: Michael Eager <eager at eagercon.com>; Robinson, Paul <paul.robinson at sony.com>; Ron Brender <ron.brender at gmail.com>; dwarf-discuss at lists.dwarfstd.org
Subject: Re: [Dwarf-Discuss] dwarf stack operator for byte swap.
On Fri, Nov 08, 2019 at 06:51:52AM +0000, Chirag Patel via Dwarf-Discuss wrote:
> Proposed changes to DWARF
> 220.127.116.11 Special Operation
> <n> DW_OP_byte_swap
> The DW_OP_byte_swap operation pops the top stack entry, byte swaps the value
> and pushes back the swapped value on the dwarf stack.
> e.g. so 0x12345678 will become 0x78563412, useful to change endianity of raw
With the typed DWARF stack it is clear, the types have well defined size, but when using the most common values, where the values have generic type, does that mean DW_OP_byte_swap there is bswap64 if address is 64-bit, or
bswap32 if address is 32-bit, or for 16-bit addresses bswap16 etc.?
More information about the Dwarf-discuss