Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2018-05

-gw and -O3

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ryan Joseph

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?

Regards,
Ryan Joseph

Reply by email

Sven Barth
to Ryan Joseph

Ryan Joseph 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

Reply by email