C++ Team Blog

The latest in C++, Visual Studio, VS Code, and vcpkg from the MSFT C++ team

Clang with Microsoft CodeGen (January 2016) released

We have just released an out-of-band update of Clang/C2 toolset that brings in some of the community fixes as well as bugs found from testing. This is one of many rapid releases to come in the future, and issues reported from customers will be addressed progressively. Here we only list the changes since the previous release, for a more ...

Support for Android CMake projects in Visual Studio

CMake is a cross-platform project generator that enables reuse of shared C++ code across multiple IDE and project systems. We made a change to CMake to support our Android toolchain in Visual Studio. With this change, you can take your existing CMake project targetting Android, and with minimal modifications, you can have it open in Visual ...

Memory Profiling in Visual C++ 2015

As announced in an earlier blog post, Visual Studio 2015 hosts a new set of memory profiling tools to help address and fix memory issues within your applications.  The new debug-time profiler runs during your debugging session and allows you to take snapshots anytime, such as at a breakpoint, and also view the heap contents ...

Visual C++ Libraries Survey

The Visual C++ team wants to better understand how you use libraries in your day-to-day development work. Whether you’re publishing libraries, finding libraries that work on the Microsoft platforms for which you’re building your apps, or integrating libraries into your project and build systems, we want to hear from you so we can ...

Optimizing C++ Code : Dead Code Elimination

 If you have arrived in the middle of this blog series, you might want instead to begin at the beginning.This post examines the optimization called Dead-Code-Elimination, which I’ll abbreviate to DCE.  It does what it says: discards any calculations whose results are not actually used by the program.Now, you will probably ...

C99 library support in Visual Studio 2013

Hello, I’m Pat Brenner, a developer on the Visual C++ Libraries team. In this blog post I want to share some information about the C99 support added to the C run-time library in Visual Studio 2013.To summarize, we added declarations and implementations for missing functions in the following headers: math.h, ctype.h, wctype.h, stdio.h, ...

MFC support for MBCS deprecated in Visual Studio 2013

April 2017 update Regarding our work on migration to VC2015 last year, we decided to remove the warning about MBCS deprecation.We hear you and understand that too many "old and large" MFC projects depend on it and it is too costly for large projects to move to Unicode. For new or small existing projects we definitely recommend using Unicode, ...

Optimizing C++ Code : Overview

If you have arrived in the middle of this blog series, you might want instead to begin at the beginning. This post explains the flow of data within the Visual C++ compiler – starting with our C++ source program, and ending with a corresponding binary program. This post is an easy one – dipping our toes into the shallow end of...