[fpc-pascal] -gw and -O3
Sven Barth
pascaldragon at googlemail.com
Mon May 28 09:05:03 CEST 2018
Ryan Joseph <ryan at thealchemistguild.com> schrieb am Mo., 28. Mai 2018,
07:05:
> What happens when you have both those switches on at the same time? Does
> the -gw affect the performance or just output information in addition to
> the optimized compilation?
>
The generation of debug information does not affect the performance of the
final binary (except maybe load time, but that depends on the OS).
However if you want to do single step debugging it is recommended to
disable any optimizations (or at least use only -O1) as otherwise there
might be surprises when debugging due to the reordered/optimized code.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180528/5781af29/attachment.html>
More information about the fpc-pascal
mailing list