Re: f95 interpreter

Gene Wirchenko <genew@mail.ocis.net>
23 Oct 2004 22:37:27 -0400

          From comp.compilers

Related articles
Re: f95 interpreter gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-10-21)
Re: f95 interpreter genew@mail.ocis.net (Gene Wirchenko) (2004-10-23)
Re: f95 interpreter gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-10-24)
| List of all articles for this month |
From: Gene Wirchenko <genew@mail.ocis.net>
Newsgroups: comp.lang.fortran,comp.compilers
Date: 23 Oct 2004 22:37:27 -0400
Organization: Posted via Supernews, http://www.supernews.com
References: <Pine.LNX.4.60.0410161511130.2756@janus> 04-10-142
Keywords: Fortran, debug, comment
Posted-Date: 23 Oct 2004 22:37:27 EDT

glen herrmannsfeldt <gah@ugcs.caltech.edu> wrote:


[snip]


>There are very few true interpreters for programming languages. (Not
>counting command languages such as unix csh, sh, and DOS/Windows .BAT
>files.)
>
>Most are closer to incremental compilers, where at minimum each
>statement is compiled to an intermediate form, converting language
>tokens (keywords) to an internal form, and possibly user symbols
>(variable names) also. Most BASIC systems work like that, many
>compiling each line when it is entered. On the continuum between


          IME, no. They simply convert it to a tokenised form.


>compilers and interpreters, it is most of the way toward interpreters.


[snip]


>[Back in the early 1970s, IBM had two PL/I compilers, the X compiler
>which generated optimized machine code and the CK (checkout) compiler
>which generated bytecodes and interpreted them. They used the same
>front end and accepted the same input language. The CK compiler
>offered all of the nice debugging stuff you'd expect from an
>intepreter, full range checks, bogus pointers, type mismatches, all
>that. You could even tell CK to generate code with call stubs so you
>could run a mix of X and CK code if you wanted. Of course, high
>quality debugging support like that is now obsolete. -John]


          Grrr!


          How fast do you want your wrong answers?


Sincerely,


Gene Wirchenko
[Do keep in mind that back in those days the fast computers ran at 1 MHz,
so the difference in code speed could make the difference between a
minute-long run and an all-night run. But it is my impression that the
call stubs were mostly used to call code in precompiled libraries. -John]


Post a followup to this message

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