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?
Can't you just select it in the individual file's properties? Or put all such files in a Group, and set it for the Group?
...or the Manual shows you how to select the optimisation level on a function-by-function basis: http://www.keil.com/support/man/docs/c51/c51_optimize.htm