Menu
Microsoft Visual Studio beefs up support for C language

Microsoft Visual Studio beefs up support for C language

C11 and C17 become supported C language versions starting with Visual Studio 2019 16.8 Preview 3

Credit: Microsoft

Microsoft’s Visual Studio IDE has added support for the C11 and C17 C language standards, thus expanding the IDE’s previously limited support for C. C11 and C17 become supported language versions starting with Visual Studio 2019 16.8 Preview 3, which was released September 14.

For years, Visual Studio has limited C support to whatever was required for the C++ language, which was built as an extension of C. Now, a conformant, token-based preprocessor has been added to the compiler. Two compiler switches, /std:c11 and /std:c17, were added to provide conformance to the latest ISO C standards.

C11 and C17 functionalities are supported such as _Pragma, restrict, and Static_assert. IntelliSense can work with these features by using a .c file extension for source files or the /TC compiler switch to enable syntax highlighting for C code. However, IntelliSense highlighting is currently available for keywords only, not macros introduced by standard headers. A future release will fix this.

With the inclusion of the token-based conformant preprocessor, the two new C compiler switches imply /Zc:preprocessor. Developers who want to use the traditional character-based preprocessor alongside C11 or C17 will need to pass in the /Zc:preprocessor- compiler switch.

Microsoft described C17 as a bug fix release of ISO C. The only differences between the C11 and C17 versions are the _STDC_version macro in C17. While Visual Studio offers no support for C11 optional features, Microsoft plans to add the most impactful optional features in future releases. Atomic and threading support are on the product roadmap. 

To use C11 and C17 in programs, developers must have the latest Insider Preview Windows SDK updates to work with the conforming preprocessor and the new Universal C runtime. Developers can create a free Microsoft account (https://signup.live.com) and then opt into the Insider program. Microsoft has posted a set of instructions for getting started with C11 and C17.

Visual Studio 2019 16.8 Preview 3 also offers improved support for C++ 20 across the compiler, standard library, and IDE. Modules, concepts, coroutines, and some ranges can be used in the same project.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Events

Why experience is the new battleground for partners

Join us for an exclusive webinar, in association with Hewlett Packard Enterprise and Technology Services Industry Association (TSIA) and learn about the latest industry insights and how technology services continue to evolve to deliver differentiated value, and how partners can be successful in 2021 and beyond.

Featured

Slideshows

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

Hundreds of leaders from the New Zealand IT industry gathered at the Hilton in Auckland on 17 November to celebrate the finest female talent in the Kiwi channel and recognise the winners of the Reseller News Women in ICT Awards (WIICTA) 2020.

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards
Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards

Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards

The leading female front runners of the New Zealand ICT industry joined together for the annual Reseller News Women in ICT Awards event at the Hilton in Auckland, during which hundreds of guests celebrated 13 outstanding individuals who won awards, chosen from more than 50 finalists representing over 30 organisations.

Leading female front runners honoured at the 2020 Reseller News Women in ICT Awards
Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners

Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners

More than 500 channel leaders gathered in Auckland on 21 October at the ​Reseller News Innovation Awards ​2020 to celebrate the achievements of the New Zealand technology industry's top partners, start-ups, vendors, distributors and individuals.

Channel gathers to celebrate the Reseller News Innovation Awards 2020 winners
Show Comments