Preserving app functions when porting to Linux

Preserving app functions when porting to Linux

If I have an app running on Unix that uses platform-specific features, what is the best way to preserve those functions when I port it to Linux?

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

The purpose of platform-specific features are usually to optimize the environment on the hardware that it runs on. I'm not aware of any tool that will allow you to preserve those kinds of functions when porting to Linux on another platform. The only way to get around this is by using hardware that supports Unix, Linux and certain functions on both platforms. IBM is an example of a company that does this. It provides for Advanced Power Virtualization features on both Unix (AIX) and Linux (RHEL4 & SLES9+) running on it's p5 servers. This is because IBM enhanced the kernel on both operating systems to provide for the common functionality, which also allows for the sharing of processors between separate Linux and Unix partitions.

It is generally considered good programming practice NOT to use platform-specific features when writing code, in order to limit the amount of problems when porting to different architectures. To further answer your question, I would need to know more specifics about the application that uses these platform-specific features. My guess is, that you won't be able to preserve much.

This was first published in September 2006