I just have finished a set of functions and I want to pass them on to other users of our hardware, preferrably in form of linkable binary object or library.
However, for sake of speed, it depends on an array address-aligned in RAM (i.e. (int)array & (sizeof(array) - 1) == 0 ).
It appears, that there is no means to enforce it at object/library level, so my current "policy" is to put this into the documentation: as it is the user who has control over the linker, it is also the user who has to declare the array in the application into which the library is to be linked in; and has to ensure it will be aligned properly.
However, this solution is not as "self-contained" as I would like it to be.
Any ideas and suggestions?