Create a generic C version of as much of the code as possible.
It might seem like a waste of time if your intention is for the final implementation to be in an assembly with manual optimization, but in reality it really is not.
When optimizing for a new goal, you can rewrite the key sections in the assembly, but first the C version will allow you to quickly and quickly perform something and quickly perform for each new goal and, secondly, provide a readable reference implementation for comparison with when optimization Both of which will greatly facilitate your life.
, , , , , / . , . C. , , C, . , .