Switch Lowering in GCC
GCC lowers switch statements using several strategies, including jump tables, comparison trees and bit-test bitsets, as shown through compiled examples. The article examines the compiler's heuristics, suggesting jump tables become worthwhile around eight entries per case label.