A Template-Based Java Code Generator for OpenModelica and MetaModelica
Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
The current OpenModelica Complier (OMC) translates Modelica models into executable Ccodethrough several stages. The Code Generator is the final stage of the compiler whichgenerates target C-code from the optimized sorted equations. Recently, the Code Generator inOMC has been rewritten using the OpenModelica text template language. This gives a moreconcise and easier to understand code generator. Modeling and simulation is becomingincreasingly used in several application areas. There is demand for the OpenModelicaComplier (OMC) to generate code in languages like C#, CSharp, XML, JAVA and so on. Inthis thesis work, we implement a Java code generator to translate the internal equation-basedmodels in OpenModelica and its extension MetaModelica into a Java code representation. Tocreate the Java code generator we used the OpenModelica text template language, also calledSusan. This work is an important step on the way to finalize a full version of a Java CodeGenerator for the OpenModelica Complier (OMC).
Place, publisher, year, edition, pages
2014. , 108 p.
Java Code Generator, Modelica, OpenModelica, Java Runtime System, OpenModelica Complier
Electrical Engineering, Electronic Engineering, Information Engineering
IdentifiersURN: urn:nbn:se:liu:diva-110029ISRN: LIU-IDA/LITH-EX-A--14/022—SEOAI: oai:DiVA.org:liu-110029DiVA: diva2:742308
Subject / course
Master's programme in Computer Science
2014-05-14, Donald Knuth, Linköping, 15:15 (English)
Buffoni, Lena, Dr.
Fritzson, Peter, Professor