A Code Generation Framework for Actor-Oriented Models with Partial Evaluation

  • Gang Zhou
  • Man-Kit Leung
  • Edward A. Lee
Conference paper

DOI: 10.1007/978-3-540-72685-2_19

Part of the Lecture Notes in Computer Science book series (LNCS, volume 4523)
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

Abstract

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.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer Berlin Heidelberg 2007

Authors and Affiliations

  • Gang Zhou
    • 1
  • Man-Kit Leung
    • 1
  • Edward A. Lee
    • 1
  1. 1.University of California, Berkeley 

Personalised recommendations