the C switch

Henry Spencer henry at utzoo.UUCP
Tue Mar 5 06:33:12 AEST 1985


> 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



More information about the Comp.lang.c mailing list