Just-in-Time-Compiler和解释器之间有什么区别? [英] What are the differences between a Just-in-Time-Compiler and an Interpreter?

查看:439
本文介绍了Just-in-Time-Compiler和解释器之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Just-in-Time-Compiler和解释器之间有什么区别,.NET和JAVA JIT编译器之间有什么区别?

What are the differences between a Just-in-Time-Compiler and an Interpreter, and are there differences between the .NET and the JAVA JIT compiler?

推荐答案

即时编译

维基百科:


JIT基于运行时环境中的两个前面的想法:字节码编译和动态编译。

JIT builds upon two earlier ideas in run-time environments: bytecode compilation and dynamic compilation. It converts code at runtime prior to executing it natively, for example bytecode into native machine code.

解释器执行程序。

再次,从维基百科:


解释器可以是

An interpreter may be a program that either


  1. 直接执行源代码的程序

  2. 将源代码翻译成一些有效的中间表示
    (代码),并立即执行

  3. 显式执行由编译器
    创建的存储的预编译代码,
    system


标准的Java和.NET发行版都有JIT编译,是标准不要求的。 .NET和C#中的JIT编译器当然是不同的,因为中间字节码是不同的。原则是一样的。

Both the standard Java and .NET distributions have JIT compilation, but it is not required by the standards. The JIT compiler in .NET and C# are of course different because the intermediate bytecode is different. The principle is the same though.

这篇关于Just-in-Time-Compiler和解释器之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆