Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Richard Erlacher
11/12/11 00:04
Read: 462 times
Denver, Co

#184661 - Sometimes it's hidden
Responding to: Andy Neil's previous message
One of a number of BASIC interpreters with which I once had contact did the "build" operation during the first run, then saved the tokenized BASIC rather than the plain-text that had been entered.

A 'C' interpreter for the PC that I encountered in the early '80's worked similarly. I'm not certain about "turbo-Prolog" but it may have operated in that way as well. There were several fully interpreted Prolog packages as well, but I believe the interface to 'C' was less than ideal.

Interpreters seem to be big, slow, and cumbersome.

One fellow I knew years ago, may he rest in peace, wrote a rather interesting interpreter for the 6502, loosely based on Algol65, which used an iterpreted intermediate language, effectively a simulated virtual machine, and while the source language was compiled, the run was done on that intermediate interpreted language, tokenized, of course, and worked VERY well. The language was complete enough that it could be compiled in itself, and would produce a new, runnable compiler. If a new CPU was to be used, all one was required to do was to create a suitable intermediate interpreter for that MCU, as the code produced by the compiler would run on that as well as on the other CPU.

I thought it was a pretty good approach to producing a better-than-average tool in short order.

If you don't insist on full ANSI-compliance, there are numerous "free" C-compilers available that might work as well. I know of at least one "free" tiny-C package for 805x, and there's even a floating point patch for it. I don't know how "good" that one is, but I do know that several people have used it with considerable success.


List of 17 messages in thread
Interpreted Languages?      Andy Neil      11/11/11 16:08      
   Sometimes it's hidden      Richard Erlacher      11/12/11 00:04      
      p-code      Per Westermark      11/12/11 05:04      
      P-code and others      Oliver Sedlacek      11/15/11 00:03      
      interpreter/compiler      Joseph Hebert      11/15/11 22:35      
         Debatable      Oliver Sedlacek      11/17/11 01:12      
            Not necessarily machine code      Matthias Arndt      11/17/11 01:19      
               Definitely debatable      Oliver Sedlacek      11/17/11 04:43      
                  Ofcourse not      Matthias Arndt      11/17/11 10:22      
   runtime errors      Jan Waclawek      11/12/11 05:22      
      You can't      Per Westermark      11/12/11 05:42      
      You missed the point!      Andy Neil      11/12/11 05:42      
         Not always worth it with interpreted languaes      Per Westermark      11/12/11 06:11      
            I like your thinking      Justin Fontes      11/15/11 10:40      
               Many FORTH implementations are interpreted, aren't they?      Richard Erlacher      11/15/11 11:08      
                  Forth      Per Westermark      11/15/11 11:29      
   Maybe a comparison?      Justin Fontes      11/15/11 10:14      

Back to Subject List