Treffer: A Template-Based Java Code Generator for OpenModelica and MetaModelica

Title:
A Template-Based Java Code Generator for OpenModelica and MetaModelica
Publisher Information:
Linköpings universitet, Institutionen för datavetenskap
Linköpings universitet, Tekniska högskolan
Publication Year:
2014
Collection:
Linköping University Electronic Press (LiU E-Press)
Document Type:
Dissertation bachelor thesis
File Description:
application/pdf
Language:
English
Rights:
info:eu-repo/semantics/openAccess
Accession Number:
edsbas.F891370B
Database:
BASE

Weitere Informationen

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).