Initializing a static TMAP in a Static Library

switch is implemented by a binary search tree with many entries. with small ranges, it is implemented via jump table