移植问题? [英] porting issues ?

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

问题描述



可以描述当我们尝试将b用C语言编写的软件移植到另一个平台时会遇到的问题,其中一些是

字节顺序,对齐方式,数据类型等?


如果你可以说明解决方案以及

问题,那将是非常有帮助的。也可以你能给我一些指示和指向

文件的链接,以便轻松完成移植吗?


Navin

-

Hi,
Can somone please describe the problems one would face when we try
to port a software written in C to another platform some of them being
endianness ,alignment,data types etc ?

It would be very helpful if you could state the solution along with
problem .Also can you please give me some pointers and links to
documents so that porting can be easily accomplished ?

Navin
-

推荐答案



" navin_2016" < NA ******** @ yahoo.co.in> schrieb im Newsbeitrag

news:26 ************************** @ posting.google.c om ...

"navin_2016" <na********@yahoo.co.in> schrieb im Newsbeitrag
news:26**************************@posting.google.c om...

可以描述当我们尝试将用C编写的软件移植到另一个平台时会遇到的问题,其中一些是
endianness,对齐,数据类型等?


只要您严格遵守C标准

(这很少可能),应该没有问题。

如果你将非标准的东西放入单独的编译单元,移植将至少比你在任何地方混合标准和非标准的东西

更容易。

如果你可以说明解决方案和
问题,那将非常有帮助。你能否给我一些指示和链接到
文件,以便轻松完成移植?
Navin
-
Hi,
Can somone please describe the problems one would face when we try
to port a software written in C to another platform some of them being
endianness ,alignment,data types etc ?
There should be no problem as long as you strictly adhere to the C standard
(which is seldom possible).
If you put nonstandard stuff into separate compilation units, porting will
at least be easier than if you mix standard and nonstandard things
everywhere.
It would be very helpful if you could state the solution along with
problem .Also can you please give me some pointers and links to
documents so that porting can be easily accomplished ?

Navin
-



navin_2016写道:
navin_2016 wrote:

可以somone请描述一个人将面临的问题当我们尝试将用C编写的软件移植到另一个平台时,它们是字节序,对齐,数据类型等吗?

Can somone please describe the problems one would face when we
try to port a software written in C to another platform some of
them being endianness ,alignment,data types etc ?




如果你遵守C标准,你应该没有任何问题

任何这些,除非使用二进制fi由

其他系统创建或使用的文件。您可以通过使用文本来避免。


-

Chuck F(cb********@yahoo.com)(cb * *******@worldnet.att.net)

可用于咨询/临时嵌入式和系统。

< http://cbfalconer.home.att达网络>使用worldnet地址!



If you adhere to the C standard, you should have no problems with
any of those, barring the use of binary files created or used by
other systems. That you can avoid by using text.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!


CBFalconer写道:
CBFalconer wrote:

如果你遵守C标准,你应该没有
其中任何一个的问题,除非使用其他系统创建或使用的二进制文件。您可以通过使用文本来避免。

If you adhere to the C standard, you should have no problems with
any of those, barring the use of binary files created or used by
other systems. That you can avoid by using text.




您能解释一下您所指的具体问题

对二进制文件的影响吗?


-Kevin

-

我的电子邮件地址有效,但会定期更改。

联系请使用最近发布的地址。



Could you explain what specific problems you are referring to with
respect to binary files?

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.


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

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