ComputingComputer ScienceInstrumentationProgramming LanguagesSoftware EngineeringApplication Programming InterfacesObject-oriented AnalysisRuntime SystemsSoftware ConstructionAspect-oriented ProgrammingCode EmissionCode InstrumentationIntermediate Code GenerationProgram InstrumentationRuntime InstrumentationVirtual Machines
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 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 learned while building a framework for code instrumentation in .NET.
9
Tzilla Elrad, Robert E. Filman, Atef Bader · Communications of the ACM · 2001 · 532 citations
Dynamic class loading in the Java virtual machine
Gilad Bracha · 1998 · 385 citations · Full text
Computational reflection in class based object-oriented languages
Jacques Ferber · 1989 · 189 citations · Full text
Automatic program transformation with JOIE
Geoff A. Cohen, Jeffrey S. Chase, David Kaminsky · 1998 · 135 citations
Language-independent aspect-oriented programming
Donal Lafferty, Vinny Cahill · 2003 · 107 citations · Full text