Re: Using C as a back end

conway@ender.cs.mu.oz.au (Thomas Charles CONWAY)
1 Nov 2000 18:33:17 -0500

          From comp.compilers

Related articles
[18 earlier articles]
Re: Using C as a back end sweeks@my-deja.com (Stephen T. Weeks) (2000-10-31)
Re: Using C as a back end zs@ender.cs.mu.oz.au (2000-10-31)
Re: Using C as a back end thp@cs.ucr.edu (Tom Payne) (2000-10-31)
Re: Using C as a back end engler@Stanford.EDU (2000-10-31)
Re: Using C as a back end anton@mips.complang.tuwien.ac.at (2000-10-31)
Re: Using C as a back end joachim_d@gmx.de (Joachim Durchholz) (2000-10-31)
Re: Using C as a back end conway@ender.cs.mu.oz.au (2000-11-01)
Re: Using C as a back end kst@cts.com (Keith Thompson) (2000-11-01)
Re: Using C as a back end rhyde@cs.ucr.edu (Randall Hyde) (2000-11-01)
Re: Using C as a back end rhyde@cs.ucr.edu (Randall Hyde) (2000-11-01)
Re: Using C as a back end vbdis@aol.com (2000-11-04)
Re: Using C as a back end joachim_d@gmx.de (Joachim Durchholz) (2000-11-04)
Re: Using C as a back end thp@roam-thp2.cs.ucr.edu (Tom Payne) (2000-11-04)
[4 later articles]
| List of all articles for this month |

From: conway@ender.cs.mu.oz.au (Thomas Charles CONWAY)
Newsgroups: comp.compilers
Date: 1 Nov 2000 18:33:17 -0500
Organization: A poorly-maintained Debian GNU/Linux InterNetNews site
References: 00-10-148 00-10-154 00-10-212 00-10-225
Keywords: C
Posted-Date: 01 Nov 2000 18:33:17 EST

Our moderator writes:


>[I think you mean assigned goto's, not computed ones. A computed goto
>takes an integer index into a fixed array of labels and jumps to one
>of them, something you can easily fake with a switch containing gotos.
>An assigned goto is jump via a variable, which I agree that standard C
>doesn't permit. -John]


Actually, the Mercury compiler also uses computed gotos to implement
what are effectively switches in the source language. Once again,
you need to use the GNUC extension to do the indirect goto.
--
  Thomas Conway Mercurian )O+
  <conway@cs.mu.oz.au> Every sword has two edges.


Post a followup to this message

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