1
0
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:
Delyan Angelov 2022-10-30 15:05:02 +02:00
parent 9edb48571f
commit 914f03a1a2
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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. 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 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.