Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
[SOLVED] wich switches in options.init_settings does the -Os set?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
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
"extended" real type prec...
by
photor
[
Today
at 04:29:24 am]
Why free pascal suppress ...
by
photor
[
Today
at 04:23:59 am]
Treeview: full-width back...
by
wp
[
Today
at 01:03:20 am]
FPC can't link screen_dem...
by
mccfrank
[
Today
at 12:06:32 am]
ThemeServices.DrawText in...
by
regs
[February 08, 2025, 11:25:01 pm]
my programs crash
by
turunk
[February 08, 2025, 10:56:26 pm]
Gradient with fcl-image
by
wp
[February 08, 2025, 10:46:18 pm]
using RunCommand to wrap ...
by
nomorelogic
[February 08, 2025, 10:39:37 pm]
ellipse ? off topic
by
BubikolRamios
[February 08, 2025, 10:15:18 pm]
Failed to connect to a si...
by
silvercoder70
[February 08, 2025, 09:54:18 pm]
FLIF and FUIF Formats (Fr...
by
Tomxe
[February 08, 2025, 09:43:37 pm]
Reading FLIF images in La...
by
Tomxe
[February 08, 2025, 09:43:03 pm]
Basic canvas drawing
by
Jonny
[February 08, 2025, 09:31:17 pm]
Scrollbox, scrollbar Back...
by
bbrx
[February 08, 2025, 08:50:08 pm]
Transparent animation
by
majolika
[February 08, 2025, 08:17:52 pm]
API definitions
by
440bx
[February 08, 2025, 07:35:57 pm]
Candlestick chart
by
ronhud
[February 08, 2025, 07:31:12 pm]
missed warning
by
Paolo
[February 08, 2025, 07:30:04 pm]
Error assembling some lab...
by
Fred vS
[February 08, 2025, 07:10:13 pm]
Building the FPC cross-co...
by
marcov
[February 08, 2025, 07:09:09 pm]
IsNan
by
Paolo
[February 08, 2025, 06:58:55 pm]
HelpNDoc.com and Pascal
by
paule32
[February 08, 2025, 06:42:02 pm]
RTL: little changes
by
PascalDragon
[February 08, 2025, 06:22:35 pm]
Drawing with psInsidefram...
by
Jonny
[February 08, 2025, 06:04:27 pm]
SnapTRAINER
by
jclavier
[February 08, 2025, 05:40:25 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] wich switches in options.init_settings does the -Os set? (Read 539 times)
Key-Real
Sr. Member
Posts: 373
[SOLVED] wich switches in options.init_settings does the -Os set?
«
on:
October 02, 2024, 03:45:39 pm »
I'm trying to optimize for size.
With the -Os option the produced executable is segnificant smaller, but don't runs.
Have to trace out a switch dodn't work!
Pls provide all the setting -Os do
«
Last Edit: October 02, 2024, 05:34:31 pm by Key-Real
»
Logged
Demo Scene,
FlyTracker
,
FPC for PlayStation 1
Key-Real
Sr. Member
Posts: 373
Re: wich switches in options.init_settings does the -Os set?
«
Reply #1 on:
October 02, 2024, 05:34:14 pm »
ah, ok,
it containts level1 and 2 and so on.... and a bunch of others
Logged
Demo Scene,
FlyTracker
,
FPC for PlayStation 1
TRon
Hero Member
Posts: 3930
Re: [SOLVED] wich switches in options.init_settings does the -Os set?
«
Reply #2 on:
October 02, 2024, 06:01:40 pm »
Quote from: Key-Real on October 02, 2024, 03:45:39 pm
With the -Os option the produced executable is segnificant smaller, but don't runs.
The different optimization levels might cause the compiler to produce code that doesn't run which is especially true for processors that do not get (too) much attention.
You would have to do this on a case by case base and try to determine what kind of code produces 'faulty' code. So you might want to have a closer look at the produces assembler code and decipher that in order to learn why it fails. If you are able to determine the cause then it is possible to file a (complete) report so that a devs is able to address it (or perhaps you are able to figure out yourself what the compiler is doing wrong and suggest/create a patch).
Logged
I do not have to remember anything anymore thanks to total-recall.
ccrause
Hero Member
Posts: 996
Re: [SOLVED] wich switches in options.init_settings does the -Os set?
«
Reply #3 on:
October 02, 2024, 06:43:14 pm »
-Os includes
cs_opt_size
in optimizerswitches. Searching for cs_opt_size in the compiler source should show all the relevant code.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
[SOLVED] wich switches in options.init_settings does the -Os set?
TinyPortal
© 2005-2018