Tutorial - compilation Flashcards
1
Q
how to compile and run greetings.nim with args: arg1, arg2
A
nim compile –run greetings.nim arg1 arg2
2
Q
how to compile and run greetings.nim with args: arg1, arg2 shortly
A
nim c r greetings.nim arg1 arg2
3
Q
how to compile optimized greetings.nim
A
nim c -d:release greetings.nim
4
Q
Whats special by compiling to release
A
By default the Nim compiler generates a large amount of runtime checks aiming for your debugging pleasure. With -d:release these checks are turned off and optimizations are turned on.