RTL/tree (from gcc) and Scheme
Per Bothner
per@bothner.com
Sun Aug 10 07:43:00 GMT 2003
Valery A.Khamenya wrote:
> The very same approach has Bigloo:
> http://www-sop.inria.fr/mimosa/fp/Bigloo/
> but Bigloo has problem with compilation in run-time, i.e. it has
> preliminary compilation before run and no ability to compile function
> in a run-time up to native code.
>
> Has kawa the same problem?
You asked for a GCC front-end for Scheme. That by definition means
"preliminary compilation before run" - that's what GCC does.
Now you're asking for being able "to compile function in a run-time
up to native code." That's a completely unrelated problem with a
different set of issues. I can think of two solutions if using
Kawa:
* Kawa (I don't know about Bigloo) will compile to bytecode at run-time.
A modern Java VM will Just-in-Time (JIT) compile the bytecode the native
code in-time fly.
* You can compile the bytecode, save them in a file, invoke Gcj to
create a DLL, and load that at run-time. At least in theory and with
a little bit of work - I don't know if anyone has done it.
>>> Q2.2. Is RTL/Tree suitable for run-time usage?
>
> PB> No.
>
> opss...
>
> why?..
Because your question doesn't make sense. RTL and Tree are data
structures internal to the GCC compiler. They are not designed
for anything else.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Gcc
mailing list