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
Hidden controls inside of...
by
Joanna
[
Today
at 07:06:51 am]
Using old LCL
by
dodi
[
Today
at 06:18:53 am]
Real numbers in Arrays
by
dseligo
[
Today
at 05:55:44 am]
[SOLVED] Why does package...
by
dsiders
[
Today
at 05:16:42 am]
Compare two text lines an...
by
avk
[
Today
at 05:04:56 am]
Lazarus Release 2.2.0
by
Jamesdus
[
Today
at 03:47:01 am]
TThread in an array - fre...
by
jamie
[
Today
at 02:36:07 am]
Question on coping dynami...
by
jamie
[
Today
at 02:32:08 am]
is there an internet conn...
by
Joanna
[
Today
at 02:28:00 am]
Data Module save position
by
HotShoe
[
Today
at 02:15:35 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Optimization switch (Read 310 times)
dseligo
Hero Member
Posts: 903
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: 12643
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
"Looks" OK, doesn't mean it is IS OK.
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