Menu

#7 Should use different compile options.

open
nobody
Integration (2)
5
2012-12-10
2010-08-23
Anonymous
No

xmds should not use -ffast-math when compiling code, it can calculate wrongly.

Much better would be to use IEEE exceptions (setting it up will probably needs 3 lines of asm) and -fno-math-errno for not using errno. It will not only disable errno calculation (gcc sometimes can infere that errno is overwritten, so no need to calculate it, but it is not always so clever), so speeding calculations for things like (sqrt, log), but also will detect overflow/underflow/nans, as quickly as possibly without slowing down a code.

BTW. Nice program.

Discussion

MongoDB Logo MongoDB