Export an application using Sparc architecture to intel x86

烂漫一生 提交于 2019-12-04 21:00:16

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.

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