摘要
文章阐述了小型跨平台类C语言CC的设计与实现.CC语言类似于C语言的子集,语法与C语言十分接近;目标代码采用RICS类型指令系统结构,使用栈式虚拟机解释执行;具有常用的多种数据类型,具备跨平台功能,适于做编译系统课程的教学语言.CC语言稍加扩充后,可成为实用的工程语言,适用于嵌入式系统和跨平台系统应用.
The paper describes the design and implementation of a C-alike Platform-independent programming language,CC programming language.The language,analogous to a subset of C,has a similar syntax of C.The objective code set of the language is of the RICS structure,and is interpretively executed by a stack-virtual machine.With several data types,the language is platform-independent and therefore can be applied as a teaching language for the course of compiling principles.Moreover,being extended further,CC language can become a real engineering language adequately applied for the embedded and platform-independent systems.
出处
《南京晓庄学院学报》
2009年第3期78-81,共4页
Journal of Nanjing Xiaozhuang University
关键词
编译原理教学语言
类C语言
跨平台程序设计语言
RISC指令系统
栈式虚拟机
teaching language for compiling principles
C-alike language
platform-independent programming language
RICS instruction set
stack-virtual machine