Intel compiler targets Android OS
Intel has released its C++ Compiler v13.0 for Android OS, highlights The Register, targeting Android Native Development. Intel promises “Industry leading app performance on Intel processor-based Android devices”.
Android Native Development is the means by which you can develop parts of your Android application using code other than Java – that you can drop down into using C or C++ in certain parts of functionality for performance reasons. The Android NDK (Native Development Kit) is available for three platforms: Windows, Mac OS X (Intel) and Linux 32/64-bit (x86).
Neil McAllister writes:
In an unusual move, Intel is making this first version of its Android compiler available as a free download for a limited time. By comparison, Intel C++ Composer XE 2013, Chipzilla’s C++ tools collection for desktop operating systems, retails for $699 (£450) for Windows, Linux, or OS X. The company isn’t saying how long the tools will be available for no charge, or what will happen after that.
See also: What is… Android Native Development?
Within the Android framework, there are two ways to use native code.
First, write apps using the Android framework and then use the JNI (Java Native Interface) to access the APIs provided by the Android NDK. The JNI enables code running in a Java Virtual Machine to call libraries written in other languages, such as C. This technique allows you to take advantage of the convenience of the Android framework, but still allows you to write native code when necessary, says Google.
Second, within an application, handle activity lifecycle callbacks (such as
onResume()) in your own native code. Applications that use such native activities must be run on Android 2.3 (API Level 9) or later, says Google. Certain features of the Android framework will not be available.