LinuxCommandLibrary

nim

programming language compiler

TLDR

Compile to executable

$ nim c [program.nim]
copy
Compile and run
$ nim c -r [program.nim]
copy
Release build
$ nim c -d:release [program.nim]
copy
Compile to C
$ nim c --compileOnly [program.nim]
copy
Compile to JavaScript
$ nim js [program.nim]
copy
Check syntax
$ nim check [program.nim]
copy
Show documentation
$ nim doc [program.nim]
copy

SYNOPSIS

nim [command] [options] file

DESCRIPTION

nim is the Nim programming language compiler. It compiles to C, JavaScript, and other backends.
The tool produces efficient executables. Features Python-like syntax with static typing.

PARAMETERS

COMMAND

Compilation command.
c
Compile to C.
js
Compile to JavaScript.
-r
Run after compilation.
-d:release
Release mode.
check
Check without compiling.
doc
Generate documentation.
--help
Display help information.

CAVEATS

Requires C compiler for native builds. Garbage collected by default. Growing ecosystem.

HISTORY

Nim was created by Andreas Rumpf starting in 2005, originally named Nimrod.

SEE ALSO

nimble(1), gcc(1), python(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community