Pular para o conteúdo principal

MinGW

Requesitos

winget install -e --id Microsoft.VisualStudioCode
winget install -e --id MSYS2.MSYS2

To start a new interactive UCRT64 shell from cmd, run the following command:

C:\msys64\msys2_shell.cmd -ucrt64

Update MSYS2: After installation, open the MSYS2 terminal (from the start menu).

pacman -Syu

VScode com compilador GCC e o depurador GDB

Configure o Visual Studio Code para usar o compilador GCC e o depurador GDB

pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain

Check your MinGW installation

C:\msys64\ucrt64\bin

gcc --version
g++ --version
gdb --version

Install MinGW-w64 UCRT Toolchain

pacman -S mingw-w64-ucrt-x86_64-toolchain base-devel make git

GNU Arm Embedded Toolchain for Windows

Search for Available ARM Toolchain Packages

pacman -Ss arm-none-eabi

Install the ARM Toolchain

pacman -S mingw-w64-x86_64-arm-none-eabi-toolchain

Verify Installation

C:\msys64\mingw64\bin

arm-none-eabi-gcc --version

CLang

pacman -Sy --needed mingw-w64-ucrt-x86_64-clang