首页 | 本学科首页   官方微博 | 高级检索  
     检索      

AVR单片机实时系统内存分配算法的研究
引用本文:王家亮,赵海,潘荣,蔡鹏华.AVR单片机实时系统内存分配算法的研究[J].东北大学学报(自然科学版),2011,32(5):654-657.
作者姓名:王家亮  赵海  潘荣  蔡鹏华
作者单位:东北大学,信息科学与工程学院,辽宁,沈阳,110819
基金项目:国家自然科学基金资助项目,教育部高等学校科技创新工程重大培育资金资助项目
摘    要:由于AVR单片机存储资源十分有限,因此对内存的分配及使用会直接影响到整个系统的性能.对设计并实现的嵌入式操作系统iDCX 128的内存分配进行了测试,结果表明由于系统采用首次适应算法,在进行多次内存分配后,内存空间利用率不高.因此对其内存分配算法进行改进,通过修改内存区存储任务的堆栈结构及分配机制,使其成为最佳适应算法.实验结果表明改进后算法虽然浪费少量存储单元,并相应地增加了算法执行时间,但内存的整体利用率却得到了较大的提高.

关 键 词:实时系统  内存分配  执行时间  内存空间利用率  系统测试  

Studies on the Memory Allocation Algorithm of an AVR Single Chip Real-Time System
WANG Jia-liang,ZHAO Hai,PAN Rong,CAI Peng-hua.Studies on the Memory Allocation Algorithm of an AVR Single Chip Real-Time System[J].Journal of Northeastern University(Natural Science),2011,32(5):654-657.
Authors:WANG Jia-liang  ZHAO Hai  PAN Rong  CAI Peng-hua
Institution:(School of Information Science & Engineering,Northeastern University,Shenyang 110819,China.)
Abstract:Given the limited capacity of AVR single chip memory,memory allocation and utilization can directly affect entire system performance.Memory allocation testing of a self-designed embedded operating system iDCX 128 indicated that system memory-space utilization efficiency was low after numerous memory allocation events due to use of a first fit algorithm.The memory allocation algorithm was improved by altering the structure of tasks stored in the memory and the allocation mechanism was made into a best fit algorithm.Experimental results demonstrated that the improved algorithm caused a small number of wasted storage units with a corresponding increase in execution time.Nevertheless,overall memory utilization was greatly improved.
Keywords:real-time system  memory allocation  execution time  memory-space utilization  system test
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《东北大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《东北大学学报(自然科学版)》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号