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
more UTF8 confusing
by
lazer
[
Today
at 09:06:24 am]
How to talk to a CDC USB ...
by
MarkMLl
[
Today
at 09:02:24 am]
Prevent computer logging ...
by
Davidous
[
Today
at 08:37:00 am]
TBufDataSet index
by
dseligo
[
Today
at 08:10:59 am]
301 Moved Permanently
by
JohnnyJen
[
Today
at 05:36:07 am]
BGRABitmap - merge 2 imag...
by
Handoko
[
Today
at 05:27:32 am]
Updating data from a KDBG...
by
heebiejeebies
[
Today
at 05:06:15 am]
Lazarus documentation pre...
by
dsiders
[
Today
at 04:54:02 am]
Drawing a Box like MC
by
Bogen85
[
Today
at 04:20:44 am]
DbGrid or RXDBGRID how i ...
by
eldonfsr
[
Today
at 03:13:01 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Optimization switch (Read 309 times)
dseligo
Hero Member
Posts: 885
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: 12621
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