Quote:
|
See logically i could port a Red Hat Application to SuSe, without necessarily having its source code.
|
That should be easy, but is not what is ussually called porting.
Quote:
|
I do understand that the difference in kernel of Solaris and Linux Kernel may be quite a lot, but what i want to know is to what extent are the two kernels different?
|
The kernels are certainly somewhat different, but far much closer that say Linux and Windows. But why are you focusing on the kernel ? There are many issues that may arise before you reach the kernel.
If you have no source code, I suppose all you got are binary executable files plus possibly some text/data/script files.
You first have to make sure these binaries are in some way compatible with the target system.
For example if the binaries are for Solaris on SPARC, and you target system is some Linux distro on x86, you can be sure the binary is uncompatible.
If both are x86, you have to make sure the executable format is compatible. Here again, although Linux has switched to Solaris format (ELF) a while ago, they are not strictly compatible, so you need some kind of emulation techniques to try having this software run in the other environment. One available is lxrun, that allows some application to run. Another not yet available is LAE (Linux Application Environment) from Sun, that will allow the same kind of thing, here again I guess only if your original program is for Solaris on x86.
Quote:
|
I suppose some memory mapping and scheduling techniques differ... but to what extent could these differences stop me from porting the application?
|
Again, you are not going to port the application as you haven't the source code, but really you want to try to adapt the application environment for it to run properly.
Finally, you may also try a different way, based on virtual machine emulation, commercial (VMware, ...) and free (Qemu, ...) products exists that will allow you to install Solaris in a virtual environment, itself running on Linux. Depending on if the CPU architecture match, you may also find it worthing to be investigated.