skip to main content
10.1145/568173.568179acmconferencesArticle/Chapter ViewAbstractPublication PagespepmConference Proceedingsconference-collections
Article

Supporting objects in run-time bytecode specialization

Published:12 September 2002Publication History

ABSTRACT

This paper describes a run-time specialization system for the Java language. One of the main difficulties of supporting the full Java language resides in a sound yet effective management of references to objects. This is because the specialization process may share references with the running application that executes the residual code, and because side-effects through those references by the specialization process could easily break the semantics of the running application. To cope with these difficulties, we elaborate requirements that ensure sound run-time specialization. Based on them, we design and implement a run-time specialization system for the Java language, which exhibits, for instance, approximately 20-25% speed-up factor for a ray-tracing application.

References

  1. Affeldt, R. Supporting object-oriented features in run-time bytecode specialization. Master's thesis, University of Tokyo, Graduate School of Science, Department of Information Science, Sep. 2001.]]Google ScholarGoogle Scholar
  2. Andersen, L. O. Binding-time analysis and the taming of C pointers. In Partial Evaluation and Semantics-Based Program Manipulation (Jun. 1993), ACM Press, pp. 47--58.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Andersen, P. H. Partial evaluation applied to ray tracing. In Software Engineering in Scientific Computing (1996), W. Mackens and S. Rump, Eds., Vieweg, pp. 78--85.]]Google ScholarGoogle Scholar
  4. Asai, K. Integrating partial evaluators into interpreters. In Second International Workshop on Semantics, Applications and Implementation of Program Generation (Sep. 2001), vol. 2196 of Lecture Notes in Computer Science, Springer-Verlag.]]Google ScholarGoogle ScholarCross RefCross Ref
  5. Consel, C., and Noël, F. A general approach for run-time specialization and its application to C. In 23rd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (Jan. 1996), ACM Press, pp. 145--156.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Dean, J., Chambers, C., and Grove, D. Selective specialization for object-oriented languages. ACM SIGPLAN Notices 30, 6 (1995), 93--102.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Fujinami, N. Automatic run-time code generation in C++. In Scientific Computing in Object-Oriented Parallel Environments (1997), vol. 1343 of Lecture Notes in Computer Science, Springer-Verlag, pp. 9--16.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Fujinami, N. Determination of dynamic method dispatches using run-time code generation. In Types in Compilation (Mar. 1998), X. Leroy and A. Ohori, Eds., vol. 1473 of Lecture Notes in Computer Science, Springer-Verlag, pp. 253--271.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Grant, B., Mock, M., Philipose, M., Chambers, C., and Eggers, S. J. Annotation-directed run-time specialization in C. In ACM SIGPLAN Symposium on Partial Evaluation and Semantics-Based Program Manipulation (Jun. 1997), ACM Press, pp. 163--178.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Grant, B., Philipose, M., Mock, M., Eggers, S. J., and Chambers, C. An evaluation of staged run-time optimizations in DyC. In ACM SIGPLAN Conference on Programming Language Design and Implementation (May 1999), ACM Press.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Lea, D. Customization in C++. In C++ Conference (1990), pp. 301--314.]]Google ScholarGoogle Scholar
  12. Lee, P., and Leone, M. Optimizing ML with run-time code generation. In ACM SIGPLAN Conference on Programming Language Design and Implementation (1996), ACM Press, pp. 137--148.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Leone, M., and Lee, P. Lightweight run-time code generation. In ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation (Jun. 1994), ACM Press, pp. 97--106.]]Google ScholarGoogle Scholar
  14. Masuhara, H., and Yonezawa, A. A portable approach to dynamic optimization in run-time specialization. Journal of New Generation Computing 20, 1 (Nov. 2001), 101--124. An extended version of {15}.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Masuhara, H., and Yonezawa, A. Run-time bytecode specialization: A portable approach to generating optimized specialized code. In Programs as Data Objects (2001), O. Danvy and A. Filinski, Eds., vol. 2053 of Lecture Notes in Computer Science, Springer-Verlag, pp. 138--152.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Noël, F., Hornof, L., Consel, C., and Lawall, J. L. Automatic, template-based run-time specialization: Implementation and experimental study. In International Conference on Computer Languages (May 1998), IEEE, pp. 123--142.]]Google ScholarGoogle ScholarCross RefCross Ref
  17. Schultz, U. Partial evaluation for class-based object-oriented languages. In Programs as Data Objects (2001), O. Danvy and A. Filinski, Eds., vol. 2053 of Lecture Notes in Computer Science, Springer-Verlag, pp. 173--197.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Schultz, U., and Consel, C. Automatic program specialization for Java. Tech. rep., IRISA/INRIA, Rennes - LABRI, Nov. 2000. Available at http://www.daimi.au.dk/PB/551/PB-551.pdf.]]Google ScholarGoogle Scholar
  19. Schultz, U. P., Lawall, J. L., Consel, C., and Muller, G. Toward automatic specialization of Java programs. In 13th European Conference on Object-Oriented Programming (Jun. 1999).]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Thiemann, P. J. Correctness of a region-based binding-time analysis. In Mathematical Foundations of Programming Semantics, Thirteenth Annual Conference\/ (1997), vol. 6 of Electronic Notes in Theoretical Computer Science, Elsevier Science. Available at http://www.elsevier.nl/locate/entcs/volume6.html.]]Google ScholarGoogle Scholar
  21. Volanschi, E. N., Consel, C., Muller, G., and Cowan, C. Declarative specialization of object-oriented programs. In ACM SIGPLAN Conference on Object-Oriented Programming Systems, Languages, and Applications (1997), ACM Press.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Supporting objects in run-time bytecode specialization

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in
          • Published in

            cover image ACM Conferences
            ASIA-PEPM '02: Proceedings of the ASIAN symposium on Partial evaluation and semantics-based program manipulation
            September 2002
            152 pages
            ISBN:1581134584
            DOI:10.1145/568173

            Copyright © 2002 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 12 September 2002

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • Article

            Acceptance Rates

            ASIA-PEPM '02 Paper Acceptance Rate11of21submissions,52%Overall Acceptance Rate11of21submissions,52%

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader