| ▲ | umanwizard 3 hours ago | |
> making basic types work differently from C would involve major performance costs. Not if you compile with optimizations on. This C code:
Compiles to this x86-64 assembly (with clang -O2):
Which, for those who aren't familiar with x86 assembly, is just the normal instruction for adding two numbers with wrapping semantics. | ||