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
using RunCommand to wrap ...
by
nomorelogic
[
Today
at 12:59:58 pm]
Cell bounding box drawing...
by
Jonny
[
Today
at 12:32:10 pm]
API definitions
by
440bx
[
Today
at 12:29:57 pm]
Where is Spready?
by
wp
[
Today
at 12:12:37 pm]
Deleted
by
wp
[
Today
at 12:05:53 pm]
Bug in the formula MATCH
by
wp
[
Today
at 12:02:49 pm]
Tesseract for ocr
by
MarkMLl
[
Today
at 12:01:38 pm]
problems accessing mySQL-...
by
hy
[
Today
at 11:48:08 am]
IsNan
by
Paolo
[
Today
at 11:46:04 am]
Fpcupdeluxe
by
petex
[
Today
at 11:39:37 am]
Custom self drawn compone...
by
Josh
[
Today
at 11:17:09 am]
Search in Watches window.
by
Hansvb
[
Today
at 10:36:23 am]
missed warning
by
Paolo
[
Today
at 10:33:57 am]
Lazarus editor feature re...
by
JuhaManninen
[
Today
at 10:12:29 am]
align a panel alClient in...
by
Hansvb
[
Today
at 09:45:04 am]
Transparent animation
by
majolika
[
Today
at 08:33:18 am]
FLIF and FUIF Formats (Fr...
by
hukka
[
Today
at 05:34:30 am]
Unselect all rows in stri...
by
Jonny
[
Today
at 02:16:49 am]
Magic Cropper (correct pe...
by
Boleeman
[
Today
at 01:41:08 am]
Treeview: full-width back...
by
d7_2_laz
[
Today
at 12:41:34 am]
BUG in InputQuery if defa...
by
dsiders
[
Today
at 12:38:49 am]
NTSC/CRT port for Free Pa...
by
hukka
[
Today
at 12:35:52 am]
N-Bit Dotted Line Pattern...
by
Boleeman
[February 07, 2025, 11:53:47 pm]
my programs crash
by
turunk
[February 07, 2025, 11:22:37 pm]
Oberon Pi, a port of Ober...
by
McDoob
[February 07, 2025, 11:21:36 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] wich switches in options.init_settings does the -Os set? (Read 538 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