Precise target floating-point emulation in GDB

Sep 8, 2017



New features available on some targets, in particular support for IEEE-compatible 128-bit floating-point arithmetic on Power (and Intel), are starting to expose long-standing GDB limitations. In particular, GDB currently performs all expression evaluation on floating-point types using host "long double" arithmetic. This may get very different results compared with actual target execution if the target data type has greater range and/or precision than the host's long double type. In this talk, I'll discuss options how to fix this problem. In particular, I'll propose a solution to use floating-point emulation, similar to what is done by GCC for constant-folding, to precisely mirror target floating-point arithmetic.



About GNU

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go, as well as libraries for these languages (libstdc++,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom.

Store presentation

Should this presentation be stored for 1000 years?

How do we store presentations

Total of 0 viewers voted for saving the presentation to eternal vault which is 0.0%


Recommended Videos

Presentations on similar topic, category or speaker