LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   unix application on solaris/intel? (https://www.linuxquestions.org/questions/solaris-opensolaris-20/unix-application-on-solaris-intel-41419/)

chi 01-14-2003 06:50 AM

unix application on solaris/intel?
 
Hi
I want to know if it is possible to run a solaris application on a PC box , i mean solaris8/intel or solaris9/intel, if no why in the documentation found on the sun web site, they specify that solaris/intel and /sparc have the same system interfaces ?

Thanx.

jdc2048 01-14-2003 08:05 PM

a little more details would help. What application?, was it compiled for sparc or intel?

A program that is compiled on Sparc will not run on Intel, however if the source is available, then you should be able to compile the same source on Intel without any changes.

chi 01-16-2003 07:13 AM

Hi
My application runs actually on a sparc server , i have also the binarie , i don`t know if i can install it on a pc , it is probably compiled for sparc and the source code is not available !

This what i found in a sun web site :" (9.22) Will my application from Solaris/SPARC work on Solaris/x86? I have the source.

Yes and no. Generally applications that don't make assumptions about computer architecture will work. That is, code shouldn't depend on structure or union alignments, or in what order a number appears in a word ("big endian" SPARC or "little endian" Intel). Don't use functions labeled SPARC or x86 only in the man pages. In other words, "well-behaved" C (or other language) programs should recompile fine.

moses 01-16-2003 11:15 AM

If you only have a binary that is compiled for a SPARC, then it won't
run on an X86 machine. Once a program has been compiled, it is
no longer portable, even if the source code was.


All times are GMT -5. The time now is 05:29 PM.