A Code Generation Framework for Actor-Oriented Models with Partial Evaluation
- Cite this paper as:
- Zhou G., Leung MK., Lee E.A. (2007) A Code Generation Framework for Actor-Oriented Models with Partial Evaluation. In: Lee YH., Kim HN., Kim J., Park Y., Yang L.T., Kim S.W. (eds) Embedded Software and Systems. ICESS 2007. Lecture Notes in Computer Science, vol 4523. Springer, Berlin, Heidelberg
Embedded software requires concurrency formalisms other than threads and mutexes used in traditional programming languages like C. Actor-oriented design presents a high level abstraction for composing concurrent components. However, high level abstraction often introduces overhead and results in slower system. We address the problem of generating efficient implementation for the systems with such a high level description. We use partial evaluation as an optimized compilation technique for actor-oriented models. We use a helper-based mechanism, which results in flexible and extensible code generation framework. The end result is that the benefit offered by high level abstraction comes with (almost) no performance penalty. The code generation framework has been released in open source form as part of Ptolemy II 6.0.1.
Unable to display preview. Download preview PDF.