From: Roman Suzi Newsgroups: comp.os.msdos.djgpp Subject: Runtime code generation ques Date: Fri, 07 Nov 97 21:48:35 +0300 Distribution: su Organization: unknown Message-ID: Sender: news-service AT sampo DOT karelia DOT ru Reply-To: nuser AT rsuzi DOT pgu DOT karelia DOT ru Lines: 40 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 --