Hey all,
Would someone help me understand the difference between “porting” and “cross-compiling”? I did some googling and YouTubing but it seems some people don’t make a distinction, some do, and some talk about crossing to a different OS and some to a different chip architecture.
PS: I have also read that porting/cross-compiling takes a very long time and can be a hard task – apparently Google Chrome and Firefox both have assembly in them but why was it so important to put assembly in them? It has to be super important given that they knew it would take a long time to port/cross compile to a different chip than the original one right?!
Thanks so much!
Thanks!!
In: Technology
porting is making changes to the code to make something run on a different platform, it could be making a windows program run on linux or making a x86 program run on arm. Or something like making code that run on one Arduino board run on a different arduino board with a different pinout
cross compiling is compiling code on one platform to run on a different platform, like for example compiling ARM code for a RPI on a pc instead of compiling the code on the RPI itself,or compiling AVR code for an arduino on a PC
Latest Answers