GCC debug info + optimization
Hi everyone On our site the freeradius was compiled with -g flag (and no optimization) for debugging reasons. Should this be avoided for productive use? And should be used some optimization level (-O) instead? Cheers Till
On Sep 3, 2021, at 8:42 AM, g4-lisz@tonarchiv.ch wrote:
On our site the freeradius was compiled with -g flag (and no optimization) for debugging reasons.
Should this be avoided for productive use? And should be used some optimization level (-O) instead?
Using -g is fine. CPUs are so over-powered that losing 2-3% to non-optimized code just doesn't matter. Alan DeKok.
On 03.09.21 16:09, Alan DeKok wrote:
On Sep 3, 2021, at 8:42 AM, g4-lisz@tonarchiv.ch wrote:
On our site the freeradius was compiled with -g flag (and no optimization) for debugging reasons.
Should this be avoided for productive use? And should be used some optimization level (-O) instead? Using -g is fine. CPUs are so over-powered that losing 2-3% to non-optimized code just doesn't matter.
Alan DeKok.
Thank you very much for your quick and competent answer - as always! Till
participants (2)
-
Alan DeKok -
g4-lisz@tonarchiv.ch