Quote:
Originally Posted by surban99
what do you mean as "portable enough"? you mean the code has to be optimized for all those different processors?
|
Up to a point/yes, and more: it is possible for the code to be written with assumptions about the display, the way interrupts work on the particular processor, the organisation and access to memory that may not be consistent with the hardware that you have. And it is not just 'the program' but the program, plus all of the dependencies.
And there is speed; while you might think that this is just an issue of how fast the final program runs, it is quite possible that iof you run the code on a platform that is, eg, an order of magnitude slower, race hazards could show up that were never visible on the original platform.
So while, in principle, compiling for your platform could, theoretically, get anything working, in practice you might have a few interesting hurdles to overcome, and, if you are not good at debugging and have good documentation, you might find some of those hurdles a bit tough.