摘要
本文充分提取多种系列单片机的共性与差异性,抽象出针对单片机软件仿真的四元组数学模型。在此四元组模型的基础上,应用面向对象设计的思想,结合跳跃表、动态空间管理、编译预处理等技术方法,构造出一个单片机软件仿真器类群。该类群可实例化出不同结构参数及指令集的单片机仿真器对象,与传统的结构化程序设计相比,极大地提高了代码的重用性。
A quad model of single-chip microcomputer simulation is abstracted in this paper, based on the commonness and difference among a series of single-chip microcomputers. With the theory of object-oriented design, lump table, dynamic memory management and code pre-processing, the class group of software simulators for single-chip microcomputers are designed. This class group can be instanced to various objects of the single-chip microcomputer with different architectures and instruction sets, therefore the method can greatly improve reusability.
出处
《计算机工程与科学》
CSCD
2008年第7期133-135,共3页
Computer Engineering & Science
关键词
面向对象
类群
单片机
object-oriented
class group
single-chip microcomputer