Use Compile Explorer with VS Code

A useful extension for various situations!


Use Compile Explorer with VS Code


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!


Compiler Explorer for VSCode

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.

Compiler Explorer for VSCode


Using

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!

Compiler Explorer for VSCode

And you can do all the possible analysis that is done with the online tool!


For more information, visit the extension repository on GitHub!


vscode cpp assembly


Share


YouTube channel

Subscribe


Marcos Oliveira

Marcos Oliveira

Software developer
https://github.com/terroo

Related articles