Opened 6 years ago
Closed 4 years ago
#5043 closed enhancement (fixed)
Use clang also on Windows
Reported by: | Francesco Casella | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | blocker | Milestone: | 1.17.0 |
Component: | Build Environment | Version: | |
Keywords: | Cc: | Martin Sjölund, Willi Braun, Niklas Worschech |
Description
On Linux systems, the compilation of models using clang is dramatically faster than using gcc. On simple models, the simulation starts almost immediately after clicking the simulate button in OMEdit, while the Windows/gcc combination chugs along for several seconds even in the simplest cases.
Can we plan on using clang also on Windows for 2.1.0? I guess this would increase the usability significantly
Change History (10)
comment:1 by , 6 years ago
Component: | *unknown* → Code Generation |
---|---|
Type: | defect → enhancement |
comment:2 by , 6 years ago
Component: | Code Generation → Build Environment |
---|
comment:3 by , 6 years ago
comment:5 by , 6 years ago
PRs to be able to compile OMC with clang on Windows:
https://github.com/OpenModelica/OpenModelica/pull/90
https://github.com/OpenModelica/OMCompiler/pull/2627
https://github.com/OpenModelica/OMCompiler-3rdParty/pull/31
comment:6 by , 6 years ago
Milestone: | 2.1.0 → 2.0.0 |
---|---|
Priority: | high → blocker |
I played a bit with medium-scaled models recently and found that gcc is much, much slower than clang. Moving to clang will change the user experience dramatically. I am rescheduling this for 2.0.0, I think it is a must-have
comment:8 by , 6 years ago
Milestone: | 2.0.0 → 1.14.0 |
---|
comment:9 by , 6 years ago
Milestone: | 1.14.0 → 2.0.0 |
---|
Too late to fit this in 1.14.0, rescheduled to 2.0.0
comment:10 by , 4 years ago
Milestone: | 2.0.0 → 1.17.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Just tried it, much faster than gcc indeed.
I've done some tests, clang is about 8 minutes faster to compile OpenModelica OMC from scratch:
Also, the model from #5082 can actually be compiled with half memory usage and no crashes.
The only "problem" is that we will add ~1.3 GBs to the OpenModelica installer.