Export an application using Sparc architecture to intel x86

拈花ヽ惹草 提交于 2019-12-22 01:34:22

问题


I'm using an application developed in Sun Solaris 8 and it depends of the architecture SPARC ( the application using some librairies of the system Solaris 8) .

Is it possible to export that application from SPARC to intel x86 ? Can i export also in another OS like Ubuntu, Windows or other ?

I hope that was clear and if you need more information i'll try to clarify. Thanks.


回答1:


I'm assuming we're talking about a native application here (a machine code binary).

Short answer: No to both questions.


Long answer:

Is it possible to export that application from SPARC to Intel x86?

Yes, but that would imply:

  • Fully reverse engineer it
  • Re-write in a suitable higher level language (e.g. C)
  • Compile for Intel x86

Can i export also in another OS like Ubuntu, Windows or other?

I assume you're talking about another OS running on SPARC architecture. If not, refer to previous answer. If yes, then you can, but you would have to:

  • Translate all system calls from Solaris to the new OS (this can range from relatively easy to very complicated depending on how different the OS architecture is).
  • Possibly modify ELF32 sections to conform to the new OS.

Additionally, for a non-UNIX target OS (e.g. Windows):

  • Rebuild the executable using the new OS executable format (e.g. NE, PE, LE...)

This is what pops on my head on a first thought.



来源:https://stackoverflow.com/questions/38991844/export-an-application-using-sparc-architecture-to-intel-x86

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