There are 2 enabled subsystems triggered by boolean constants. I have configured "function packaging" setting available in code generation section of block parameter for both subsystems. While doing code generation, I changed value of one of the boolean constants to zero to disable the subsystem. But the generated code contains declaration of global variable (BooleanSignalTwo) which is not used by any function. This is resulting in increase in overall memory footprint.
Is there any way to optimize generated code for disabled subsystem so as to avoid auto code generation for global variable used to disable that subsystem ?