博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于解释器风格
阅读量:7090 次
发布时间:2019-06-28

本文共 1086 字,大约阅读时间需要 3 分钟。

这周我们了解了解释器风格 通过看书和查找资料对解释器相关的资料进行了整理

首先我们来了解一下什么是解释器:

  An interpreter is a program that executes another program (解释器是一个用来执行其他程序的程序).

  An interpreter implements a virtual machine, which may be different from the underlying hardware platform. (解释器针对不同的硬件平台实现了一个虚拟机)

  To close the gap between the computing engine expected by the semantics of the program and the computing engine available in hardware.

  (将高抽象层次的程序翻译为低抽象层次所能理解的指令,以消除在程序语言与硬件之间存在的语义差异)

解释器的应用:

包括各类语言环境、Internet浏览器、数据分析与转换等;

LISP、Prolog、JavaScript、VBScript、HTML、Matlab、数据库系统(SQL解释器)、各种通信协议等。

解释器的组成:

解释器风格:

基本构件:

An interpretation engine (解释器引擎)
A Memory that contains(存储区):
The pseudo-code to be interpreted (被解释的源代码)
A representation of the control state of the interpretation engine (解释器引擎当前的控制状态的表示)
A representation of the current state of the program being simulated. (程序当前执行状态的表示)
连接器:
Data access (对存储区的数据访问)

解释器的三种策略:

传统解释器(traditionally interpreted)

纯粹的解释执行

基于字节码的解释器 (compiled to bytecode which is then interpreted)

编译解释执行

Just-in-Time (JIT)编译器
编译||解释执行

 

转载于:https://www.cnblogs.com/13070315n/p/5301353.html

你可能感兴趣的文章
小蚂蚁学习PS切图之基础操作(2)——工具栏的介绍
查看>>
【Mybatis】- sqlSession工作流程
查看>>
mysql str_to_date字符串转换为日期
查看>>
jsp---EL运算符
查看>>
Oracle中的substr方法
查看>>
Mysql日期和时间函数总结
查看>>
创建逻辑卷 安装lvm命令
查看>>
不使用root身份运行Wireshark
查看>>
PageRank算法计算网页的价值
查看>>
js面向对象
查看>>
DEDECMS 修改广告链接地址
查看>>
抓住“扁平化”
查看>>
Python中method的参数传递详解
查看>>
Skia深入分析1——skia上下文
查看>>
Tiny Jpeg Decoder (JPEG解码程序) 源代码分析 1:解码文件头
查看>>
windows Server2008 下部署nginx
查看>>
MySQL 性能监控4大指标——第一部分
查看>>
御安全浅析安卓开发代码混淆技术
查看>>
面向对象三大特征
查看>>
一张图介绍CCIE
查看>>