I'm willing to write a C compiler that detects all undefined behavior but instead of doing something sane like reporting it or disallowing it just adds the code to open a telnet shell with root privileges.
Can't wait to see the benchmarks.
I was thinking more along the lines of detectable instances with compiler introducing "optimizations", but as a C "programmer" I do not mind bounds checks and any other runtime improvements that stay true to the language.
If it's implementation-defined that you can turn them off when you're building for the PDP11, I'm sold.
muldvarp|11 months ago
This is only possible if you check for it at runtime and that's a tradeoff most C programmers don't like.
WalterGillman|11 months ago
If it's implementation-defined that you can turn them off when you're building for the PDP11, I'm sold.