C语言程序的理解与编译优化  被引量:2

Understanding of C Program and Compiling Optimization

在线阅读下载全文

作  者:吴元斌[1] WU Yuan-bin(Department of Computer Science and Engineering,Chongqing Three Gorges College,Chongqing 404000)

机构地区:[1]重庆三峡学院计算机科学与工程学院,重庆404000

出  处:《现代计算机》2020年第18期93-96,共4页Modern Computer

摘  要:从几个典型C语言程序出发,展示并对照示例源程序及其在MinGW GCC和LCC编译器的反汇编程序,说明编译器翻译算术表达式的基本思想,分析编译器在运算求值顺序实现中的具体差异,揭示C语言初学者在学习中容易出现的一些模糊认识,这对准确理解和学习C语言程序设计是有益的。Several typical C language programs are given in this essay, source program and its disassemblers of in MinGW GCC and LCC of the examples are showed and contrasted. The basic idea of translating arithmetic expression by compiler is explained. The concrete difference of compiler in the realization of operation evaluation order are analyzed. some fuzzy knowledge that is easy to appear in the learning of C language beginners are revealed, which is beneficial to the accurate understanding and learning of C language programming.

关 键 词:C语言 求值顺序 编译器 反汇编 

分 类 号:TP312.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象