问题
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