I am trying to change the endianity of multibyte data(no larger than generic type) stored on dwarf stack. I have gone through dwarfv5 DW_OP_xxx operators but not able to find any operator to swap bytes. although i am able to do it using list of operations like shift/mask/bitwise-and but that creates a near about 25 DW_OPs for each time i want to make that changes.
I am aware of dwarf_subroutines, do anybody know if we have any single(or two) dwarf operator(s) to swap the bytes of top of the dwarf stack value. (or any enhancement issues for DWARFv5) or any non-standard extensions.
Thanks in advance.