Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!henry
From: henry@utzoo.UUCP (Henry Spencer)
Newsgroups: net.lang.c
Subject: Re: the C switch
Message-ID: <5160@utzoo.UUCP>
Date: Mon, 4-Mar-85 15:33:12 EST
Article-I.D.: utzoo.5160
Posted: Mon Mar  4 15:33:12 1985
Date-Received: Mon, 4-Mar-85 15:33:12 EST
References: <800006@acf4.UUCP>
Organization: U of Toronto Zoology
Lines: 8

> 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