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
@ -75,6 +75,12 @@ NB: the build flags are shared with the run command too:
|
||||
Compile the executable in production mode, where most optimizations are enabled.
|
||||
Note that most V warnings turn to errors, if you pass -prod, so you will have
|
||||
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>
|
||||
Compile the executable with all functions profiled.
|
||||
|
Loading…
Reference in New Issue
Block a user