I'm not sure there would be much advantage in the DLL approach, other than eliminating the need to launch a separate process for each code generated. As you say, the downside is that you have to create wrappers for all of the functions you want to call in the DLL, and from the looks of it, there are a lot! (Not that you necessarily need more than a few of them, but it may take awhile just to figure out which ones are needed, since that's all buried inside the EXE.)