Runtime Bytecode Transformation for Smalltalk

Denker, Marcus; Ducasse, Stéphane; Tanter, Éric (2006). Runtime Bytecode Transformation for Smalltalk. Computer languages, systems & structures, 32(2-3), pp. 125-139. Elsevier 10.1016/

[img] Text
1-s2.0-S1477842405000436-main.pdf - Published Version
Restricted to registered users only
Available under License Publisher holds Copyright.

Download (279kB) | Request a copy

Transforming programs to alter their semantics is of wide interest, for purposes as diverse as off-the-shelf component adaptation, optimization, trace generation, and experimentation with new language features. The current wave of interest in advanced technologies for better separation of concerns, such as aspect-oriented programming, is a solid testimony of this fact. Strangely enough, almost all proposals are formulated in the context of Java, in which tool providers encounter severe restrictions due to the rigidity of the environment. This paper present ByteSurgeon, a library to transform binary code in Smalltalk. ByteSurgeon takes full advantage of the flexibility of the Squeak environment to enable bytecode transformation at runtime, thereby allowing dynamic, on-the-fly modification of applications. ByteSurgeon operates on bytecode in order to cope with situations where the source code is not available, while providing appropriate high-level abstractions so that users do not need to program at the bytecode level. We illustrate the use of ByteSurgeon via the implementation of method wrappers and a simple MOP, and report on its efficiency.

Item Type:

Journal Article (Original Article)


08 Faculty of Science > Institute of Computer Science (INF)
08 Faculty of Science > Institute of Computer Science (INF) > Software Composition Group (SCG)

UniBE Contributor:

Denker, Marcus


000 Computer science, knowledge & systems








Manuela Bamert

Date Deposited:

16 Oct 2017 11:39

Last Modified:

17 Oct 2017 21:08

Publisher DOI:





Actions (login required)

Edit item Edit item
Provide Feedback