2018-07-21 17:56:19 +01:00
|
|
|
# nim
|
|
|
|
|
|
|
|
> The Nim compiler.
|
|
|
|
> Processes, compiles and links Nim language source files.
|
2019-06-04 10:00:09 +01:00
|
|
|
> More information: <https://nim-lang.org>.
|
2018-07-21 17:56:19 +01:00
|
|
|
|
|
|
|
- Compile a source file:
|
|
|
|
|
|
|
|
`nim compile {{file.nim}}`
|
|
|
|
|
|
|
|
- Compile and run a source file:
|
|
|
|
|
|
|
|
`nim compile -r {{file.nim}}`
|
|
|
|
|
|
|
|
- Compile a source file with release optimizations enabled:
|
|
|
|
|
|
|
|
`nim compile -d:release {{file.nim}}`
|
|
|
|
|
|
|
|
- Build a release binary optimized for low file size:
|
|
|
|
|
|
|
|
`nim compile -d:release --opt:size {{file.nim}}`
|
|
|
|
|
|
|
|
- Generate HTML documentation for a module (output will be placed in the current directory):
|
|
|
|
|
|
|
|
`nim doc {{file.nim}}`
|