3 ms·
People have made memory-safe compilers for ANSI C (e.g. Fail-Safe C.) Unfortunately clang and gcc don't (yet?) have --safe or an x86-64-safe compilation target
by musicale 7y ago
People have made memory-safe compilers for ANSI C (e.g. Fail-Safe C.)
Unfortunately clang and gcc don't (yet?) have --safe or an x86-64-safe compilation target.
- kerkeslager 7y agoYes, but without major semantic changes to the language to go the direction of i.e. Rust, you're relying on bounds checking to make it memory safe. If you're using C for performance reasons, adding bounds checking is a break in reverse compatibility, because it happens at run time and drastically degrades performance in some cases.