I have a project for which the overall level of optimisation is set to the maximum. However, for a few modules (e.g. ISRs) I tried to set an optimisation level below that of Common Block Subroutines. However, in the object code, there are common blocks thoughout. Is it possible to build a project with Common Block Subroutines optimisation for most of the code, but deselected for individual modules?
I cannot turn linker code packing off for a group. I have tried turning down optimisation to 7 for the specific file and this does seem to prevent common subroutines in the functions therein. Why does level 7 work when I would have expected level 8 to do the trick?