在Solaris 11 sparc和x86上只能使用一个源代码? [英] Just one source code can be used on Solaris 11 sparc and x86?

查看:124
本文介绍了在Solaris 11 sparc和x86上只能使用一个源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用PAM制作了一些访问控制程序,并且现在可以在Solaris 11 sparc和x86上对其进行编译.

I've made some access control program with PAM, and it can be compiled on Solaris 11 sparc and x86 now.

我知道sparc和x86之间的体系结构有所不同. 我会在每个平台上进行测试吗?或只是一个平台案例?

I know that the architecture is difference between sparc and x86. Would I test on each platform? or just one platform case?

谢谢,阅读.

推荐答案

如果不确切知道您的程序正在使用什么API和功能,很难说清楚,但是假设它在两种平台上都能很好地编译,并且在其中一种平台上都能正常工作,对方失败的风险非常低.

It is hard to tell without knowing precisely what APIs and features your program is using but assuming it compiles well in both platforms and works fine in one of them, the risk for it to fail in the other is extremely low.

Solaris是从单一源代码树构建的,并且具有极少的特定于体系结构的API/命令.较高的风险将是字节顺序的问题.

Solaris is built from single source trees and has an extremely low number of architecture specific APIs/commands. The higher risk would be an issue with endianness.

这篇关于在Solaris 11 sparc和x86上只能使用一个源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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