What are the processes of porting an application?
Hello,
If someone wants to porting an application from an operating system to another operating system, then he\she must rewrite that program from scratch? I'm thankful if users share their experiences. Thank you. |
I would say, have a look first in the language the application is written and if the same language is available in the target system. Then adapt. What application do you mean? a python / Cpp / .. in linux and move it to Windows?
|
@floppy_stuttgart I don't think the OP has porting from Linux to Windows in mind, given the fact the question is asked in the Solaris forum.
@n00b_noob No, the very idea of porting software from an OS to another OS is precisely to avoid rewriting all from scratch. Porting code means adapting the non portable portion of the source code to the target environment. Depending on how different the APIs and libraries are between the original and new system, some parts might need to be fully rewritten from scratch, or left out. |
Application written in C.
In Linux, I extracted it and run "./configure" file, but on Solaris, must I do the same processes and when I get any error then try to fix it? |
Quote:
|
porting software from one OS to another is not typically feasible because of link-loader and binary incompatibilities
Hello,
Typically you cannot "port" software between dissimilar operating systems because dependencies in dynamically (runtime) linked libraries and the actual construction of the binary executable itself is incompatible. The only case I know of where this true binary compatibilities, external libraries, etc., is between the SCO UNIX x86 environment and the Solaris x86 environment. Apparently Solaris x86 is actually SCO UNIX x86 and has full binary compatbility including linked libraries via the loader/linker. I've written compilers, interpreters, operating systems and advanced communication platforms on dozens of operating systems. Thanks, David |
Quote:
What kind of Solaris is it and what kind of software is it? (by the way a lot of linux tools are already ported to Solaris, there was a sunfreeware.net site, but it is now http://unixpackages.com/) |
You might get some pointers from the guys at slackware Arm, but you will probably find bits of code that worked just fine on the Sparc CPU but puke on x86_64. Likewise there will be differences in the toolchain. Joerg Schilling(sp?) the maintainer of cdrtools used to give long rants on the inferiority of the linux libc on the LKML and in the cdrtools documentation. I imagine the fact that all users of cdrtools were linux users gave him headaches.
|
Quote:
|
Quote:
Quote:
|
n00b_noob, you should state what you are trying to do. Then comments can deal with your problem.
|
All times are GMT -5. The time now is 11:43 PM. |