节点文献

HCO网络操作系统的Cx51实现

The Realization of HCO Network Operating System with Cx51

【作者】 周正

【导师】 陆阳;

【作者基本信息】 合肥工业大学 , 计算机软件与理论, 2006, 硕士

【摘要】 由于越来越多的程序员采用高级语言开发嵌入式软件,而以前大量用汇编语言开发的软件仍需要不断升级维护,从长远角度看,再修改原有的汇编源代码,不是一个可取的方法;同时,撇开原有的汇编源代码,用高级语言重写该软件会增加开发成本、延长开发周期,并且很难保证新的软件能够完全满足原有的用户需求。因此,在原有的汇编语言源代码的基础上,运用一定的转换规则把原有的汇编源代码转换成高级语言实现,可以节省开发成本、缩短开发周期。课题针对汇编语言源代码转换成高级语言实现做了重点研究。 从以前移植软件的研究成果出发,并按照软件工程学的要求,论文提出了汇编语言源代码到高级语言Keil Cx51代码转换的四级映射法。四级映射法包括两个阶段四个级别。第一阶段:重构软件的数据流程和控制流程。该阶段包括模块级映射和函数级映射。第二阶段:用高级语言重新实现原有软件,包括数据结构级映射和语句级映射。由于四级映射法的每一步都严格按照软件工程学的要求,提高了转换后软件模块级代码可重用性、可移植性和软件的可维护性,便于实现以前的产品移植到其他不同硬件平台。 由于Cx51的代码执行效率稍低于汇编语言,而且汇编语言转换到高级语言Cx51后,存在部分冗余代码,论文在第四章介绍了优化Cx51代码的方法,进一步提高Cx51代码的执行效率。论文在最后部分详细介绍了重构HCONET的数据流程和控制流程,并运用四级映射法成功地把HCONET汇编语言代码转换到Cx51实现。

【Abstract】 As more and more programmers develop embedded software with high-level language, and previous some software developed with assembly language still need continual upgrade and maintenance, from long-term perspective, modifying assembly source code is not an advisable method. Besides, if the assembly source code was given up, redeveloping the software with high-level language will increase the cost of development and prolong the development cycle;it is hard to assure that the new software meets original user requirement fully. So, beginning with original assembly language source code and translating assembly source code to a high-level language code with certain translation rule can save the developing cost shorten development cycle. Some studies have been done in the dissertation aiming at translating assembly language source code to a high-level language code.From the previous fruit of research on migrating software, and in terms of requirement of software engineering, the dissertation puts forward a four-stage method of translating assembly language source code to high-level language Keil Cx51 code. This method includes two stages and four levels, the first stage: rebuilding data flow and control flow of the software, this stage includes module level mapping and function level mapping. The second stage: rebuilding software with high-level language, this stage includes data structure level mapping and statement level mapping. The four-stage method of mapping which follows the software engineering rules strictly improves software reusability portability and maintainability, realizes the former products porting to another different hardware platform easily.Owing to the efficiency of Cx51 code is low to assembly language code, moreover, there are some redundancy codes after translating from assembly language code, and this dissertation introduces some methods for optimization Cx51 code to improve execution efficiency of Cx51 code.At last, the dissertation successfully translates HCONET assembly language code to Cx51 code with four-stage method of mapping.

  • 【分类号】TP316.8
  • 【下载频次】42
节点文献中: