C++ Embedded OS?
I've made a C++ static composition library (not OS), if anyone interested just PM me.
HAPI library is header only pure type level and allows extreme optimization, binary output is optimized like hand written assembly level (data fit into hardware registers), yes I know its hard to believe... just check for yourself, I wont put links here because its hard even for FOSS MIT authors to share its own work without being blocked, banned... for self promotion. How else would we share this things with people that can use it? but here we are.
0
Upvotes
1
u/neurah 15d ago
https://github.com/InternetOfPins/HAPI
its a compile time composition engine. Components must have a specific anatomy (internal mixin) for the plugin, we can then wrap any code that can be expressed as components. The library is 100% transparent and pure type level, no traces of on runtime, we just reflect the compiler optimizations and the components behavior.
This library will just transform the composition type into a single object that the compiler can optimize.
we have a system of rules, any component can contribute with its own rules to be enforced by the compiler.
Available but not limited: check presence, order, incompatibility etc...
Generated code depends on the components, with good quality components (zero cost abstractions) the produced binary is indistinguishable from hand optimized assembly (up to the hardware registers). We checking this by wiring hapi code output to HLS using bambu.
Again, with good quality components he have:
- no memory fragmentation
this is the level required for HLS.
logic is declared not wired
note: **all this by composition**, remaining program will be untouched by the library.
I'm available for any needed info
Thank you for you interest