What static compiler could optimize when the JIT could not?

Are there any examples of what a static compiler could optimize when JIT could not?

For example, some C ++ compiler optimization that cannot be performed by .NET JIT?

+3
source share
5 answers

Missing. Evidence. Take any compiler and use it as a JIT. Q.E.D.

However , JIT is limited at run time, so complex optimizations are not acceptable there.

+9
source

, JIT. , .

, . , , . . ngen.exe, .NET . , "", , .ni.dll .

, . , , , .

, . , , . 64- x64, .

, , , 85% , . , .

+2

, , complier , JIT - JIT- , , . JIT - , .

++ , # - . , , : # , .

# # IL, JIT.

+1

, JIT - . , , , , JIT. , JIT , , , .


, JIT ( , ), , .

+1

The main problem here is runtime and resources. It takes 61 hours to compile Visual Studio, and I don’t even know what their build machine is. JITs, however, should work with a fraction of real machine resources in milliseconds. There is no way that they can optimize so much.

+1
source

Source: https://habr.com/ru/post/1779882/


All Articles