Hacker News new | past | comments | ask | show | jobs | submit login

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.




I 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.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: