# 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*

| 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.