什么是可移植性?! [英] What is Portability?!

查看:324
本文介绍了什么是可移植性?!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

程序员和开发人员...
请帮我了解可移植性的含义..
是依靠硬件还是依靠软件?!
在Windows中,可执行文件应为(.exe)格式,但在Linux中,则应为另一种格式,那么如何将一个程序构建到多个平台上呢? 我希望给我一个小例子...
最后,C#是否具有可移植性??

Hi, Programmers and Developers...
Please, Help me to understand what meaning of Portability..
Is it depend on Hardware or Software?!
In Windows executable file should be in (.exe) format, but in Linux it is another format, So how can build one program to multiple platforms?!
and I hope give me tiny example about it...
Finaly, Is C# Portability!?

推荐答案

如果该软件可以在许多不同的处理器体系结构上进行编译,链接和执行,则它们是可移植的.

通常,在实现软件体系结构或设计时,可移植性不是主要问题.结果,大量因素会降低便携性.

例如,如果设计指定使用.Net框架,则最终的软件将很难(而且非常昂贵)移植到未安装.Net框架的另一个处理器上.同样,如果使用了许多第三方供应商软件库,则如果目标计算机上不存在这些库,则可移植性也会受到不利影响.

通常,可移植性是一个软件问题.使用通用语言(例如C)可以提高成功将产品从一台机器移植到另一台机器的机会.另一方面,即使在提高C#的可移植性方面已经取得了长足进步,C#也不是一种可移植的语言.
Software is portable if it can be compiled, linked, and executed on a number of different processor architectures.

Usually, portability is not a primary concern when a software architecture or design is being implemented. As a result, a large number of factors can decrease the portability.

For example, if the design specifies the use of the .Net framework, the resulting software will be difficult (and very expensive) to port to another processor that does not have the .Net framework installed. Likewise, if a number of third party vendor software libraries are used, portability will be adversely affected if those libraries are not available on a target machine.

Generally, portability is a software issue. Using a common language, such as C, improves the chances of successfully porting a product from one machine to another. C# on the other hand is not a portable language even though strides have been made to improve its portability.


这篇关于什么是可移植性?!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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