Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
Optimization switch
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazarus IDE for Chrome OS...
by
OC DelGuy
[
Today
at 07:38:03 pm]
Prevent computer logging ...
by
Davidous
[
Today
at 07:37:56 pm]
[Solved] TreeView Shift+m...
by
AlexTP
[
Today
at 07:36:35 pm]
Laz IDE, Intermediate and...
by
OC DelGuy
[
Today
at 07:35:36 pm]
TLabel or TStaticText? W...
by
OC DelGuy
[
Today
at 07:30:30 pm]
LCL for arm (STM32MP1)
by
Thaddy
[
Today
at 07:29:31 pm]
can tprocess be made to d...
by
Thaddy
[
Today
at 07:04:19 pm]
[SOLVED] Window SDL2 Drop...
by
Pe3s
[
Today
at 06:48:48 pm]
Faster responding Code Ex...
by
KodeZwerg
[
Today
at 06:41:14 pm]
How to install Castle Gam...
by
af0815
[
Today
at 06:06:33 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Optimization switch (Read 305 times)
dseligo
Hero Member
Posts: 881
Optimization switch
«
on:
October 02, 2022, 03:00:46 pm »
Is compiler switch
Code: Pascal
[Select]
[+]
[-]
{$O-}
same as
Code: Pascal
[Select]
[+]
[-]
{$OPTIMIZATION OFF}
?
Documentation here doesn't mention it:
https://www.freepascal.org/docs-html/prog/progsu58.html#x65-640001.2.58
If it is, can it take all the values described in documentation?
Logged
Thaddy
Hero Member
Posts: 12618
Re: Optimization switch
«
Reply #1 on:
October 02, 2022, 03:15:43 pm »
Yes. Even a couple more. Most should only be of interest to highly capable programmers, though: you need some knowledge how optimization theory works...
«
Last Edit: October 02, 2022, 03:18:18 pm by Thaddy
»
Logged
The only thing I can say about Putin - born st Petersburg- is that he is indeed Russian, as opposed to Stalin, who was Georgian. Depending of historical time frame they could both be Lithuanian or Polish...even German. Shut him up!
ASerge
Hero Member
Posts: 2049
Re: Optimization switch
«
Reply #2 on:
October 02, 2022, 07:18:48 pm »
Quote from: dseligo on October 02, 2022, 03:00:46 pm
If it is, can it take all the values described in documentation?
From
Introduction
:
For long switches, the + or - character to switch the option on or off, may be replaced by the ON or OFF keywords.
Thus {$I+} is equivalent to {$IOCHECKS ON} or {$IOCHECKS +} and {$C-} is equivalent to {$ASSERTIONS OFF} or {$ASSERTIONS -}
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
Optimization switch
TinyPortal
© 2005-2018