I wrote a simple C function wrapper generator. I've made a few notes about the background to this, here:
https://github.com/sjaturner/wrap/blob/main/BACKGROUND.md
If your code contains a C function with simple stdint or string parameters, like this:
int first_function(int64_t foo, uint64_t bar);
You can wrap it and then call it by interpreting a string like this:
"first_function 12 34"
There's a bit more detail in the README.md, visible here: https://github.com/sjaturner/wrap
I'm aware of several alternative approaches (some of which I mentioned in BACKGROUND.md) but am interested to hear about other tools for this 🙂