节点文献

基于树结构的μC/OS-Ⅱ任务栈空间计算方法及应用

Method of calculating stack space of μC/OS-Ⅱ task based on tree structure and its application

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 张光建刘政

【Author】 ZHANG Guang-jian,LIU Zheng(School of Computer Science and Engineering,Chongqing Institute of Technology,Chongqing 400050,China)

【机构】 重庆工学院计算机科学与工程学院

【摘要】 针对用现有方法较难确定μC/OS-Ⅱ任务栈空间大小的问题,提出了基于树结构计算μC/OS-Ⅱ任务栈空间的方法。分析了任务栈空间结构,定义了能够表示栈空间最坏使用情况的树结构,提出了用树结构计算最坏情况下栈空间的计算公式,并计算了一个实际系统的栈空间。用该方法确定的任务栈空间能够准确地反映任务栈空间的最坏使用情况,同时还能够节约内存的使用。

【Abstract】 Aiming at the problem that the stack space size of μC/OS-Ⅱ task is not easily confirmed by existing ways,this paper presented a new way by which the stack space size of μC/OS-Ⅱ task can be computed based on tree structure.Firstly,the stack space structure of μC/OS-Ⅱ task was analyzed.Secondly,some tree structures that can show the extreme usage of the stack space were defined.Lastly,the formula that can calculate the stack space which is maximal was presented based on tree structure and the stack space of a real system was calculated by the formula.The stack space size which is calculated by this way can reflect the extreme usage of a stack space factually and can reduce the requirement for RAM.

【关键词】 树结构μC/OS-Ⅱ任务栈空间函数中断嵌套
【Key words】 tree structureμC/OS-Ⅱtaskstack spacefunctioninterrupt nesting
【基金】 重庆市自然科学基金资助项目(CSTC2007BB2409)
  • 【文献出处】 计算机应用 ,Journal of Computer Applications , 编辑部邮箱 ,2009年04期
  • 【分类号】TP316
  • 【被引频次】3
  • 【下载频次】88
节点文献中: 

本文链接的文献网络图示:

本文的引文网络