mirror of
https://github.com/matrix-construct/construct
synced 2025-02-16 08:40:11 +01:00
Add optimistic assertions section.
parent
b05615914b
commit
b67053fedb
1 changed files with 11 additions and 3 deletions
14
BUILD.md
14
BUILD.md
|
@ -139,9 +139,17 @@ statements when `--enable-debug` is not used.
|
||||||
```
|
```
|
||||||
--with-assert=trap
|
--with-assert=trap
|
||||||
```
|
```
|
||||||
Recommended when using `--enable-assert` for debugging. This replaces the
|
Recommended when using `--enable-assert` for functional-testing and debugging.
|
||||||
default mechanism of assertion with traps rather than aborts; allowing
|
This replaces the default mechanism of assertion with traps rather than aborts;
|
||||||
developers to explore an unterminated program.
|
allowing developers to explore an unterminated program.
|
||||||
|
|
||||||
|
```
|
||||||
|
--with-assert=opt
|
||||||
|
```
|
||||||
|
Optimistic assertions are branchless and generate less code than other modes.
|
||||||
|
Assertion failure is only detected at the end of each core event loop iteration.
|
||||||
|
These assertions are intended to minimally reveal the existence of a failure and
|
||||||
|
are much harder to debug.
|
||||||
|
|
||||||
#### Manually enable optimization
|
#### Manually enable optimization
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue