Tuesday, October 7, 2008

MCS QUESTION # 4

Justify what situations or applications programmers will rather use Assembly Languages than Higher Level Progamming Languages and vice versa.Cite your reference.

Due: Sept. 25, 2008

Launch Java Applications from Assembly Language Programs
by
Biswajit Sarkar
Java Native Interface (JNI) is a mechanism that can be used to establish communication between native language programs and the Java virtual machine. The documentation for JNI and the technical literature on JNI deal extensively with interactions between the JVM and C/C++ code. The Java SDK even provides a utility to generate a header file to facilitate calling C/C++ programs from Java code. However, there is hardly any mention of Java and assembly language code working together. In an earlier article I showed how assembly language programs can be called from Java applications. Here I deal with the technique for invoking Java programs from an ASM process through a demo application that calls a Java method from assembly language code. The Java method brings up a Swing JDialog to show that it has, indeed, been launched.

No comments: