Program portability

后端 未结 12 1086
栀梦
栀梦 2020-12-30 04:26

How to make sure that my program will be fully portable?

12条回答
  •  孤城傲影
    2020-12-30 04:58

    • Make it standards compliant. At least a common subset of the standard that is implemented by vendors on all platforms you intend to deploy your application on.

    • Factor out platform specific portions from platform-independent ones. Typically, the lowest layer or two should deal with the platform.

    • Keep abreast with changes of:

      • Platform/OS APIs
      • Tool chains
      • Language features
    • Test, Deploy. Rinse and repeat.

提交回复
热议问题