Hi all,
just a quick question: is setting one of the LEVELn values like
{$Optimization LEVEL3}
in a source file supposed to be functionally equivalent to calling the compiler
for that file with -O3?
If so, then there's a bug: only the level gets applied, none of the associated
switches (i.e. le
On Tue, January 16, 2018 16:52, Martok wrote:
Hi Martok,
> just a quick question: is setting one of the LEVELn values like
> {$Optimization LEVEL3}
> in a source file supposed to be functionally equivalent to calling the
> compiler
> for that file with -O3?
No - see the discussion at https://b
> No - see the discussion at https://bugs.freepascal.org/view.php?id=25873
Huh.
Quick googling shows lots of projects out there that clearly assumed it would.
So we need to get at least the documentation fixed for the future.
If I were to replace {$OPTIMISATIONS ON} with {$OPTIMISATIONS LEVEL4} s
On 16/01/18 18:13, Martok wrote:
Is there even a use case for the current behaviour? I.e., when would one
actually mean -Oolevel3 instead of -O3?
The LevelX switches are only intended for internal use by the compiler,
and were never intended to be exposed. They should simply give a warning
or
Am 17.01.2018 um 16:38 schrieb Jonas Maebe:
> The LevelX switches are only intended for internal use by the compiler,
> and were never intended to be exposed.
Good, that's what I thought too.
> The ability to have the equivalent of
> -O1/-O2/-O3/-O4 in source code was never planned.
Florian wrot