C语言教学程序调试之汇编指令分析  被引量:1

Analysis of Assembly Instructions for Program Debugging in C Language Teaching

在线阅读下载全文

作  者:申丽平 SHEN Li-ping(School of Information Science and Engineering,Hunan Institute of Science and Technology,Yueyang 414006,China)

机构地区:[1]湖南理工学院信息科学与工程学院,湖南岳阳414006

出  处:《电脑知识与技术》2020年第29期147-149,共3页Computer Knowledge and Technology

摘  要:为了提升大学生对C语言语法原理的理解,通过对比C语言语句与汇编指令,提出了一种在程序调试时使用汇编指令去理解分析C语言语法原理的方案。首先对C语言可执行程序的运行原理进行了介绍,然后介绍了JFE and GCC软件的调试功能,再然后区分了AT&T与Intel汇编指令的不同之处,最后就一个程序调试的实例进行了汇编指令分析。实验关于赋值语句的机器指令分析,验证了C语言在编译时确定局部变量的地址空间,实验体现了汇编指令分析有效、实用。In order to improve the college students'understanding of C language grammar principle,by comparing C language state⁃ments with assembly instructions,a scheme of using assembly instructions to understand and analyze C language grammar princi⁃ple in program debugging is proposed.Firstly,the operation principle of C executable program is introduced;then,the debugging functions of JFE and GCC software are introduced,and then the differences between AT&T and Intel assembly instructions are distinguished,finally,the assembly instructions of a program debugging example are analyzed.By analyzing the machine instruc⁃tions of assignment statements,it is verified that C language determines the address space of local variables at compile time,the experiment shows that the assembly instruction analysis is effective and practical.

关 键 词:C语言 可执行程序 JFE and GCC 汇编指令 程序调试 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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