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 2012Publication 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. Google ScholarGoogle ScholarDigital LibraryDigital Library
  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.Google ScholarGoogle Scholar
  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.Google ScholarGoogle Scholar
  4. G. Hedin. Reference Attributed Grammars. In Informatica (Slovenia), 24(3), pages 301--317, 2000.Google ScholarGoogle Scholar
  5. G. Hedin and E. Magnusson. JastAdd: an aspect-oriented compiler construction system. Science of Computer Programming, 47(1): 37--58, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  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.Google ScholarGoogle Scholar
  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. Google ScholarGoogle ScholarDigital LibraryDigital Library
  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. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. M. Pettersson. Compiling Natural Semantics, volume 1549 of LNCS. Springer, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. H. Vogt, S. D. Swierstra, and M. F. Kuiper. Higher-order attribute grammars. In PLDI, pages 131--145, 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

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

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • 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

        Copyright © 2012 Authors

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 26 March 2012

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • poster

        Acceptance Rates

        SAC '12 Paper Acceptance Rate270of1,056submissions,26%Overall Acceptance Rate1,650of6,669submissions,25%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader