<s>
The	O
Android	B-Application
Native	B-Application
Development	I-Application
Kit	I-Application
(	O
NDK	O
)	O
provides	O
a	O
cross-compiling	B-Application
tool	O
for	O
compiling	B-Language
code	O
written	O
in	O
C/C	O
++	O
can	O
be	O
compiled	B-Language
to	O
ARM	B-Architecture
,	O
or	O
x86	B-Operating_System
native	B-Language
code	I-Language
(	O
or	O
their	O
64-bit	B-Device
variants	I-Device
)	O
for	O
Android	B-Application
.	O
</s>
<s>
The	O
NDK	O
uses	O
the	O
Clang	B-Application
compiler	B-Language
to	O
compile	B-Language
C/C	O
++	O
.	O
</s>
<s>
GCC	B-Application
was	O
included	O
until	O
NDK	O
r17	O
,	O
but	O
removed	O
in	O
r18	O
in	O
2018	O
.	O
</s>
<s>
Native	O
libraries	O
can	O
be	O
called	O
from	O
Java	O
code	O
running	O
under	O
the	O
Android	B-Application
Runtime	I-Application
using	O
System.loadLibrary	O
,	O
part	O
of	O
the	O
standard	O
Android	B-Application
Java	O
classes	O
.	O
</s>
<s>
Command-line	O
tools	O
can	O
be	O
compiled	B-Language
with	O
the	O
NDK	O
and	O
installed	O
using	O
adb	O
.	O
</s>
<s>
Android	B-Application
uses	O
Bionic	B-Application
as	O
its	O
C	B-Language
library	O
,	O
and	O
the	O
LLVM	O
libc++	O
as	O
its	O
C++	B-Language
Standard	I-Language
Library	I-Language
.	O
</s>
<s>
The	O
NDK	O
also	O
includes	O
a	O
variety	O
of	O
other	O
APIs	O
:	O
zlib	B-Language
compression	O
,	O
OpenGL	B-Application
ES	I-Application
or	O
Vulkan	B-Application
graphics	O
,	O
OpenSL	B-Library
ES	I-Library
audio	O
,	O
and	O
various	O
Android-specific	O
APIs	O
for	O
things	O
like	O
logging	O
,	O
access	O
to	O
cameras	O
,	O
or	O
accelerating	O
neural	O
networks	O
.	O
</s>
<s>
The	O
NDK	O
includes	O
support	O
for	O
CMake	B-Language
and	O
its	O
own	O
ndk-build	O
(	O
based	O
on	O
GNU	B-Application
Make	I-Application
)	O
.	O
</s>
<s>
Android	B-Application
Studio	O
supports	O
running	O
either	O
of	O
these	O
from	O
Gradle	O
.	O
</s>
<s>
For	O
CPU	O
profiling	O
,	O
the	O
NDK	O
also	O
includes	O
simpleperf	O
which	O
is	O
similar	O
to	O
the	O
Linux	B-Application
perf	I-Application
tool	I-Application
,	O
but	O
with	O
better	O
support	O
for	O
Android	B-Application
and	O
specifically	O
for	O
mixed	O
Java/C	O
++	O
stacks	O
.	O
</s>
