Nim
Install
Windows:
Linux:
$ sudo apt install mingw-w64 -y
$ sudo apt install nim -y
Or
$ curl https://nim-lang.org/choosenim/init.sh -sSf | shDependencies:
Nim > nimble install winim nimcrypto zippyCompilation
Basic:
Nim > nim c program.nimTo not popup the console window:
Nim > nim c --app:gui program.nimFor the best size:
Nim > nim c -d:danger -d:strip --opt:size --passC=-flto --passL=-flto program.nimFor Windows on Linux:
$ nim c --cpu:amd64 --os:windows --gcc.exe:x86_64-w64-mingw32-gcc --gcc.linkerexe:x86_64-w64-mingw32-gcc program.nimAdd the needed relocation section to the resulting executable (from Windows):
Nim > nim c --passL:-Wl,--dynamicbase,--export-all-symbols program.nimTools & Packers
Last updated