Asterisk Don't Optimize

Can someone explain what doesn’t mean in Asterisk Compiler Flag - “Don’t Optimize”?

If I’m trying to compile Asterisk without this flag - then Asterisk is crashing permanently.
Thank you.

It simply sets a don’t optimise flag on the C compiler.

The normal reason for this is that it ensures the compiler always generates code to store variables, immediately, in memory, rather than registers, but it will also cause the compile not to do a lot of other things.

At one time, turning on optimisation was risky, because it tended to find compiler bugs, but most compilers are pretty stable these days.

1 Like