![]() |
reactor-c 1.0
C Runtime for Lingua Franca
|
The documentation here is generated automatically from the C source code using Doxygen. Higher-level user documentation and getting-started information can be found on the lf-lang.org website, with details about the C runtime on the target language details page.
When you specify
then a C compiler (such as gcc) will be used. If you specify
then a C++ compiler (such as g++) will be used. In this case, your reaction bodies can written in C++ and you can include and link to C++ code. Unlike the Cpp target, you will still access the LF API through the C API documented here.
When you specify
then lfc will generate a Python program that uses this reactor-c runtime under the hood.
The C, CCpp, and Python targets are tested nightly on Linux, macOS, and Windows (with WSL). The federated programs are tested on Linux and macOS only.
For embedded platforms, there is support for C on Arduino and Zephyr, plus bare-metal (unthreaded) execution on the Raspberry Pi RP2040, nRF52, FlexPRET, and Patmos. For bare-metal, Zephyr, and RIoT, consider using the reactor-uc target instead.