472,090 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,090 software developers and data experts.

Porting to Linux.

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.
Nov 14 '05 #1
6 1457
In comp.lang.c, 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.


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.

--
Richard Heathfield : bi****@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #2
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.

Thanks for the help,

ragards,
raghavendra.


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

--
"Cut your own wood and it will warm you twice"
Regards, Yoni Rabkin Katzenell
Nov 14 '05 #3
ra*******************@wipro.com (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.

--
Derk Gwen http://derkgwen.250free.com/html/index.html
Haven't you ever heard the customer is always right?
Nov 14 '05 #4
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.


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.

--
Kasper Dupont -- der bruger for meget tid paa usenet.
For sending spam use mailto:aa****@daimi.au.dk
/* Would you like fries with that? */
Nov 14 '05 #5
Frédéric Liné wrote:
Yoni Rabkin Katzenell <yo****@actcom.com> writes:

"Cut your own wood and it will warm you twice"

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
--
Artie Gold -- Austin, Texas

"Yeah. It's an urban legend. But it's a *great* urban legend!"
Nov 14 '05 #6

"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
Nov 14 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ganesh Tiwari | last post: by
2 posts views Thread by Michael Sgier | last post: by
4 posts views Thread by Chris Travers | last post: by
1 post views Thread by Sunanda | last post: by
7 posts views Thread by Lior | last post: by
3 posts views Thread by James Egan | last post: by
reply views Thread by Michael Palmer | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.