|
Home > Archive > Unix Programming > March 2004 > Porting to Linux.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Raghavendra 2004-03-06, 3:33 am |
| 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.
| |
| Richard Heathfield 2004-03-06, 5:33 am |
| 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 : binary@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
| |
| Derk Gwen 2004-03-06, 8:33 am |
| raghavendra.dhayapule@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?
| |
| Kasper Dupont 2004-03-06, 11:34 am |
| 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:aaarep@daimi.au.dk
/* Would you like fries with that? */
| |
| Duke Robillard 2004-03-17, 4:41 pm |
| Richard Heathfield wrote:
> In comp.lang.c, Raghavendra wrote:
>
>
> If you wrote it in C, just recompile on the new platform. Job done. C is
> platform-independent.
Bwahahahahahaha!
:-)
Duke
|
|
|
|
|