Linux和Windows之间的移植如何工作? [英] How does porting between Linux and Windows work?

查看:77
本文介绍了Linux和Windows之间的移植如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果要使某个特定的软件在一个平台上运行,而程序员/公司/所有人都希望将该软件移植到另一个平台上,那么究竟是怎么做的呢?我的意思是,它们是否只是将linux或Windows特定的引用重写为另一个?还是需要全部重写?

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 just rewrite linux or windows-specific references to the equivalent in the other? Or is an entire rewrite necessary?

只是试图了解是什么使它如此昂贵,以至于许多主要供应商没有将其软件移植到Linux(特别是考虑到Adobe)

Just trying to understand what makes it so cost-prohibitive that so many major vendors don't port their software to Linux (specifically thinking about Adobe)

谢谢

推荐答案

这是跨平台工具包(如qt或gtk)的重点,它们提供了与平台无关的API,该API委托程序编译到的平台

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.

这篇关于Linux和Windows之间的移植如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆