[m-users.] Stackoverflow from --intermodule-optimisation

Maxime Van Assche mva at missioncriticalit.com
Wed Sep 25 16:42:33 AEST 2013

On 25/09/2013 07:26, Michael Day wrote:
> Hi Paul,
>> It is reported to (comments in the manual) that it can slow programs down.
>> My guess is that this means the chance of slowing a program down is almost
>> as good as the chance that it'll speed up.
> Is there a canonical example of code that runs slower with this optimisation?
> What is the mechanism of the slowdown, just having more arguments to pass down?
> Unless the slowdown really is significant, I would still suggest enabling the optimisation by default. Without it, code
> may run slightly faster up until the point that it crashes by overflowing the stack :)

Turning it on for all modules on the MCit ODASE platform showed a slight slowdown,
and made the compiler crash on a few modules.
I have not investigated further, but my guess is that you do want to turn it on for most modules,
but discovering which modules is painful...


More information about the users mailing list