Re: Fastening the run-time interpretation of mathematical expressions

Martin Ward <martin@gkc.org.uk>
15 Nov 2006 15:22:23 -0500

          From comp.compilers

Related articles
Fastening the run-time interpretation of mathematical expressions paolopantaleo@gmail.com (PAolo) (2006-11-11)
Re: Fastening the run-time interpretation of mathematical expressions haberg@math.su.se (2006-11-11)
Re: Fastening the run-time interpretation of mathematical expressions mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2006-11-13)
Re: Fastening the run-time interpretation of mathematical expressions akk@privat.de (Andreas Kochenburger) (2006-11-13)
Re: Fastening the run-time interpretation of mathematical expressions martin@gkc.org.uk (Martin Ward) (2006-11-13)
Re: Fastening the run-time interpretation of mathematical expressions tommy.thorn@gmail.com (Tommy Thorn) (2006-11-13)
Re: Fastening the run-time interpretation of mathematical expressions 148f3wg02@sneakemail.com (Karsten Nyblad) (2006-11-15)
Re: Fastening the run-time interpretation of mathematical expressions martin@gkc.org.uk (Martin Ward) (2006-11-15)
Re: Fastening the run-time interpretation of mathematical expressions idknow@gmail.com (idknow@gmail.com) (2006-11-15)
Re: Fastening the run-time interpretation of mathematical expressions gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-11-16)
Re: Fastening the run-time interpretation of mathematical expressions darius@raincode.com (Darius Blasband) (2006-11-20)
| List of all articles for this month |
From: Martin Ward <martin@gkc.org.uk>
Newsgroups: comp.compilers
Date: 15 Nov 2006 15:22:23 -0500
Organization: Compilers Central
References: 06-11-052 06-11-060
Keywords: history, comment
Posted-Date: 15 Nov 2006 15:22:23 EST

On Monday 13 Nov 2006 21:31, Martin Ward wrote:
> At run time, your program could write out a file containing a
> standalone C function which implements the mathematical function,
> compile this to a shared library (or DLL), dynamically link it in, and
> call the function as required.


I forgot to add that when I wanted to solve the exact same problem in
interpreted BASIC on a Compukit UK101 machine (with a 6502 processor
running at 2 MHz and 4 KB of RAM) I needed a rather different
approach. Take the string containing the mathematical formula, convert
BASIC keywords to tokens, and overwrite a line of the running program
with the new BASIC line (the space required having been pre-allocated
by padding the line in question with spaces!).


Recently I managed to resurrect the 25 year old tapes, so you can find
the source code in file tapes_2/audio001-002.txt in UK101-tapes.zip on
this page: http://www.cse.dmu.ac.uk/~mward/martin/software#UK101


--
Martin


martin@gkc.org.uk http://www.cse.dmu.ac.uk/~mward/ Erdos number: 4
G.K.Chesterton web site: http://www.cse.dmu.ac.uk/~mward/gkc/
[Wow, that's gross. -John]


Post a followup to this message

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