3 ms·
Bounds checking interfaces in C99 Support: GCC: Nope, why? Performance concerns MSVC: Nope, why? Performance concerns Clang/LLVM: Nope, why? Performance con
by valarauca1 10y ago
Bounds 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?