🟥Nim cross compile in linux to windows
tested in kali aarch64 on M1
Source: https://ubuntuincident.wordpress.com/?s=nim+cross+compile
nim
Nim programming language compiler.--os:windows
Target operating system is set to Windows.--cpu:amd64
Target CPU architecture is set to amd64 (64-bit).--gcc.exe:x86_64-w64-mingw32-gcc
Path to GCC executable for compiling Nim code. Set to the 64-bit MinGW-w64 GCC executable for Windows.--gcc.linkerexe:x86_64-w64-mingw32-gcc
Path to the GCC linker executable. Points to the 64-bit MinGW-w64 GCC linker for Windows.-d:release
Instructs Nim to compile the code in release mode, typically including optimizations for performance.c
Indicates that the Nim code (rev_shell.nim) should be compiled to C code.rev_shell.nim
Nim source file to be compiled to C code.
Summary: Compiles Nim code (rev_shell.nim) targeting a Windows environment with a 64-bit architecture. Uses specified GCC executables for compilation and linking. Output is C code with optimizations for release mode applied during compilation.
Last updated