摘要
HUST抽象机是专为面向多目标机的C交叉编译系统设计的一种抽象机。本文阐述了该抽象机的结构、特点及设计思想。与其他抽象机比,该抽象机执行速度快,具有查运行溢出错、越界访问数组元素错和类型转换溢出错的能力。
The C cross compiler system designed by the authors is a powerful multi-target general-purpose tool for software 'transplantation'. It consists of a compiler subsystem capable of translating the C language into the assembly language of the HUST abstract machine, a multi-assembly subsystem capable of translating the assembly language of the HUSTabstract machine into the target machine language and some target description files tobe used by the compiler subsystem. Each target machine is matched to an assembler and a target desctiption file. Therefore, the system can translate a C program intoa specific target code.The HUST abstract machine with which the model of the object generated by the C cross compiler is determined plays an important role in the system. The abstract machine is high in running speed, capable of dynamic debugging on operating overflow, on reading or writing the outside element of the array and on the overflow for the type conversion with all the error addresses in the source pointed out. The techniques and mechanism for realizing these features are also described.
出处
《华中理工大学学报》
CSCD
北大核心
1989年第2期25-30,共6页
Journal of Huazhong University of Science and Technology
关键词
C语言
抽象机
编译系统
HUST
C cross compiler
Multi-target machine
Abstrac machine
Target descti-prion file
Dynamic debugging