I've been wondering if it is possible to use the generated source code from SystemModeler to create an S-Function. While I was trying to understand the generated code and looking for the header files included in it, I bumped into some C++ source files named sfunction__wrapper.cpp and hqp_sfunctionwrapper.cpp in ...\SystemModeler\include folder. These files are in the format of an S-Function file, but I'm not sure whether I can use these with the SystemModeler generated code to create an S-Function. If you have any recommendation on achieving this, I'd be glad to hear them.
I also couldn't find a way to compile and run the generated source code in other platforms. The code consists of bunch of functions, but not much explanations. The names of the functions give some idea, but that's not enough. I would be really glad if someone could explain how to make use of the generated source code.