Open kbenne opened 1 year ago
I've started by creating a tool to generate the wrappers: https://docs.google.com/spreadsheets/d/126iyiRC-fspn9O-0QV39JneEetiVtKzm_KmFJkNxPGo/edit?usp=sharing
See: https://github.com/NREL/Spawn/tree/c_bridge_updates
https://github.com/NREL/Spawn/blob/c_bridge_updates/c_compiler/c_bridge/c_bridge.h https://github.com/NREL/Spawn/blob/c_bridge_updates/c_compiler/c_bridge/c_bridge.c
The current implementation of c bridge has stubs for many of the c standard library functions. We need to flesh these out enough to compile Modelica generated C code.
@kbenne will need to provide example source that needs to be supported by the compiler.