473,322 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 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 1505
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ganesh Tiwari | last post by:
i want to write a program, which works much like ldd command, which goes throgh c/c++ binary on solaris/SPARC and check whether it is possible to port it on to linux/intel. How do i do this? what...
2
by: Michael Sgier | last post by:
Hello i'm trying to port a windows program to linux with Kdevelop 1.question: unsigned char *LoadBitmapFile(char *filename, BITMAPINFOHEADER *bitmapInfoHeader); ...
4
by: Chris Travers | last post by:
Hi all; A few years ago, I set about porting a PHP application from MySQL to PostgreSQL, after realizing that MySQL wasn't going to be able to handle it. In order to do this, I built a light,...
1
by: Sunanda | last post by:
Hi, I am a newbie to .Net. I have an application in running in linux, a set of .c and .h files. I also have a makefile in linux to create the executable. I want to port this to windows...
4
by: Chuck Chopp | last post by:
I have an application that I originally built using Visual Studio .NET 2003 as native C++ . This application includes a template class that was derived from the string class that's part of the C++...
7
by: Lior | last post by:
Hi, I have small code, that compiles on Visual C++ into a shared library (DLL). I need to compile it under linux, but the code includes some data types I'm not familiar with, such as DWORD,...
3
by: James Egan | last post by:
I'm porting a legacy application from HP-UX to Linux. The va_start macro takes one argument under HP-UX, but takes two under Linux: va_start under HP-UX takes only one var: hp:/home/fredgrep...
0
by: Michael Palmer | last post by:
On Sep 16, 12:30 pm, binaryjesus <coolman.gu...@gmail.comwrote: I haven't tried it myself, but I came across a blog post the other day that describes a way of building windows installers for...
0
by: Ed Leafe | last post by:
On Oct 18, 2008, at 8:12 AM, Dotan Cohen wrote: Sorry for the delay in responding, but someone just pointed out this post to me. You might want to take a look at Dabo, which is an integrated...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.