03-06-04 10: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
[ Post a follow-up to this message ]
|