Table of Contents
We will use MinGW to compile our assembly projects
Find the installer on MinGW’s site or download it from this site directly.
Note the default the installation directory and then press Continue.
MinGW might not work correctly if you install it in another directory other than the default.
So, we recommend using the default installation directory.
The installer will download and install MinGW.
Verify that the installer downloaded and installed all selected items.
mingw32-base-binand apply changes.
From the menu:
Installation ➜ Apply Changes
The installer might take a while depending on your internet connection.
Press the Close button when the packages finish downloading.
You can now close the installer window.
Find the installer on NASM’s site or download the Windows 10 x64 version from this site directly.
Execute the installer as an administrator
You will need to execute the installer as Administrator if your logged in user cannot write to
It is easiest to set up if you install it to the same directory as the GCC compiler. Otherwise, you have to add the systems paths for both applications.
Windows needs to know where to find gcc.exe and nasm.exe, which it will
do by setting the
First, we’ll verify that Windows recognizes
nasm using the
command line. Then, we’ll set the path as part of the system path.
This path is set ONLY for this CMD instance. You have to run the command again when you close the CMD window. Or, you can specify the absolute path to the file.
You can add it permanently the System Environment Variables.
Open up Command Prompt (CMD)
Set the temporary path by executing:
Verify the path set correctly
gcc --versionVerify that it displays the file version.
nasm --versionVerify that it displays the file version.
If you get a
not recognized error, then the path is not set correctly
or you installed MinGW or NASM in a different directory.
Try executing it using the full path:
Verify the installation path:
Set the path to your assembler and compiler in the Windows path so that all applications can find it.
Otherwise, you have to specify the full path to the applications.
Advanced System Propertiesin Windows. There are several ways:
Copy and paste one of these commands to Windows Explorer or Start Menu
Advanced System Settings
Navigate from the control panel:
Control Panel > System and Security > System
Click on the Environment Variables button
Pathunder User variables and then click on the Edit button
Click on New and then add a variable for the bin folder of NASM and GCC:
You must add both paths if you installed NASM in a different folder.
Press OK on all windows
Close and reopen the CMD windows to get a new prompt.
Verify that the NASM and GCC display the versions correctly before continuing.