Matt Godbolt has announced today that the Visual C++ compiler is finally available on Compiler Explorer (https://godbolt.org/). Compiler Explorer is a website where you can write C/C++/Rust/Go/D code, compile it with various compilers and settings and see the resulted assembly code.
— Matt Godbolt (@mattgodbolt) March 19, 2017
The version available is 1910, i.e. VC++ 2017 RTM (the exact version number is 19.10.25017.0). The following targets are available:
- x86: x86 CL 19 2017 RTW
- x64: x86-64 CL 19 2017 RTW
- ARM: ARM CL 19 2017 RTW
To give it a try, I compiled the following program:
std::cout << "hello world" << std::endl;