摘要
由于单片机(51系列)存储结构与传统计算机存储结构差异甚大,因此,移植C编译器生成单片机交叉C编译时应涉及存储空间分配、函数头尾码生成,实参生成以及开关语句尾码生成等一系列问题。本文研究解决这些问题的方法,并提出工作帧概念及开关语句自动生成算法,据此可生成高效率的单片机目标代码。
The storage structure of chip microprocessor is different from V. N computer' s.so, there are quite a few problems to be solved in moving C compiler to chip microprocessor, such as storage allocation, head code generation, parameters code generation and automatic switch coding. The paper deals with the problems and supposes the concept of work frame. and the arithmetic of automatic switch coding. Base on the concept the object code suits well with chip microprocessor application.
出处
《小型微型计算机系统》
CSCD
北大核心
1994年第5期31-37,共7页
Journal of Chinese Computer Systems
基金
福建省自然科学基金
关键词
交叉编译器
微处理机
C语言
Cross, Tompiler chip, Microprocessor, Compiler