检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:申丽平 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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.22.216.30