Menu

#24 OnBC: Better switch statement codegen

OnBoard_C
open
nobody
None
5
2004-01-13
2004-01-13
No

As per Philippe Guillot's email:

"The switch statement generates an additionnal local
variable on the stack. I my opinion, this is useless. It
would be better to keep the value to be compared in the
D0 register (smaller and more efficient code and probably
simpler in the compiler)."

Again, I've not assessed the feasibility of this yet.

Discussion


Log in to post a comment.