Re: Porting binaries from Solaris/SPARC to Linux/Intel

kamalp@acm.org (Kamal R. Prasad)
11 Aug 2004 13:00:03 -0400

          From comp.compilers

Related articles
Porting binaries from Solaris/SPARC to Linux/Intel ganeshnt@s7solutions.com (2004-08-10)
Re: Porting binaries from Solaris/SPARC to Linux/Intel Jeffrey.Kenton@comcast.net (Jeff Kenton) (2004-08-11)
Re: Porting binaries from Solaris/SPARC to Linux/Intel dido@imperium.ph (2004-08-11)
Re: Porting binaries from Solaris/SPARC to Linux/Intel gah@ugcs.caltech.edu (glen herrmannsfeldt) (2004-08-11)
Re: Porting binaries from Solaris/SPARC to Linux/Intel kamalp@acm.org (2004-08-11)
Re: Porting binaries from Solaris/SPARC to Linux/Intel tesneddon@bigpond.com (Tim E Sneddon) (2004-08-13)
Re: Porting binaries from Solaris/SPARC to Linux/Intel bmitchel@gmail.com (2004-08-15)
| List of all articles for this month |

From: kamalp@acm.org (Kamal R. Prasad)
Newsgroups: comp.compilers
Date: 11 Aug 2004 13:00:03 -0400
Organization: http://groups.google.com
References: 04-08-057
Keywords: translator
Posted-Date: 11 Aug 2004 13:00:03 EDT

ganeshnt@s7solutions.com (Ganesh Tiwari) wrote in message news:04-08-057...
> i want to write a program, which works much like ldd command, which
> goes throgh c/c++ binary on solaris/SPARC and check whether it is
> possible to port it on to linux/intel. How do i do this? what are
> the parameters to look for in binaries for porting. Any guide lines
> in this direction would be world of good to me. Please reply to this
> fast, i am running out of time.


If your code is POSIX compliant, it should be portable across UNIX'es
for the most part. Look for a list of solaris-only libraries (path
would be a good hint) in the ldd output to decide on the same.


> [Uh, how are you planning to turn the SPARC instructions into x86
> instructions? I'd think that library calls would be the least of
> your problems. -John]


I suppose he means that after resolving all dependencies, he wants to
give a go-ahead to re-compile the program on Intel/Linux. Mapping
instructions may not be an intractable problem -at least x86
instruction set to SPARC does work as WABI(windows application binary
interface) would attest to.


regards
-kamal


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.