"Yoni Rabkin Katzenell" <yo****@actcom.com> a écrit dans le message de
news:m3************@jrwork.burla...
ra*******************@wipro.com (Raghavendra) writes:
Hi All,
I have one big system application, which is developed for HPUX and
Windows in C-language. I need to port it to Linux.
What all things do I need to consider to do this. Can you please
provide any information or any links to websites? I have searched
google, I couldn't find much information on this.
What the C language is concerned, it will port smoothly in 32
bits C is very portable, and HPUX has surely a C compiler...
Watch for includes that are sysyem-specific, but unix in
general is fairly standard. I see no big problems there.
The windows code will run well under windows. If you
want to port it you will have to buy a windows simulator
under Linux. There are many around.
In a language level, windows code will need a microsoft
C emulator, i.e. you will need a compiler that understands
__stdcall, an important microsoft extension, if you use it
in your source code. Fortunately, this are very small
modifications.
gcc is able to run under windows, so probably at a
language level you will see no problems, if you
buy an emulator.
The alternative is rewriting. Rewrite windows code
in X11 or in one of the toolkits of linux.
This is a big undertaking however.
jacob