Transition between processors

I write mostly inline code at work. We have a large long-term project that has been developed and has several generations, and now the processor for which it was written is being stopped, and it would be impossible to even continue to use processors from the same manufacturer. (Probably the transition from TI to Renesas FPU microprocessors). Part of the problem is that some code is written in the assembly.
I am looking for ways to make the transition as painless as possible, and to make it smoother if such a transition is needed in the future.
What can you offer?

+3
source share
1 answer

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

+13

Source: https://habr.com/ru/post/1703887/


All Articles