3 ms·
When programming in C, I think it is far better to leave the compiler you use as a free variable. Program to a standard (C90 is sensible, because there are stil
by TheNewAndy 14y ago
When programming in C, I think it is far better to leave the compiler you use as a free variable. Program to a standard (C90 is sensible, because there are still compilers that only support this standard... including one from a small multinational in Redmond) and then you are free to use whichever compiler produces the best code.
A similar approach applies to the standard library. Write to the language standard, and you are good to go everywhere.
Though, I'm also dubious about using C90 for multi-threaded stuff given that there is no concept of threads in the language until C2011.
- heretohelp 14y agoIt's pretty normal these days to rely on GCC varargs. Among my people (the unix tribe), few care if Microsoft will ever support C99 or anything else for that matter. You can use a macro to swap between varargs/stdarg.h if you want to be able to use the LLVM toolchain in addition to gcc. MSVC++ can go suck fruit wax.