Sökning: onr:"swepub:oai:DiVA.org:liu-169770" >
Towards introducing...
Towards introducing just-in-time compilation in a Modelica compiler
-
- Tinnerholm, John, 1992- (författare)
- Linköpings universitet,Programvara och system,Tekniska fakulteten
-
- Sjölund, Martin, 1984- (författare)
- Linköpings universitet,Programvara och system,Tekniska fakulteten
-
- Pop, Adrian, 1975- (författare)
- Linköpings universitet,Tekniska fakulteten,Programvara och system
-
(creator_code:org_t)
- 2020-02-06
- 2019
- Engelska.
-
Ingår i: EOOLT '19: Proceedings of the 9th International Workshop on Equation-based Object-oriented Modeling Languages and Tools. - New York, NY, United States : ACM Press. - 9781450377133 ; , s. 11-19
- Relaterad länk:
-
https://doi.org/10.1...
-
visa fler...
-
https://urn.kb.se/re...
-
https://doi.org/10.1...
-
visa färre...
Abstract
Ämnesord
Stäng
- We are investigating ways of introducing just-in-time compilation in a standard-compliant Modelica compiler, the Open-Modelica compiler (OMC). The main motivations are enabling extensions to support dynamically varying model structure, faster compilation, and faster recompilation of models after changes. We are investigating two approaches.The first approach is to adapt the low-level OpenModelica intermediate representation (IR) before code generation to be compatible with LLVM. In that way we can avoid generating intermediate C-code and instead generate LLVM IR in memory for just-in-time compilation (JIT).The second approach is to translate OMC itself written in MetaModelica to Julia, and thereby gain access to the JIT capabilities of LLVM. Another benefit of the second approach is the access to the Julia ecosystem, including a rich set of libraries for numerical computing.We have done a preliminary investigation of both approaches, with measurements on a selected sample of algorithms, and discovered that compilation-time of generated Julia code is slower compared to generating LLVM IR directly. We conclude that providing a standard-compliant Modelica compiler which supports a dynamically varying model structure is feasible and possible, and we believe that such a compiler can be provided by using Julia or MetaModelica.
Ämnesord
- NATURVETENSKAP -- Data- och informationsvetenskap (hsv//swe)
- NATURAL SCIENCES -- Computer and Information Sciences (hsv//eng)
Nyckelord
- OpenModelica
- Modelica
- LLVM
- Julia
- MetaModelica
Publikations- och innehållstyp
- ref (ämneskategori)
- kon (ämneskategori)
Hitta via bibliotek
Till lärosätets databas