This is not GCC, but a general programming question.
What do you use for huge finite state machines? I've wrote this huge state machine with about 20 states (it will probably grow as I add new features), with about 500 lines long (including comments) but I don't quite like how huge it is.