NREL / Spawn

Other
15 stars 3 forks source link

Flesh out c bridge implementation #57

Open kbenne opened 1 year ago

kbenne commented 1 year ago

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.

lefticus commented 11 months 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