473,372 Members | 1,115 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,372 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 1506
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.