Mail Archives: djgpp/1997/11/13/05:15:34
Hello, all!
Possibly someone know the answer.
I want to make numerical computation program (matrix computations)
under DJGPP (I consider it as most suitable choice under DOS).
To add more flexibility I wanted to add formula interpreter
(or slightly more than it) to my program to be more flexible.
But interpretation is (5 times as) bad inside nested loops and I
thought about better thing: runtime compilation.
The scheme must be as follows:
text string converts (at run-time) to
its 32bit machine code representation.
Then I can just call the procedure by pointer.
Does anyone know if such mini-compiler is available for DJGPP (C/C++)
in some of the libraries/packages?
If not, any Unix C/C++ libraries? (In this case I will try to port it)
The built-in compiler doesnt need to be full C/C++.
Just int and floating-point math, loops, ifs...
The re-compilation (+DLL) scheme is not good
for my case (too many things for user to have).
Thank you for any suggestions.
Roman.
P.S. Isn't it an interesting problem?
--
-- * --
-- Roman A. Suzi * Petrozavodsk Karelia Russia --
-- http://sampo.karelia.ru/~rnd --
- Raw text -