dmd as a library for scripting/JIT?

Stefan Koch uplink.coder at googlemail.com
Fri Sep 14 21:48:52 UTC 2018


On Friday, 14 September 2018 at 16:02:36 UTC, dennis luehring 
wrote:
> i've got user defined flow charts in my C++ application that 
> calling C/C++ Code - could be possible to embedd dmd as a 
> library, generate D code out of my flow charts and execute the 
> "compiled" code directly without doing file io or dmd.exe runs 
> to create dlls that i hot reload?

DMD is currently not reenterant.

You have better chances using libtcc [1] for such a purpose.

Cheers,

Stefan

[1] 
http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27.tar.bz2


More information about the Digitalmars-d mailing list