Just one source code can be used on Solaris 11 sparc and x86?

ε祈祈猫儿з 提交于 2019-12-13 02:14:32

问题


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

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

thank you, read it.


回答1:


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 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.



来源:https://stackoverflow.com/questions/29230671/just-one-source-code-can-be-used-on-solaris-11-sparc-and-x86

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!