Microsoft Visual Studio beefs up support for C language

Microsoft’s Visible Studio IDE has added assistance for the C11 and C17 C language specifications, so growing the IDE’s formerly minimal assistance for C. C11 and C17 develop into supported language variations setting up with Visible Studio 2019 16.8 Preview 3, which was introduced September 14. For decades, Visible Studio has […]

Microsoft’s Visible Studio IDE has added assistance for the C11 and C17 C language specifications, so growing the IDE’s formerly minimal assistance for C. C11 and C17 develop into supported language variations setting up with Visible Studio 2019 16.8 Preview 3, which was introduced September 14.

For decades, Visible Studio has minimal C assistance to what ever was necessary for the C++ language, which was crafted as an extension of C. Now, a conformant, token-based mostly preprocessor has been added to the compiler. Two compiler switches, /std:c11 and /std:c17, were being added to offer conformance to the newest ISO C specifications.

C11 and C17 functionalities are supported these as _Pragma, limit, and Static_assert. IntelliSense can function with these features by applying a .c file extension for resource files or the /TC compiler change to allow syntax highlighting for C code. Even so, IntelliSense highlighting is presently accessible for keywords only, not macros introduced by regular headers. A long run launch will correct this.

With the inclusion of the token-based mostly conformant preprocessor, the two new C compiler switches suggest /Zc:preprocessor. Developers who want to use the conventional character-based mostly preprocessor along with C11 or C17 will require to pass in the /Zc:preprocessor- compiler change.

Microsoft explained C17 as a bug correct launch of ISO C. The only distinctions concerning the C11 and C17 variations are the _STDC_version macro in C17. Even though Visible Studio features no assistance for C11 optional features, Microsoft programs to add the most impactful optional features in long run releases. Atomic and threading assistance are on the merchandise roadmap. 

To use C11 and C17 in applications, developers should have the newest Insider Preview Windows SDK updates to function with the conforming preprocessor and the new Common C runtime. Developers can create a no cost Microsoft account (https://signup.live.com) and then choose into the Insider system. Microsoft has posted a established of guidelines for getting began with C11 and C17.

Visible Studio 2019 16.8 Preview 3 also features improved assistance for C++ twenty throughout the compiler, regular library, and IDE. Modules, principles, coroutines, and some ranges can be employed in the same challenge.

Copyright © 2020 IDG Communications, Inc.

Next Post

Why you should use Presto for ad hoc analytics

Presto! It’s not only an incantation to excite your audience soon after a magic trick, but also a name getting utilized much more and much more when speaking about how to churn as a result of large details. When there are quite a few deployments of Presto in the wild, […]

Subscribe US Now