Gabi
2010-Apr-06 21:12 UTC
[LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
> PS: Maybe not for x86 long double though.Right, so how to make x86 double displayed in decimal ? -- Regards, Gabi http://bugspy.net
Duncan Sands
2010-Apr-06 21:31 UTC
[LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
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. Ciao, Duncan.
Dale Johannesen
2010-Apr-06 21:49 UTC
[LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
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.
Possibly Parallel Threads
- [LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
- [LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
- [LLVMdev] How to avoid memory leaks
- [LLVMdev] JIT : Does it cache the compiled code of executed functions upon runFunction(..)?
- [LLVMdev] JIT : Does it cache the compiled code of executed functions upon runFunction(..)?