4 ms·
Trap on Overflow is not that expensive: http://www.sei.cmu.edu/reports/10tn008.pdf http://www.sei.cmu.edu/reports/10tn008.pdf I am thrilled they did this. Impl
by ysleepy 12y ago
Trap on Overflow is not that expensive: http://www.sei.cmu.edu/reports/10tn008.pdf http://www.sei.cmu.edu/reports/10tn008.pdf
I am thrilled they did this. Implicit Overflow is the stupidest shit I know that everyone takes for granted.
Also with CPU support it could be free, and adds negligible complexity to the silicon.
- roryokane 12y agoThe part of that paper that says how expensive Trap on Overflow is: > At the `-02` optimization level, our compiler prototype showed only a 5.58% slowdown when running the SPECINT2006 macro-benchmark. Although that percentage represents the worst-case performance for AIR integers (because no optimizations were performed), it is still low enough for typical applications to enable this feature in deployed systems.