Need details about generating traps for floating point exceptions

Faisal Riyaz faisalriyaz011@gmail.com
Mon Jun 24 11:40:00 GMT 2019


Hi,


I am interested in knowing more about how traps are generated when floating
point exception occur.

Currently, gcc for RISC-V(riscv64-unknown-elf-gcc (GCC) 8.2.0) does not
generate traps on encountering

floating point exceptions.


I am going through glibc source code.  I found .c files for functions
defined in fenv.h to handle floating point

exceptions but i am not able to figure out how trap is generated.

Thanks

Faisal



More information about the Libc-help mailing list