??? 08/17/06 21:06 Read: times |
#122506 - sure it 'works' Responding to: ???'s previous message |
however, if you have 5 functions where the last 10 statements are identical, the optimizer will, for 4 of them insert jumps to the the last 10 statements of #5. This makes it impossible to set a breakpoint that will only stop at the exit from function #3.
I am NOT 'complaining' about the optimizer, it just does not work for me. What I AM complaining about is that 'improvements' that do not affect the flow are relegated to optimization when they belong in the compiler. Anyhow we are drifting too far from the original question, to which the answer is "the one and only form or fashion you can use a switch in, without movc instructions being generated is a sequential switch statement with optimizer 8 or better" (Keil do not know of others). For more see http://www.keil.com/forum/docs/thread8020.asp Erik |