Is there a way to force the compiler to generate a jump table for a sparse "switch" construct?
Nope. You'll have to add the unused cases and the compiler will then generate a jump table. Jon