Tutorial - compilation Flashcards

1
Q

how to compile and run greetings.nim with args: arg1, arg2

A

nim compile –run greetings.nim arg1 arg2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how to compile and run greetings.nim with args: arg1, arg2 shortly

A

nim c r greetings.nim arg1 arg2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how to compile optimized greetings.nim

A

nim c -d:release greetings.nim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly