> Do any C compilers perform switch optimization? I.e. tradeoff cascaded if > for table lookup. Clearly this is an optimization since a table would be > very wasteful for [a very sparse switch]. Most if not all C compilers do. It's necessary, really. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry