4 ms·
I wouldn't bet on it. Every safety feature added to the standard since C99 has been quietly dropped by compiler maintainers. People could write safe code in th
by valarauca1 10y ago
I wouldn't bet on it. Every safety feature added to the standard since C99 has been quietly dropped by compiler maintainers.
People could write safe code in the 70's. The point of C was to write high level (kinda portable) assembly. Not safety.
- vardump 10y ago> Every safety feature added to the standard since C99 has been quietly dropped by compiler maintainers. Can you give one example of this, please?
- valarauca1 10y agoBounds checking interfaces in C99 Support: GCC: Nope, why? Performance concerns MSVC: Nope, why? Performance concerns Clang/LLVM: Nope, why? Performance concerns. [1] [1] LLVM has the op-codes to implement this, but Clang won't emit those op-codes with the c99 switch triggered.
- vardump 10y ago> Bounds checking interfaces in C99 ... are an optional part of C standard library. C11 Annex K. http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1967.htm So just use a library for those and you get support in every compiler! > MSVC: Nope, why? Performance concerns MSVC runtime library does support an early version of that. Has supported for over 10 years. They contributed it to the standard, I think. Example, sprintf_s, present in MSVC2005: https://msdn.microsoft.com/en-us/library/ce3zzk1k(v=vs.80).aspx https://msdn.microsoft.com/en-us/library/ce3zzk1k(v=vs.80).a... Anything else?