News for hackers. Stuff that matters.
Re:Tell HN: C Experts Panel – Ask us anything about C by flatfinger on Wednesday April 15, 2020 @10:56AM (#22878431)
I wouldn't mind traps on overflow, though I think overflow reporting with somewhat loose semantics that would allow an implementation to produce arithmetically correct results when convenient, and give a compiler flexibility as to when overflow is reported, could offer much better performance than tight overflow traps. On the other hand, the above function will cause gcc to silently behave in bogus fashion even if the result of the multiplication is never used in any observable fashion.

There are no comments on this comment yet.