4 ms·
While I dislike #if/#else/#endif, dynamic libraries rarely exist in embedded systems. Using many small object files is my solution of choice but it pushes the
by linuxlizard 12y ago
While I dislike #if/#else/#endif, dynamic libraries rarely exist in embedded systems.
Using many small object files is my solution of choice but it pushes the if/else/endif problem into the Makefile instead.
- mackwic 12y agoI personally tend to use yaml files which contains matrices of compatibility between objects, used to generate CMake statements. I know people who use the file header to autodetect the right architecture but I found it too overkill and weird-bug-prone.