mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: document the -no-bounds-checking
option in v help build
This commit is contained in:
parent
9edb48571f
commit
914f03a1a2
@ -76,6 +76,12 @@ NB: the build flags are shared with the run command too:
|
|||||||
Note that most V warnings turn to errors, if you pass -prod, so you will have
|
Note that most V warnings turn to errors, if you pass -prod, so you will have
|
||||||
to fix them first.
|
to fix them first.
|
||||||
|
|
||||||
|
-no-bounds-checking
|
||||||
|
Programs compiled with this option, will do no runtime checking of array access operations.
|
||||||
|
Note that the performance impact of the bounds checking is usually below 3%, so in most
|
||||||
|
cases, it is preferable to not turn it off, than disable it, and have a program that may
|
||||||
|
do out of bounds accesses.
|
||||||
|
|
||||||
-prof, -profile <file.txt>
|
-prof, -profile <file.txt>
|
||||||
Compile the executable with all functions profiled.
|
Compile the executable with all functions profiled.
|
||||||
The profile results will be stored in `file.txt`.
|
The profile results will be stored in `file.txt`.
|
||||||
|
Loading…
Reference in New Issue
Block a user