A Template-Based Java Code Generator for OpenModelica and MetaModelica
2014 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesis
Abstract [en]
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. , p. 108
Keywords [en]
Java Code Generator, Modelica, OpenModelica, Java Runtime System, OpenModelica Complier
National Category
Electrical Engineering, Electronic Engineering, Information Engineering
Identifiers
URN: urn:nbn:se:liu:diva-110029ISRN: LIU-IDA/LITH-EX-A--14/022—SEOAI: oai:DiVA.org:liu-110029DiVA, id: diva2:742308
Subject / course
Master's programme in Computer Science
Presentation
2014-05-14, Donald Knuth, Linköping, 15:15 (English)
Supervisors
Examiners
2014-09-022014-09-012014-09-02Bibliographically approved