• DocumentCode
    3532446
  • Title

    A Fast Algorithm to Compute Heap Memory Bounds of Java Card Applets

  • Author

    Pham, Tuan-Hung ; Truong, Ninh-Thuan ; Truong, Anh-Hoang ; Chin, Wei-Ngan

  • Author_Institution
    Coll. of Technol., Vietnam Nat. Univ., Hanoi
  • fYear
    2008
  • fDate
    10-14 Nov. 2008
  • Firstpage
    259
  • Lastpage
    267
  • Abstract
    In this paper, we present an approach to find upper bounds of heap space for Java Card applets. Our method first transforms an input bytecode stream into a control flow graph (CFG), and then collapses cycles of the CFG to produce a directed acyclic graph (DAG). Based on the DAG, we propose a linear-time algorithm to solve the problem of finding the single-source largest path in it. We also have implemented a prototype tool, tested it on several sample applications, and then compared the bounds found by our tool with the actual heap bounds of the programs. The experiment shows that our tool returns good estimation of heap bounds, runs fast, and has a small memory footprint.
  • Keywords
    Java; computational complexity; data flow graphs; storage management; Java Card Applet; control flow graph; directed acyclic graph; heap memory bound computation; input bytecode stream transformation; linear-time algorithm; single-source largest path; Application software; Costs; Flow graphs; Java; Memory management; Resource management; Smart cards; Space technology; Upper bound; Virtual machining; Java Card; Static analysys; heap bound;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering and Formal Methods, 2008. SEFM '08. Sixth IEEE International Conference on
  • Conference_Location
    Cape Town
  • Print_ISBN
    978-0-7695-3437-4
  • Type

    conf

  • DOI
    10.1109/SEFM.2008.30
  • Filename
    4685813