# When to compile macros

**URL:** <https://root-forum.cern.ch/t/when-to-compile-macros/31792>\
**Category:** Cling\
**Created:** [November 28, 2018, 1:34pm UTC](https://root-forum.cern.ch/t/when-to-compile-macros/31792 "2018-11-28T13:34:49Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [December 6, 2018, 6:24am UTC](https://root-forum.cern.ch/t/when-to-compile-macros/31792/10 "2018-12-06T06:24:17Z")

</div>

> [@JIT optimization level?](https://root-forum.cern.ch/t/jit-optimization-level/19946/3):
>
> Hi, You are right the .O option is not yet implemented. Currently we do JIT optimizations equivalent to -O1. If you are interested in comparing the different optimization levels, you could tweak this by modifying the line: interpreter/cling/lib/Interpreter/IncrementalExecutor.cpp:92 to either one of enum Level { None, // -O0 Less, // -O1 Default, // -O2, -Os Aggressive // -O3 }; By definition the JIT (standing for Just-In-Time compiler) cannot yield the same perfo…

> [@Interpreter-\>declare crashing on long strings](https://root-forum.cern.ch/t/interpreter-declare-crashing-on-long-strings/30421/13):
>
> If you don’t use ROOT (where the precompiled header causes trouble if options are not applied consistently across the board), you should be in a much better shape, assuming the sources are recent. I just checked that the inlining fix for sure exists in the latest of those standalone sources (see CIFactory.cpp) and probably has been for a while: Axel’s fix is from July 25. (If whatever you run locally is older, you will want to update.) But actually, looking at it again now, Axel’s fix may not w…

> [@Cling jit and openmp preprocessor directive](https://root-forum.cern.ch/t/cling-jit-and-openmp-preprocessor-directive/29807/4):
>
> Actually, first off, when enabling openmp within ROOT, I just found that Clang does not support the task directive (see here: [https://clang.llvm.org/docs/OpenMPSupport.html](https://clang.llvm.org/docs/OpenMPSupport.html)). And that’s dev (7), whereas Cling contains 5. frowning I was assuming you were working in ROOT b/c of “gInterpreter-\>Declare()” in the above code. You can make OpenMP work there (I just did slight_smile ), but you have to make sure to set the EXTRA\_CLING\_ARGS envar to ‘-fopenmp’ when building ROOT. That will make sure …

---

_[View the full topic](https://root-forum.cern.ch/t/when-to-compile-macros/31792)._
