 This obviously requires a duplication of effort in maintaining the code, but can be worthwhile where the amount of platform-specific code is high.This strategy relies on having one codebase that may be compiled to multiple platform-specific formats.One technique is conditional compilation.