Generate Minimal Header / Library for Embedded Platforms #165
Replies: 1 comment
-
Generating the code required to build a generated functionI think this is roughly covered currently - it should be possible currently to add Minimal dependenciesIt'd be more of a change to trace out the minimal set of types required by a given generated function, and seems probably less necessary since it probably isn't a huge deal to compile extra types you aren't using? C language backendNot something that's currently on the roadmap, but agree it may be nice to have. I'll note that generated functions don't use STL containers with the possible exception of dynamic-size LCM types (#193), and we could add an option to disable |
Beta Was this translation helpful? Give feedback.
-
It would be nice if we can port the symbolically generated C++ functions to an embedded platform such as STM32 MCUs. Is there currently any workaround to copy a minimal set of files (such as the types used by the generated function) to compile the generated C++ functions standalone? And also are there any future plans for supporting a C language backend (since C++ STL stuff like containers and streams can bloat the code size on a small MCU)?
Some related thoughts and perhaps a feature request: I think the generated CSE optimized functions are really useful on their own and running them requires just a few dependencies such as
Eigen
andsym
types. It would be nice if thecodegen
package can generate a small project (including necessary headers, sources, perhaps cmake) that compiles standalone in any architecture.Beta Was this translation helpful? Give feedback.
All reactions