Visual Studio Support for Modern C / C Standards
Visual Studio remains a popular development environment, but questions arise about its support for the latest C and C standards.
The Lack of C99 Support
Despite the release of C99 in 1999, Visual Studio has yet to fully embrace its features. Microsoft attributes this to limited user demand and a preference for C 0x.
Workarounds for C99 Support
While Visual Studio may not offer native C99 support, workarounds exist. The Intel C compiler for Visual Studio can handle C99 code and provides compatibility with gcc flags.
Extension to C 11
Visual Studio has made efforts to include C 11 features. However, the adoption of newer standards like C 14, C 17, and beyond remains uncertain.
Cherry-Picking Features
Microsoft has selectively implemented popular C99 features in Visual Studio, such as variadic macros and long long. While this approach allows access to certain features, it falls short of full standard support.
Impact on Code Portability
The lack of comprehensive C and C standard support in Visual Studio poses challenges for developers attempting to port code between different platforms and compilers.
Alternative Development Environments
For environments that prioritize modern C and C standards, Intel CC or gcc combined with Eclipse offer more robust support. These tools facilitate code portability across various operating systems.
The above is the detailed content of Does Visual Studio Fully Support Modern C and C Standards?. For more information, please follow other related articles on the PHP Chinese website!