Thursday, May 31, 2018

Pushing the JNI Boundaries: Java Meets Assembly

The Java Native Interface (JNI) is used by developers to call native code compiled from other languages. Most online resources, including the Javadocs, showcase examples based on either C or C++. Nevertheless, is it possible to go a level lower and call code compiled from assembly without any intermediary C or C++ layer?

This article will walk you through a simple example. No prior knowledge of the JNI is necessary and only basic understanding of assembly fundamentals will be enough for you to survive this journey. The original source code is available on GitHub alongside a minimal build script.



from DZone.com Feed https://ift.tt/2LJuG5G

No comments:

Post a Comment