3 ms·
I haven't posted about it yet, as I wanted to clean up the branch before I do, and I ran out of time; work to catch up and so on :-) libtcc is /massively/ clev
by buserror 10y ago
I haven't posted about it yet, as I wanted to clean up the branch before I do, and I ran out of time; work to catch up and so on :-)
libtcc is /massively/ clever, it will 'link back' to your (exported) ELF symbols automatically. Basically it links the piece of code to your current running process, with all it's libs etc.
So if you have a function blob(int); in your main program, just call it from the C you generate, and it'll Just Works.
For my own purpose, I decided to trim down the headers I would have to include in the generated C and made some sort of simpler 'trampoline', but it's not strictly necessary.