Porting to Linux.

R

Raghavendra

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.

Thanks for the help,

ragards,
raghavendra.
 
R

Richard Heathfield

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.

If you wrote it in C, just recompile on the new platform. Job done. C is
platform-independent.

If you used extensions to the language, then porting those will involve
finding out which extensions were used, and whether a local equivalent
exists on the new platform, and then rewriting as appropriate. Such
extensions are off-topic in comp.lang.c, however.

To avoid porting headaches in future: if you must use platform extensions,
at least try to isolate their use into separate modules, so that only those
modules need be replaced when you move from one platform to another.
 
Y

Yoni Rabkin Katzenell

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.

Thanks for the help,

ragards,
raghavendra.

The above question is out of the scope of comp.lang.c.
 
D

Derk Gwen

(e-mail address removed) (Raghavendra) wrote:
# 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.

Give me the contract for the port, and you won't have to worry about
it anymore.
 
K

Kasper Dupont

Raghavendra said:
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.

Just try to compile it on Linux exactly the way you
would have done on HPUX. There might be a few problems
you need to solve before it will work, but exactly
how many and which depends on your application.
 
A

Artie Gold

Frédéric Liné said:
Dear Yoni,

I'm afraid the wood can only warm you once wether it's cut by yourself
or not.
I guess you've never cut wood. ;-)

--ag
 
J

jacob navia

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top