I’ve been mucking about with CCompilerDriver, trying to ship Mathematica born logic into little test programs.
The established procedure seems to be:
- Compile and export a function to C code
- Write a C program to call that C code
Complications arise when wanting to call other C functions from the compiled Mathematica code.
One could manually inject appropriate includes and calls into the generated .c files, but this undermines the automation I’m interested in.
Long story short I don’t know if this is possible, or where to start my investigation. All suggestions welcome!
Optimistic first attempt in the attached notebook.