没有“编译语言"之类的东西.或“解释语言" [英] There is no such thing as a "compiled language" or "interpreted language"

查看:15
本文介绍了没有“编译语言"之类的东西.或“解释语言"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有所谓的编译语言"或解释语言".语言实现者选择编写编译器、解释器还是两者之间的任何东西都是实现细节,与语言无关."

"There is no such thing as a "compiled language" or "interpreted language". Whether a language implementer chooses to write a compiler, an interpreter or anything in between is an implementation detail and has nothing to do with the language. "

以上说法属实吗?

推荐答案

是的,严格的解释是正确的.您可以找到 C++ 解释器Javascript 编译器,例如.但是,您会发现某些类型的语言(例如静态类型)非常适合本机代码编译.其他语言(例如动态类型)通常使用字节码编译结合虚拟机执行环境来实现.

Yes, it is true in the strictest interpretation. You can find both a C++ interpreter and a Javascript compiler, for example. However, you will find that some types of languages (statically typed, for example) lend themselves well to native code compilation. Other languages (dynamically typed, for example) are commonly implemented using bytecode compilation combined with a virtual machine execution environment.

这篇关于没有“编译语言"之类的东西.或“解释语言"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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