摘要 |
Methods of development and compilation of cross-platform software are provided. Through the use of platform-specific libraries, software can be written using only platform-independent instructions and then compiled for one or more different platform targets. In the compilation process, a compiler can obtain a target platform. Then, the compiler can select a platform-specific library associated with that target platform. A platform-independent instruction can then be obtained by parsing source code, for example. The compiler can then link the platform-independent instruction with a platform-specific instruction of the selected platform-specific library. This can allow cross-platform software to be written using only platform-independent instructions, and platform-specific instructions can be linked automatically when compiling the software for a specific target platform. |