Integrating the Intel(R) C++ Compiler for Android* with multiple Android NDKs

By Jennifer L Jiang, Published: 11/18/2014, Last Updated: 11/11/2014

The Intel(R) C++ Compiler for Android* supports multiple Android NDKs usually (please check the product release notes for details).

The Intel C++ Compiler is integrated into one Android NDK specified during installation just like before. If there are multiple Android NDK installed, the script tool below coming with Intel C++ Compiler for Android can be used for integrating to additional Android NDK:

  • [icc-install-dir]/toolchains/ndk_integration.sh on Linux* or OS X*
  • [icc-install-dir]\toolchains\ndk_integration.cmd on Windows*
     

To integrate the Intel C++ Compiler for Android to a different Android NDK, follow the steps below:

  1. Assume that:
    • Intel C++ Compiler for Android is installed to [icc-install-dir]
    • The additional Android NDK is installed to [new-ndk-dir]
  2. On Linux* or OS X*:
    • Open a terminal window
    • cd [icc-install-dir]/toolchains/
    • ./ndk_integration.sh [new-ndk-dir]
    After running above commands, the Intel C++ compiler toolchain should be installed to [new-ndk-dir]/toolchains/x86-icc. "x86-icc" will be available in the ndk build environment.
  3. On Windows*:
    • Open a command window
    • cd [icc-install-dir]\toolchains\
    • .\ndk_integration.cmd [new-ndk-dir]
    After running above commands, the Intel C++ compiler toolchain “x86-icc” will be available in the ndk build environment.should be installed to [new-ndk-dir]\toolchains\x86-icc. "x86-icc" will be available in the ndk build environment.

This sample applies to:
    Products: Intel® System Studio
    Host OS: Windows (IA-32, Intel® 64); OS X*; Linux*
    Target OS: Android*

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804