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
can tprocess be made to d...
by
Warfley
[
Today
at 06:22:17 pm]
Faster responding Code Ex...
by
GetMem
[
Today
at 06:17:51 pm]
How to install Castle Gam...
by
af0815
[
Today
at 06:06:33 pm]
LCL for arm (STM32MP1)
by
DonAlfredo
[
Today
at 04:59:47 pm]
How to set Heaptrc in lin...
by
Thaddy
[
Today
at 04:59:11 pm]
Help Needed: Cross Platfo...
by
lainz
[
Today
at 04:27:17 pm]
Please explain how this o...
by
Solecist
[
Today
at 03:17:06 pm]
Window SDL2 Drop Files
by
metis
[
Today
at 02:49:09 pm]
TDaemon Wiki Demo : start...
by
TRon
[
Today
at 02:35:58 pm]
Application.Threaded in w...
by
Warfley
[
Today
at 02:22:12 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Optimization switch (Read 304 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: 12614
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
Writing code in an overly complex way is usually merely a complete misunderstanding of the goal you are trying to achieve.
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