Re: Help needed: Code generation for CASE/SWITCH statements

Dave Hanson <drh@microsoft.com>
5 Dec 1997 01:14:52 -0500

          From comp.compilers

Related articles
Re: Help needed: Code generation for CASE/SWITCH statements johnmce@world.std.com (1997-12-05)
Re: Help needed: Code generation for CASE/SWITCH statements srw@pspf47.ih.lucent.com (1997-12-05)
Re: Help needed: Code generation for CASE/SWITCH statements dwight@pentasoft.com (1997-12-05)
Re: Help needed: Code generation for CASE/SWITCH statements preston@cs.rice.edu (1997-12-05)
Re: Help needed: Code generation for CASE/SWITCH statements dlmoore@ix.netcom.com (David L Moore) (1997-12-05)
Re: Help needed: Code generation for CASE/SWITCH statements drh@microsoft.com (Dave Hanson) (1997-12-05)
Re: Help needed: Code generation for CASE/SWITCH statements wilson@marker.cs.utah.edu (Wilson C Hsieh) (1997-12-05)
Re: Help needed: Code generation for CASE/SWITCH statements conway@mundook.cs.mu.OZ.AU (1997-12-05)
Re: Help needed: Code generation for CASE/SWITCH statements gclind01@spd.louisville.edu (1997-12-07)
Re: Help needed: Code generation for CASE/SWITCH statements wi534@victoria.tc.ca (William A. Barath) (1997-12-07)
Re: Help needed: Code generation for CASE/SWITCH statements sethml@ugcs.caltech.edu (1997-12-07)
Re: Help needed: Code generation for CASE/SWITCH statements henry@zoo.toronto.edu (Henry Spencer) (1997-12-10)
[8 later articles]
| List of all articles for this month |

From: Dave Hanson <drh@microsoft.com>
Newsgroups: comp.compilers
Date: 5 Dec 1997 01:14:52 -0500
Organization: Compilers Central
References: <clcm-19971204-0012@plethora.net>
Keywords: C, code

Section 10.7 in our book "A Retargetable C Compiler: Design and
Implementation" (Addison-Wesley, 1995, ISBN 0-8053-1670-1;
http://www.cs.princeton.edu/software/lcc/) gives all the details on
generating code for C switch statements.


Good selection algorithms are described in Sampath Kannan and Todd
A. Proebsting, Correction to `Producing Good Code for the Case
Statement'. Software--Practice & Experience 24, 2 (Feb 1994), 233.
Ulfar Erlingsson, Mukkai Krishnamoorthy and T.V. Raman. Efficient
Multiway Radix Search Trees. Information Processing Letters 60, 3
(Nov. 1996), 115-120. and the citations therein.


dave hanson


Jakob <jakob@iar_.se> wrote in message <clcm-19971204-0012@plethora.net>...
> I would like to know if anybody knows of any references (articles,
> books, online sources) where information can be found about how to
> select implementation strategies for switch statements ...




--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.