skip to main content
10.1145/2245276.2232092acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
poster

A comparison of two metacompilation approaches to implementing a complex domain-specific language

Published: 26 March 2012 Publication History

Abstract

Operational semantics and attribute grammars are examples of formalisms that can be used for generating compilers. We are interested in finding similarities and differences in how these approaches are applied to complex languages, and for generating compilers of such maturity that they have users in industry.
As a specific case, we present a comparative analysis of two compilers for Modelica, a language for physical modeling, and which contains numerous compilation challenges. The two compilers are OpenModelica, which is based on big-step operational semantics, and JModelica.org, which is based on reference attribute grammars.

References

[1]
J. Åkesson, T. Ekman, and G. Hedin. Implementation of a Modelica compiler using JastAdd attribute grammars. Science of Computer Programming, 75(1--2): 21--38, Jan. 2010.
[2]
D. Broman, P. Fritzson, and S. Furic. Types in the Modelica Language. In Proceedings of the Fifth International Modelica Conference, pages 303--315, Vienna, Austria, 2006.
[3]
D. Broman, P. Fritzson, G. Hedin, and J. Åkesson. A comparison of metacompilation approaches to implementing Modelica. Technical Report 1404-1200 Report 97, Dept. of Computer Science, Lund University, Sweden, 2011.
[4]
G. Hedin. Reference Attributed Grammars. In Informatica (Slovenia), 24(3), pages 301--317, 2000.
[5]
G. Hedin and E. Magnusson. JastAdd: an aspect-oriented compiler construction system. Science of Computer Programming, 47(1): 37--58, 2003.
[6]
D. Kågedal and P. Fritzson. Generating a Modelica compiler from natural semantics specifications. In Summer Computer Simulation Conference (SCSC'98), pages 299--307, Reno, Nevada, 1998.
[7]
G. Kahn. Natural semantics. In 4th Annupal Symposium on Theoretical Aspects of Computer Sciences on STACS 87, volume 247 of LNCS, pages 22--39, Passau, Germany, 1987. Springer.
[8]
M. Mernik, J. Heering, and A. M. Sloane. When and how to develop domain-specific languages. ACM Comput. Surv., 37(4): 316--344, 2005.
[9]
M. Pettersson. Compiling Natural Semantics, volume 1549 of LNCS. Springer, 1999.
[10]
H. Vogt, S. D. Swierstra, and M. F. Kuiper. Higher-order attribute grammars. In PLDI, pages 131--145, 1989.

Cited By

View all
  • (2021)Open Source Languages and Methods for Cyber-Physical System Development: Overview and Case StudiesElectronics10.3390/electronics1008090210:8(902)Online publication date: 10-Apr-2021
  • (2014)ReferencesPrinciples of Object Oriented Modeling and Simulation with Modelica 3.310.1002/9781118989166.refs(1171-1192)Online publication date: 19-Dec-2014

Index Terms

  1. A comparison of two metacompilation approaches to implementing a complex domain-specific language

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Conferences
      SAC '12: Proceedings of the 27th Annual ACM Symposium on Applied Computing
      March 2012
      2179 pages
      ISBN:9781450308571
      DOI:10.1145/2245276
      • Conference Chairs:
      • Sascha Ossowski,
      • Paola Lecca

      Sponsors

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 26 March 2012

      Permissions

      Request permissions for this article.

      Check for updates

      Author Tags

      1. attribute grammars
      2. metacompilation
      3. operational semantics

      Qualifiers

      • Poster

      Conference

      SAC 2012
      Sponsor:
      SAC 2012: ACM Symposium on Applied Computing
      March 26 - 30, 2012
      Trento, Italy

      Acceptance Rates

      SAC '12 Paper Acceptance Rate 270 of 1,056 submissions, 26%;
      Overall Acceptance Rate 1,650 of 6,669 submissions, 25%

      Upcoming Conference

      SAC '25
      The 40th ACM/SIGAPP Symposium on Applied Computing
      March 31 - April 4, 2025
      Catania , Italy

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)2
      • Downloads (Last 6 weeks)0
      Reflects downloads up to 05 Mar 2025

      Other Metrics

      Citations

      Cited By

      View all
      • (2021)Open Source Languages and Methods for Cyber-Physical System Development: Overview and Case StudiesElectronics10.3390/electronics1008090210:8(902)Online publication date: 10-Apr-2021
      • (2014)ReferencesPrinciples of Object Oriented Modeling and Simulation with Modelica 3.310.1002/9781118989166.refs(1171-1192)Online publication date: 19-Dec-2014

      View Options

      Login options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Figures

      Tables

      Media

      Share

      Share

      Share this Publication link

      Share on social media