skip to main content
10.1145/1028664.1028754acmconferencesArticle/Chapter ViewAbstractPublication PagessplashConference Proceedingsconference-collections
Article

RAIL: code instrumentation for .NET

Published:23 October 2004Publication History

ABSTRACT

Code instrumentation is a mechanism that allows modules of programs to be completely rewritten at runtime. With the advent of virtual machines, this type of functionality is becoming more and more interesting because it allows the introduction of new functionality after an application has been deployed, easy implementation of aspect-oriented programming, performing security verifications, dynamic software upgrading, among others.

The Runtime Assembly Instrumentation Library (RAIL) is one of the first frameworks to implement code instrumentation in the.NET platform. It specifically addresses the limitations that exist between the reflection capabilities of.NET and its code emission functionalities. RAIL gives the programmer an object-oriented vision of the code of an application, allowing assemblies, modules, classes, references and even intermediate code to be easily manipulated.

This paper addresses the design of an implementation of RAIL along with the difficulties and lessons learnt in building a framework for code instrumentation in.NET.

References

  1. Syme, D. ILX: Extending the.NET Common IL for Functional Language Interoperability, MS Research, Cambridge, September 2001. Available at: http://research.microsoft.com/projects/ilx.Google ScholarGoogle Scholar
  2. Lam, J. Cross-Language Load-Time Aspect Weaving on Microsoft's Common Language Runtime. Demonstration at the AOSD2002, Netherlands, 2002.Google ScholarGoogle Scholar
  3. Lafferty, D., and Cahill, V. Language-Independent Aspect-Oriented Programming. In Proc. OOPSLA 2003 <http://oopsla.acm.org/oopsla2003/>, Anaheim, USA, October 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Dahm, M. Byte Code Engineering. In JIT '99, Düsseldorf, Germany, September 1999.Google ScholarGoogle Scholar
  5. Cohen, G., Chase, J., and Kaminsky, D. Automatic Program Transformation with JOIE. In USENIX 1998 Annual Technical Conference, New Orleans, USA, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Chiba, S., and Nishizawa M. An Easy-to-Use Toolkit for Efficient Java Bytecode Translators <http://www.csg.is.titech.ac.jp/paper/chiba-gpce03.pdf>. In Proc. GPCE '03, LNCS 2830, Springer-Verlag, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Ferber, J. Computational Reflection in Class Based Object-Oriented Languages. In Proc. OOPSLA '89, New Orleans, USA, October 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. J. Malenfant, C. Dony, and P. Cointe. Behavioral Reflection in a Prototype-Based Language. In Proc. IMSA '92, Tokyo, 1992.Google ScholarGoogle Scholar
  9. BCEL Project, Apache Software Foundation, 2003. Available at: http://jakarta.apache.org/bcel/projects.html.Google ScholarGoogle Scholar
  10. Keller, R., and Hölzle, U., Binary Component Adaptation. In Proc. ECOOP '98, Brussels, Belgium, July 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. RAIL: code instrumentation for .NET

      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
        OOPSLA '04: Companion to the 19th annual ACM SIGPLAN conference on Object-oriented programming systems, languages, and applications
        October 2004
        348 pages
        ISBN:1581138334
        DOI:10.1145/1028664

        Copyright © 2004 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: 23 October 2004

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Upcoming Conference

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader