[PATCH] [WebAssembly] Disassembler support

Alan Modra amodra@gmail.com
Sun Apr 9 10:35:00 GMT 2017


On Fri, Apr 07, 2017 at 10:56:57PM +0000, Pip Cet wrote:
> Hi Alan,
> you're right; it was my mistake to use DECIMAL_DIG in the first place.
> I still believe the right fix is to avoid that constant entirely, and
> use one specific to IEEE 754 doubles, which are what we want to print
> anyway; but if you can think of a better fix, please let me know.

I hadn't been following the thread, and have only just now seen
Simon's email.  Sorry to gang up on you.  :)

I think what I'd be inclined to do is print your WebAssembly floats
and doubles in %a format.  You can probably do that without converting
to host doubles.  If that idea doesn't fly, just use a constant
specific to your target floats and doubles, hoping the host is
reasonably compatible.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list