A Template-Based Code Generator for the OpenModelica Compiler
Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
A new, template-based code generator has been implemented for the OpenModelica compiler. All data needed for target code generation has been collected in a new data structure that is then sent to templates which generate target code based on that data. This simplifies the implementation of the code generator and also makes it possible to write a different set of templates to generate target code in a different language.
The new, template-based code generator currently only supports generation of target code for simulating Modelica models. In that scenario it translates models roughly at the same speed as the old code generator.
Place, publisher, year, edition, pages
2010. , 50 p.
Compiler, OpenModelica, Code Generator, Template Language
Engineering and Technology
IdentifiersURN: urn:nbn:se:liu:diva-54463ISRN: LIU-IDA/LITH-EX-A--10/006--SEOAI: oai:DiVA.org:liu-54463DiVA: diva2:304106
Subject / course
Master's programme in Computer Science
2010-03-02, John von Neumann, Linköpings Universitet, Linköping, 14:00 (English)
Fritzson, Peter, Professor