Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!brl-tgr!gwyn
From: gwyn@brl-tgr.ARPA (Doug Gwyn )
Newsgroups: net.lang.c
Subject: Re: the C switch
Message-ID: <8874@brl-tgr.ARPA>
Date: Sat, 2-Mar-85 22:11:38 EST
Article-I.D.: brl-tgr.8874
Posted: Sat Mar  2 22:11:38 1985
Date-Received: Mon, 4-Mar-85 07:09:49 EST
References: <800006@acf4.UUCP>
Organization: Ballistic Research Lab
Lines: 6

> Do any C compilers perform switch optimization? I.e. tradeoff cascaded if
> for table lookup.

All the C compilers I am familiar with have about three different ways
of generating code for a switch statement, in an attempt to optimize
the size of the code vs. its speed.