NIM(1)

NIM(1) ✨ nim, the Nim Language Compiler β€” bestie, it's giving compiler royalty πŸ’…

NAME πŸ’–

nim β€” the Nim Language Compiler. periodt.

DESCRIPTION 🌸

okay so bestie, the whole vibe check is: Nim Compiler Version 2.2.12 [Linux: amd64] Compiled at 2026-09-07, and the copyright is literally Copyright Β© 2006-2026 by Andreas Rumpf. iconic.

The synopsis is:

nim command [options] [projectfile] [arguments]

πŸ› οΈ Command

  • compile, c β€” compile the project with the default code generator (C). lowkey the classic.
  • r β€” compile to $nimcache/projname, then run it with arguments using the backend specified by --backend (default: c).
  • doc β€” generate the documentation for inputfile for the backend specified by --backend (default: c).

🫢 Arguments

  • arguments β€” these are passed to the program being run (if --run option is selected). no cap.

OPTIONS ✨

  • -p, --path:PATH β€” add PATH to the search paths.
  • -d, --define:SYMBOL(:VAL) β€” define a conditional symbol (Optionally: Define the value for that symbol, see: "compile time define pragmas").
  • -u, --undef:SYMBOL β€” undefine a conditional symbol.
  • -f, --forceBuild:on|off β€” force rebuilding of all modules.
  • --stackTrace:on|off β€” turn stack tracing on|off.
  • --lineTrace:on|off β€” turn line tracing on|off.
  • --threads:on|off β€” turn support for multi-threading on|off.
  • -x, --checks:on|off β€” turn all runtime checks on|off.
  • -a, --assertions:on|off β€” turn assertions on|off.
  • --opt:none|speed|size β€” optimize not at all or for speed|size. Note: use -d:release for a release build!
  • --debugger:native β€” use native debugger (gdb).
  • --app:console|gui|lib|staticlib β€” generate a console app|GUI app|DLL|static library.
  • -r, --run β€” run the compiled program with given arguments.
  • --eval:cmd β€” evaluate nim code directly; e.g.: nim --eval:"echo 1" defaults to e (nimscript) but customizable: nim r --eval:'for a in stdin.lines: echo a'.
  • --fullhelp β€” show all command line switches.
  • -h, --help β€” show this help.
  • -v, --version β€” show detailed version information.
⚠️ Note, single letter options that take an argument require a colon. E.g. -p:PATH.
🫢 that's the footer tea, bestie: nim 2.2.12, September 2026, NIM(1) β€” now go be the main character of your build. πŸ’…
πŸ“¦ where this page comes from