is there an optimization level that will do no, nada, none "code packing" and STILL overlay variables. it sems that after some release when opt lev 2 became required for variable overlay it is impossible to debug without having to do "strange things" to breakpoint one of 2 similar routines. Erik
That example is really a little too terse to be useful. But let's see --- so you actually insist that the compiler should generate separate code for each of those two 'break' statements, so you can put a breakpoint on each of them separately? Looks like you're asking for wilful code bloat rather than absence of code packing. A case consisting of nothing but a 'break;' statement is arguably not even code, so 'code packing' doesn't really apply to what happens with it.
the issue here is that vyou can not set a breakpoint on a certain condition Erik
"the issue here is that you can not set a breakpoint on a certain condition" The problem is that you have no code on these conditions - and you can't set a breakpoint on nothing! The compiler isn't optimising-away your code; there is no code there to start with! Can't you use a data breakpoint?