Commit 09e106c
Change the default simulation opt. level to -Os
Testing has shown that the performance of clang seems to be good enough
to enable -Os by default now. It's still slightly slower for most
models, especially small ones. But it should be a good default for
larger models.
The optimization level for simulations is now set by Susan, and
setCFlags will override this. This makes it possible for dynload to use
a different optimization level unless set by setCFlags. The disadvantage
is that getCFlags does not show what optimization level the simulations
will use (unless explicitly set by setCFlags), and this will be different
for C++ and C.
Note that this is how the MinGW version of OM worked before (except the
default for simulations was -O0).
OMEdit also has an option to change optimization level, so it should be
reasonably convenient for the user to change this to -O0 if desired.
Disabled -march=native as a default flag since it is annoying for FMUs.
Belonging to [master]:
- OpenModelica/OMCompiler#18691 parent 46dca42 commit 09e106c
File tree
4 files changed
+5
-7
lines changed- Compiler
- Script
- Template
- runtime
4 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3288 | 3288 | | |
3289 | 3289 | | |
3290 | 3290 | | |
3291 | | - | |
| 3291 | + | |
3292 | 3292 | | |
3293 | 3293 | | |
3294 | 3294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5707 | 5707 | | |
5708 | 5708 | | |
5709 | 5709 | | |
5710 | | - | |
5711 | | - | |
5712 | 5710 | | |
5713 | 5711 | | |
5714 | 5712 | | |
| |||
5780 | 5778 | | |
5781 | 5779 | | |
5782 | 5780 | | |
5783 | | - | |
| 5781 | + | |
5784 | 5782 | | |
5785 | 5783 | | |
5786 | 5784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
0 commit comments