On-the-Fly Metadata Stripping for Embedded Java Operating Systems

  • Christophe Rippert
  • Damien Deville
Conference paper
Part of the IFIP International Federation for Information Processing book series (IFIPAICT, volume 153)


Considering the typical amount of memory available on a smart card, it is essential to minimize the size of the runtime environment to leave as much memory as possible to applications. This paper shows that on-the-fly constant pool packing can result in a significant reduction of the memory footprint of an embedded Java runtime environment. We first present Jits, an architecture dedicated to building fully-customized Java runtime environments for smart cards. We then detail the optimizations we have implemented in the class loading mechanism of Jits to reduce the size of the loaded class constant pool. By suppressing constant pool entries as they become unnecessary during the class loading process, we manage to compact constant pools of loaded classes to less than 8% of their initial size. We then present the results of our mechanism in term of constant pool and class size reductions, and conclude by suggesting some more aggressive optimizations.


Java class loading constant pool packing embedded virtual machine 


  1. [Bizzotto and Grimaud, 2002]
    Bizzotto, G. and Grimaud, G. (2002). Practical Java Card Bytecode Compression. In Proceedings of RENPAR14 / ASF / SYMPA.Google Scholar
  2. [Chen, 2000]
    Chen, Z. (2000). Java Card Technology for Smart Cards: Architecture and Programmer’s Guide. Addison Wesley.Google Scholar
  3. [Deville et al., 2003]
    Deville, D., Galland, A., Grimaud, G., and Jean, S. (2003). Smart Card operating systems: Past, Present and Future. In The 5th NORDU/USENIX Conference.Google Scholar
  4. [Lindholm and Yellin, 1999]
    Lindholm, T. and Yellin, F. (1999). The Java Virtual Machine Specification, Second Edition. Addison Wesley.Google Scholar
  5. [Rippert and Hagimont, 2001]
    Rippert, C. and Hagimont, D. (2001). An evaluation of the Java Card environment. In Proceedings of the Advanced Topic Workshop “Middleware for Mobile Computing”.Google Scholar
  6. [Schwabe and Susser, 2003]
    Schwabe, J. E. and Susser, J. B. (2003). Token-Based Linking. US Patent Application number US 2003/0028686 A1.
  7. [Sun Microsystems, 2000]
    Sun Microsystems (2000). J2ME Building Blocks for Mobile Devices.
  8. [Sun Microsystems, 2002]
    Sun Microsystems (2002). The CLDC Hotspot Implementation Virtual Machine.
  9. [The J-Consortium, 2002]
    The J-Consortium (2002). JEFF Draft Specification

Copyright information

© Springer Science + Business Media, Inc. 2004

Authors and Affiliations

  • Christophe Rippert
    • 1
  • Damien Deville
    • 1
  1. 1.INRIA Futurs, IRCICA/LIFL, USTL-Lille 1France

Personalised recommendations