How does porting between Linux and Windows work?

后端 未结 8 1670
庸人自扰
庸人自扰 2021-01-05 05:14

If a particular piece of software is made to be run on one platform and the programmer/company/whatever wants to port it to the other, what exactly is done? I mean, do they

8条回答
  •  旧时难觅i
    2021-01-05 05:39

    this is the point of a cross-platform toolkit like qt or gtk, they provide a platform-agnostic API, which delegates to whichever platform the program is compiled for.

    some companies don't use such a toolkit, and write their own (for whatever reason - could well be optimisation-related), meaning they can't just recompile their code for another os.

提交回复
热议问题