Posts

Compiling and Running C/C++ code in VS Code in Windows 11

Image
Compiling and Running C/C++ Code Using GCC in VS Code on Windows In this blog post, we will discuss how to compile and run C/C++ code using GCC in VS Code on Windows 11. Why doesn't VS Code work directly for C/C++? VS Code is a powerful code editor that supports a wide range of programming languages, including C/C++. However, it doesn't natively include the compiler used for C/C++ development on Windows. This is why we need to separately install GCC to run C/C++ code in VS Code. Steps to Install GCC and setting it up in VS Code Install GCC: Visit Winlibs and install the latest version. After downloading, find the installed zip and extract it. Find the file in Downloads folder. Extract the zip file. ...

Compiling and Running Assembly Code Using NASM & WSL on Windows

Image
Compiling and Running Assembly Code Using NASM and WSL in VS Code on Windows In this blog post, we will discuss how to compile and run assembly code using NASM in VS Code on Windows WSL. What is WSL? Windows Subsystem for Linux (WSL) is a Windows in-built feature that lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the burden of a traditional virtual machine or dual-boot setup. Steps to Compile and Run Assembly Code Install WSL (Windows Subsystem for Linux): On your Desktop, press [Win]+[R] Type "PowerShell" and press [Ctrl]+[Shift]+[Enter] Follow the instructions to install WSL Type this command and press Enter. $ wsl --install S...