Opened 6 years ago
Closed 3 years ago
#5043 closed enhancement (fixed)
Use clang also on Windows
Reported by: | casella | Owned by: | adrpo |
---|---|---|---|
Priority: | blocker | Milestone: | 1.17.0 |
Component: | Build Environment | Version: | |
Keywords: | Cc: | sjoelund.se, wbraun, niklwors |
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 Changed 6 years ago by casella
- Component changed from *unknown* to Code Generation
- Type changed from defect to enhancement
comment:2 Changed 6 years ago by adrpo
- Component changed from Code Generation to Build Environment
comment:3 Changed 6 years ago by adrpo
comment:4 Changed 6 years ago by casella
We could make the use of clang optional and keep the installer separate.
comment:5 Changed 6 years ago by adrpo
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 Changed 5 years ago by casella
- Milestone changed from 2.1.0 to 2.0.0
- Priority changed from high to 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:7 Changed 5 years ago by casella
See #5307
comment:8 Changed 5 years ago by casella
- Milestone changed from 2.0.0 to 1.14.0
comment:9 Changed 5 years ago by casella
- Milestone changed from 1.14.0 to 2.0.0
Too late to fit this in 1.14.0, rescheduled to 2.0.0
comment:10 Changed 3 years ago by casella
- Milestone changed from 2.0.0 to 1.17.0
- Resolution set to fixed
- Status changed from new to 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.