- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 模拟器开发实践--解释vs编译
指令码的执行方式,大致有两种:解释和编译。两者都是以二进制目标机器码为输入,所采取的执行策略不同。何为解释?就是说将机器码逐条读出,每读一条就进行解码、执行。实现相对简单,一般用高级语言编写解释器,移植性好。能够实现精确控制,方便中断、异常处理,且能实现目标硬件功能的完全模拟。缺点是效率低下。编译,就是把二进制机器码按块进行转换,生成本地机器能够直接运行的指令码,并存放入缓冲区。它能够实现
2007-08-26 22:34:00 671
模拟器开发实践--解释vs编译
指令码的执行方式,大致有两种:解释和编译。两者都是以二进制目标机器码为输入,所采取的执行策略不同。何为解释?就是说将机器码逐条读出,每读一条就进行解码、执行。实现相对简单,一般用高级语言编写解释器,移植性好。能够实现精确控制,方便中断、异常处理,且能实现目标硬件功能的完全模拟。缺点是效率低下。编译,就是把二进制机器码按块进行转换,生成本地机器能够直接运行的指令码,并存放入缓冲区。它能够实现代码的高...
2007-08-26 22:34:00 129
Linux Kernel Development 2nd ed.
2007-01-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人