sBooleval/de
Zurück zu den lokalen Compilerdirektiven.\
=$B= Die lokale Compiler Direktive $B bestimmt, wie Boolean-Operatoren ausgewertet werden.
Die lokale Compiler Direktive $B kennt die Schalter ON und OFF.
Ist die lokale Compiler Direktive {$B ON} gesetzt dann wird der Boolean-Ausdruck komplett ausgewertet. Damit ist die Auswertung von Boolean-Ausdrücken langsamer ist als wenn die Direktive {$B OFF} ist.
Standardeinstellung für die Direktive ist {$B OFF}.
Mit der Standardeinstellung wird, im Fall dass das Ergebnis bereits feststeht, die Auswertung eines Boolean-Ausdrucks vorzeitig abgebrochen.
Diese Art der Optimierung führt besonders in Schleifen zu einem Geschwindigkeitsvorteil.\
--Olaf 18:06, 19 November 2012 (UTC)
From the Free Pascal wiki, page "sBooleval/de", as it stood on 2013-04-21 after a change by Olaf, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 2 people, 2012–2013
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Olaf | Created page | |
| Olaf | (minor) | |
| Olaf | ||
| Olaf | (minor) | |
| Olaf | (minor) | |
| Olaf | ||
| Olaf | (minor) | |
| Olaf | (minor) | |
| Swen | (minor) | |
| Olaf | (minor) |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
