I currently use Nim to program on Windows and leave 3 different compilers to 
use: MinGW (gcc), LLVM (clang) and TinyCC (tcc).

To use them is simple, type at the command line to compile the source code nim: 
`nim c --cc:<gcc|clang|tcc> nimsource.nim`

However, first you need to enter some settings in `config/nim.cfg`:
    
    
    @if windows:
      gcc.path = r"D:/mingw64/bin"
      tcc.path = r"D:/tcc64"
      clang.path = r"D:/LLVM64/bin"
    @end
    
    Run

Nowadays I don't use Microsoft's Visual C ++/Visual Studio (vcc), but to use it 
just open the "Native Tools Command Prompt for VS 2019" and compile nim source 
code with: `nim c --cc:vcc nimsource.nim`

Reply via email to