Tue Nov 3 18:44:40 CET 2009
Automatic wrapper generation
The idea is now the following: from a .h file containing a simple C
wrapper written in terms of known C objects, generate all the glue
code to register the functions with the VM.
For SC and PF, this amounts to packing/unpacking strings, ints,
... depending on the memory model used.
Essentially: the wrapper binds the pure C objects to a PF/SC memory +
control (exception) model.
The task should be simple: examine the .c / .h code and generate
anything that looks like a pattern.