As I play around with these STM32 devices I am continually puzzled as to why we don't see more binary reuse. All of the projects I see or find online seem to require the consumption of source code, to use some feature or gadget often means we must drag in various header and code files, and just to build some simple app also seems to requires a huge plethora of manufacturer supplied library source.
Why is there no binary reuse? In larger scale non-MCU work we have nuget packages for example, and in the world of .net or java we routinely consume binary files, the files generated when that code was compiled.
This is not a new idea, it has existed for a long time and C and C++ are no strangers to this but we just do not see it in the world of MCUs it seems.
If we reuse a library by consuming the source then we carry huge risk, the code we build will vary depending on the compiler we use, the version of that compiler, the specific language options we're using, the language version we're using etc etc.
Why can't I just download some gadget library that's built for some STM32 family?
Is it me, or is it the case the binary reuse just doesn't happen in the world of MCUs?
Why is there no binary reuse? In larger scale non-MCU work we have nuget packages for example, and in the world of .net or java we routinely consume binary files, the files generated when that code was compiled.
This is not a new idea, it has existed for a long time and C and C++ are no strangers to this but we just do not see it in the world of MCUs it seems.
If we reuse a library by consuming the source then we carry huge risk, the code we build will vary depending on the compiler we use, the version of that compiler, the specific language options we're using, the language version we're using etc etc.
Why can't I just download some gadget library that's built for some STM32 family?
Is it me, or is it the case the binary reuse just doesn't happen in the world of MCUs?