编译和解释是实现高级程序设计语言的两种方式,其区别主要在于( )。
2023-09-01
A.是否进行语法分析
B.是否生成中间代码文件
C.是否进行语义分析
D.是否生成目标程序文件
参考答案:D
B.是否生成中间代码文件
C.是否进行语义分析
D.是否生成目标程序文件
参考答案:D
编译是将源程序翻译成可执行的目标代码,翻译与执行是分开的;而解释是对源程序的翻译与执行一次性完成,不生成可存储的目标代码。这只是表象,二者背后的最大区别是:对解释执行而言,程序运行时的控制权在解释器而不在用户程序;对编译执行而言,运行时的控制权在用户程序。所以编译和解释区别在于是否生成目标程序文件。故正确答案为D
![]( //img1.runjiapp.com/duoteimg/tiku/images/pc/questionBank/main-list-title-icon.png)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_41.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_53.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_45.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_80.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_56.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_20.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_80.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_99.jpg)
![](https://img1.runjiapp.com/duoteimg/tiku/banner/bn_26.jpg)
热门标签