Compile Explorer is an online tool that allows developers write code in various programming languages, mainly C++, and see how this code is translated into machine instructions by compilers.
It shows the code Assembly generated for different platforms and optimizations, helping developers understand improve the internal functioning of compilers and optimizers.
This tool is useful for experimenting and comparing different pieces of code and for learning about the compilation process.
Another good news is that you can use it within VS CODE using it as an extension!
The Compiler Explorer for VSCode extension integrates Compiler Explorer into VSCode based on the API provided by Compiler Explorer, allowing users to directly utilize the features from Compiler Explorer in VSCode.
To install it, simply select the “Extensions” tab in the left sidebar of your VS Code and type: “Compiler Explorer for VSCode”, select it and install.
With your file(s) open, simply click the Compiler Explorer for VSCode icon in the left sidebar, choose the compiler and click the ▶(No top of the sidebar) to compile and choose options between: Console, ASM and Stdout in the window on the right that will open!
And you can do all the possible analysis that is done with the online tool!
For more information, visit the extension repository on GitHub!