(Might be a good business opportunity if so)
(Might be a good business opportunity if so)
I sense a potential misunderstanding here: Not every chip runs code. Microcontrollers and processors do, but there are many different kind of chips. Some convert voltages, some massage signals, some drive motors, etc.
Why is this important? Porting code will only help you when you are swapping microcontrollers or processors. Which is just a tinny sliver of all the ICs in use. Porting code won't get you anywhere if what you are missing from your BOM is a boost-buck IC, or an opamp.
That might be a similar part by another company, or it might be an identical part in a different package (often ICs are available in two or three package shapes, and you might not be able to predict which ones will be in stock).