Related articles |
---|
[2 earlier articles] |
Re: Two pass compiler for a language similar to Java jjan@cs.rug.nl (J.H.Jongejan) (2004-09-08) |
Re: Two pass compiler for a language similar to Java lhp+news@toft-hp.dk (Lasse =?ISO-8859-1?Q?Hiller=F8e?= Petersen) (2004-09-13) |
Re: Two pass compiler for a language similar to Java vidar@hokstad.name (2004-09-13) |
Re: Two pass compiler for a language similar to Java joanpujol@gmail.com (Joan Pujol) (2004-09-13) |
Re: Two pass compiler for a language similar to Java tzvetanmi@yahoo.com (2004-09-13) |
Re: Two pass compiler for a language similar to Java kers@hplb.hpl.hp.com (Chris Dollin) (2004-09-13) |
Re: Two pass compiler for a language similar to Java kamalp@acm.org (2004-09-21) |
From: | kamalp@acm.org (Kamal R. Prasad) |
Newsgroups: | comp.compilers |
Date: | 21 Sep 2004 22:17:54 -0400 |
Organization: | http://groups.google.com |
References: | 04-09-032 04-09-051 04-09-089 |
Keywords: | practice |
Posted-Date: | 21 Sep 2004 22:17:54 EDT |
Joan Pujol <joanpujol@gmail.com> wrote in message news:04-09-089...
> > If you want an interpreter -it makes sense to go in for a 1-pass
> > compiler. Else, 2-pass is what one would use.
>
> I don't understand it. The language is the same if I interpret it or
> if I compile it, isn't it? You want to say that If I want to write an
> interpreter it's better to have a semantics that can be done in one
> pass? Or I'm missing something?
>
> A lot of thanks in advance,
> [I don't get it either, unless the idea is that the interpreter is unlikely
> to need as much type info known in advance as compiled code. -John]
I was referring to one of those visual interpreters (like Basic)
wherein you can modify text and the code would not have to be
re-compiled as the stuff gets interpreted line by line. It looks like
you can do a lot with 1-pass compiler (and the definition of a 'pass'
is rather flexible) -so my earlier statements are not entirely true.
regards
-kamal
Return to the
comp.compilers page.
Search the
comp.compilers archives again.