[fpc-pascal] Just out of curiosity: Compiling FPC trunk and fpcmake

Victor Campillo victor.campillo at gmail.com
Tue Mar 22 11:46:38 CET 2022


On 22/3/22 11:09, Karoly Balogh via fpc-pascal wrote:
> No, it isn't. -O<number> parameters will _enable_ certain optimizations.
> This means, -O3 -O1 will not switch the compiler "back" to -O1, just stay
> at -O3, because at -O3 level, all -O1 optimizations are already enabled,
> there is nothing to enable.
>
> -O- however will disable all optimizations. So if you want to disable all
> previously enabled optimizations, you indeed need to go to the -O- -O1
> route. So it is actually useful.
>
> (The above is quite easy to verify, see options.pas, line 2350 and below
> in the compiler sources.)
>
> Charlie

Good to know.

Now I am pretty sure that I copy that options from someone else, because 
with my knowledge I could not figure out that myself.

Thank you Charlie.

Best Regards.

-- 
Victor Campillo



More information about the fpc-pascal mailing list