Transformation of Pipeline Stage Algorithms to Event-Driven Code
Michal Brabec, David Bednárek, Petr Malý · 2014
Abstract: Many software systems publish their interface using event-driven programming, where the application programmers create routines, called as responses to the events. One of such systems is the Bobox parallel frame-work, where the elements of a parallel pipeline react to events signalizing the arrival of input data. However, many algorithms are more efficiently described using classical serial approach, where the application code calls system routines to wait for required events. In this paper, we present a method of code transformation producing event-driven code from serial code and we concentrate mostly on its first part, responsible for the management of variables. Besides a friendlier programming environment, the trans-formation often improves the structure of the code with respect to compiler optimizations. 1