[LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
Dale Johannesen
dalej at apple.com
Tue Apr 6 14:49:43 PDT 2010
On Apr 6, 2010, at 2:31 PMPDT, Duncan Sands wrote:
> On 06/04/10 23:12, Gabi wrote:
>>> PS: Maybe not for x86 long double though.
>>
>> Right, so how to make x86 double displayed in decimal ?
>
> Currently this is never done AFAIK. I don't know why, maybe Dale
> does.
My preference is use the hex format throughout, so it hasn't been a priority and isn't likely to become one.
Long double presents special problems because it's not portable across machines, or across compilers in some cases. In some environments it is the same as double. So we can't assume host long double == target long double, or that host long double is big enough to hold a target long double, which in effect means we can't use host long double at all. That makes doing conversions tricky, though not impossible.
More information about the llvm-dev
mailing list