We present a new approach to extend the tokenisation scheme used in Java Card to allow for both invoke-virtual and invokeinterface calls to be dispatched using the same virtual method table. An algorithm is described for token assignment to identify methods that can use the same token, even in the presence of interfaces. As a consequence much of the string data in the class files is no longer required at runtime, resulting in compression of the class files by a factor of two. This is applied to the Java 2 Micro Edition (J2ME) platform and simplifies the method dispatch process to the point where it can be implemented directly in hardware.
Citation:
Shawn Haggett, Greg Knowles, Graham Bignell, "Tokenisation of Class Files for an Embedded Java Processor," icis, pp.375-381, 6th IEEE/ACIS International Conference on Computer and Information Science (ICIS 2007), 2007