I would like to use C source code in an easy way with JavaScript (using only free/libre software). So Emscripten seems to be a good option. https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html
There is an example to export one function:
emcc tests/hello_function.cpp -o function.html -s EXPORTED_FUNCTIONS="['_int_sqrt']"
But there are many functions that would be relevant to use in JavaScript. Moreover, it seems that I will have to add some more for accessing members of structures. Accessing struct fields from emscripten
So, I am wondering if it is possible to export all functions (except the ones of libc) without creating a big array with all the names, even if it could be a JS size issue and efficiency issue.
Regards.