What does a JIT compiler do?

后端 未结 9 1284
孤街浪徒
孤街浪徒 2020-12-13 00:28

I was just watching the Google IO videos and they talked about the JIT compiler that they included in the android. They showed a demo of performance improvements thanks to t

9条回答
  •  执笔经年
    2020-12-13 01:08

    So, What is the duty of a JIT compiler?

    As others mentioned it's short for "Just In Time", which in this sense means "Just in time for execution".

    When you compile programs to machine code, they are often targeted to a certain platform.

    Therefore JIT was "Invented", you want to compile the last bits and pieces of your code for the executing platform, so see this as an "before exection"-compiler/optimizer.

    JIT makes our lives easier and makes (hopefully) our applications run faster.

    There are of course other purposes of JIT-compilation, the above is just one of them.

提交回复
热议问题