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.

Brand Post

What to expect from your IT Distributor

Whether you’re just starting out or you’ve been around since before the dot com rollercoaster, choosing the right distribution partner can be a pivotal factor in your success. This definitive guide outlines the traits that every IT partner needs to look for in their IT Distributor.

Featured

Slideshows

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners

This year’s Reseller News 30 Under 30 Tech Awards were held as an integral part of the first entirely virtual Emerging Leaders​ forum, an annual event dedicated to identifying, educating and showcasing the New Zealand technology market’s rising stars. The 30 Under 30 Tech Awards 2020 recognised the outstanding achievements and business excellence of 30 talented individuals​, across both young leaders and those just starting out. In this slideshow, Reseller News honours this year's winners and captures their thoughts about how their ideas of leadership have changed over time.​

Meet the Reseller News 30 Under 30 Tech Awards 2020 winners
Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security

Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security

This exclusive Reseller News Exchange event in Auckland explored the challenges facing the partner community on the cloud security frontier, as well as market trends, customer priorities and how the channel can capitalise on the opportunities available. In association with Arrow, Bitdefender, Exclusive Networks, Fortinet and Palo Alto Networks. Photos by Gino Demeer.

Reseller News Exchange Auckland: Beyond the myths — how partners can master cloud security
Reseller News welcomes industry figures at 2020 Hall of Fame lunch

Reseller News welcomes industry figures at 2020 Hall of Fame lunch

Reseller News welcomed 2019 inductees - Leanne Buer, Ross Jenkins and Terry Dunn - to the fourth running of the Reseller News Hall of Fame lunch, held at the French Cafe in Auckland. The inductees discussed the changing face of the IT channel ecosystem in New Zealand and what it means to be a Reseller News Hall of Fame inductee. Photos by Gino Demeer.

Reseller News welcomes industry figures at 2020 Hall of Fame lunch
Show Comments