TEC-XP16教学机上C语言运行环境的实现  

Implementation of C Language Running Environment on TEC-XP16 Teaching Machine

在线阅读下载全文

作  者:宗德才[1] 王康康[2] ZONG Decai;WANG Kangkang(College of Computer Science and Engineering,Changshu Institute of Technology,Changshu 215500,China;School of Mathematics and Physics,Jiangsu University of Science and Technology,Zhenjiang 212003,China)

机构地区:[1]常熟理工学院,计算机科学与工程学院,江苏常熟215500 [2]江苏科技大学,数理学院,江苏镇江212003

出  处:《微型电脑应用》2022年第10期18-21,共4页Microcomputer Applications

基  金:国家自然科学基金面上项目(61773012)。

摘  要:在TEC-XP16教学机中,已经利用教学机的汇编指令实现了BASIC语言解释执行程序,能够运行BASIC语言程序。为了支持使用更广泛的C语言程序的运行,在BASIC语言解释程序基础上,利用教学机的汇编指令设计C语言解释程序,能够在TEC-XP16教学机上执行C语言程序,能够支持while循环语句、if语句、函数调用,支持按值传递和按地址传递2种函数参数传递方式。在TEC-XP16教学机模拟软件上对C语言程序进行仿真运行,仿真结果表明所设计的C语言解释程序能够支持C语言程序在TEC-XP16教学机上的正确运行。On TEC-XP16 teaching machine,the BASIC language interpretation and execution program have been realized by the assembly instructions of the teaching machine,which can run the BASIC language program.In order to support more widely used C language program,based on the BASIC language interpreter,the C language interpreter that can run C language program on TEC-XP16 teaching machine is designed by assembly instructions of teaching machine.The C language interpreter supports while“loop”statement,“if”statement and function call.It supports two kinds of function parameter transfer methods:value passing and address passing.The simulation results show that the C language interpreter can run C language program on TEC-XP16 teaching machine properly.

关 键 词:TEC-XP16教学机 教学机汇编指令 计算机组成原理 C语言程序 

分 类 号:TP332[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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