Microsoft’s Visual Studio IDE has included aid for the C11 and C17 C language requirements, as a result expanding the IDE’s formerly confined aid for C. C11 and C17 come to be supported language variations beginning with Visual Studio 2019 sixteen.eight Preview 3, which was launched September fourteen.
For a long time, Visual Studio has confined C aid to whatsoever was essential for the C++ language, which was built as an extension of C. Now, a conformant, token-dependent preprocessor has been included to the compiler. Two compiler switches,
/std:c17, had been included to give conformance to the most current ISO C requirements.
C11 and C17 functionalities are supported these kinds of as
Static_assert. IntelliSense can function with these characteristics by employing a
.c file extension for source documents or the
/TC compiler change to permit syntax highlighting for C code. Nonetheless, IntelliSense highlighting is now readily available for key phrases only, not macros released by standard headers. A long run launch will correct this.
With the inclusion of the token-dependent conformant preprocessor, the two new C compiler switches suggest /Zc:preprocessor. Developers who want to use the classic character-dependent preprocessor along with C11 or C17 will will need to move in the
/Zc:preprocessor- compiler change.
Microsoft described C17 as a bug correct launch of ISO C. The only differences among the C11 and C17 variations are the _
STDC_variation macro in C17. Whilst Visual Studio features no aid for C11 optional characteristics, Microsoft programs to add the most impactful optional characteristics in long run releases. Atomic and threading aid are on the product roadmap.
To use C11 and C17 in systems, builders have to have the most current Insider Preview Home windows SDK updates to function with the conforming preprocessor and the new Universal C runtime. Developers can produce a totally free Microsoft account (https://signup.reside.com) and then choose into the Insider method. Microsoft has posted a established of recommendations for acquiring started off with C11 and C17.
Visual Studio 2019 sixteen.eight Preview 3 also features enhanced aid for C++ 20 across the compiler, standard library, and IDE. Modules, principles, coroutines, and some ranges can be used in the similar task.
Copyright © 2020 IDG Communications, Inc.