Kurt Stephens (stephens@mcs.com) wrote:: I would like to see GCC packaged as a linkable library (or a server) so we: can call a function (imagine some thing like "void* GCC_compile(RTL: expression)") with a RTL tree and have it return a function pointer!

That _would_ be handy!

: Has any one designed an embeddable, portable, retargetable "compiler": library?

Sort of. Dr Ousterhout has (mentioned that he is currently / promised that he
will be / been accused of) writing an on-the-fly TCL compiler. The
only difference to a traditional TCL interpreter is that the "proc"
command would compile its arguments into local-native code.
Amazingly, that's all that's necessary.