java 在芯片上运行的方法

3.3. Java Native Interface
A distinction is made between programs compiled for the virtual machine and
programs compiled to run on a speci c computation platform, like Intel x86 or
ARM. Programs compiled for a speci c platform are called native. Because Java
is executed in a virtual machine with its own byte-code, no native code can be
executed directly. Due to the need to access low-level os mechanism like kernel
calls, Java has to overcome this obstacle. This is done by the Java native interface
(JNI) [22], which allows Java to execute compiled code from libraries written in
other languages, e.g. C++. This is a trade-o between gaining capabilities of
accessing the system and decreasing the level of security in Java.

你可能感兴趣的:(操作系统)