An LLVM backend for the Open Modelica Compiler

This thesis presents the construction and evaluation of an LLVM based codegenerator, an LLVM backend. The introduction of an LLVM based backend into the OpenModelica compiler was done to examine the advantages and disadvantages of compiling Modelica and MetaModelica to LLVM IR instead of C. To answe...

Full description

Bibliographic Details
Main Author: Tinnerholm, John
Format: Others
Language:English
Published: Linköpings universitet, Institutionen för datavetenskap 2019
Subjects:
Online Access:http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-154291
id ndltd-UPSALLA1-oai-DiVA.org-liu-154291
record_format oai_dc
spelling ndltd-UPSALLA1-oai-DiVA.org-liu-1542912019-03-09T05:43:13ZAn LLVM backend for the Open Modelica CompilerengKonstruktion av en LLVM-baserad backend för OpenModelica-kompilatornTinnerholm, JohnLinköpings universitet, Institutionen för datavetenskap2019LLVMCompiler constructionOpenModelicaComputer SciencesDatavetenskap (datalogi)This thesis presents the construction and evaluation of an LLVM based codegenerator, an LLVM backend. The introduction of an LLVM based backend into the OpenModelica compiler was done to examine the advantages and disadvantages of compiling Modelica and MetaModelica to LLVM IR instead of C. To answer this question, the LLVM backend was compared against the existing interpreter and C code generator using four different schemes with corresponding cases. This comparison was made both for both optimised and unoptimised code. From the experiments, it was concluded that an LLVM backend can be used to improve runtime and compile time performance in the OpenModelica Interactive environment. Student thesisinfo:eu-repo/semantics/bachelorThesistexthttp://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-154291application/pdfinfo:eu-repo/semantics/openAccess
collection NDLTD
language English
format Others
sources NDLTD
topic LLVM
Compiler construction
OpenModelica
Computer Sciences
Datavetenskap (datalogi)
spellingShingle LLVM
Compiler construction
OpenModelica
Computer Sciences
Datavetenskap (datalogi)
Tinnerholm, John
An LLVM backend for the Open Modelica Compiler
description This thesis presents the construction and evaluation of an LLVM based codegenerator, an LLVM backend. The introduction of an LLVM based backend into the OpenModelica compiler was done to examine the advantages and disadvantages of compiling Modelica and MetaModelica to LLVM IR instead of C. To answer this question, the LLVM backend was compared against the existing interpreter and C code generator using four different schemes with corresponding cases. This comparison was made both for both optimised and unoptimised code. From the experiments, it was concluded that an LLVM backend can be used to improve runtime and compile time performance in the OpenModelica Interactive environment.
author Tinnerholm, John
author_facet Tinnerholm, John
author_sort Tinnerholm, John
title An LLVM backend for the Open Modelica Compiler
title_short An LLVM backend for the Open Modelica Compiler
title_full An LLVM backend for the Open Modelica Compiler
title_fullStr An LLVM backend for the Open Modelica Compiler
title_full_unstemmed An LLVM backend for the Open Modelica Compiler
title_sort llvm backend for the open modelica compiler
publisher Linköpings universitet, Institutionen för datavetenskap
publishDate 2019
url http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-154291
work_keys_str_mv AT tinnerholmjohn anllvmbackendfortheopenmodelicacompiler
AT tinnerholmjohn konstruktionavenllvmbaseradbackendforopenmodelicakompilatorn
AT tinnerholmjohn llvmbackendfortheopenmodelicacompiler
_version_ 1719000928350109696