Re: Using C as a back end

Keith Thompson <kst@cts.com>
26 Oct 2000 02:50:11 -0400

          From comp.compilers

Related articles
[9 earlier articles]
Re: Using C as a back end predictor@my-deja.com (Pred.) (2000-10-23)
Re: Using C as a back end predictor@my-deja.com (Pred.) (2000-10-23)
Re: Using C as a back end sweeks@my-deja.com (Stephen T. Weeks) (2000-10-23)
Re: Using C as a back end jaidi@fos.ubd.edu.bn (Pg Nor Jaidi Pg Tuah) (2000-10-26)
Re: Using C as a back end predictor@my-deja.com (Pred.) (2000-10-26)
Re: Using C as a back end ONeillCJ@logica.com (Conor O'Neill) (2000-10-26)
Re: Using C as a back end kst@cts.com (Keith Thompson) (2000-10-26)
Re: Using C as a back end jacob@jacob.remcomp.fr (jacob navia) (2000-10-26)
Re: Using C as a back end nr@labrador.eecs.harvard.edu (2000-10-31)
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)
[13 later articles]
| List of all articles for this month |

From: Keith Thompson <kst@cts.com>
Newsgroups: comp.compilers
Date: 26 Oct 2000 02:50:11 -0400
Organization: CTSnet Internet Services
References: 00-10-148 00-10-154
Keywords: C

Peter Gammie <peteg@cse.unsw.edu.au> writes:
[...]
> The biggest problem with compiling to C is its lack of
> expressiveness; almost certainly you'll want to use gcc's extensions
> (such as goto), unless your language is already close to C.


Just to clarify, goto is part of the standard C language, not a gcc
extension. gcc does provide computed gotos, though, which standard C
lacks. (Whether this is a good thing is a can of worms I choose not
to open.)
--
Keith Thompson (The_Other_Keith) kst@cts.com <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://www.sdsc.edu/~kst>
[You can get the effect of a computed goto in standard C using a
switch full of goto's, and any decent compiler should generate about
the same code as for an explicit computed goto, so I don't see that
particular wart as a major one. -John]



Post a followup to this message

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