GCC generates its keyword lookup with gperf, a perfect-hash generator, because a linear scan over dozens of keywords is measurable at the scale of compiling the Linux kernel. Building the hash-table version yourself shows why O(1) keyword dispatch matters and how tools like gperf earn their place in real build systems.