Volume 6 Number 4 (Apr. 2011)
Home > Archive > 2011 > Volume 6 Number 4 (Apr. 2011) >
JCP 2011 Vol.6(4): 676-682 ISSN: 1796-203X
doi: 10.4304/jcp.6.4.676-682

Study on Approach of Determining Size of μC/OS-II Task Stack

Guangjian Zhang, Zheng Liu
School of Computer Science and Engineering, Chongqing University of Technology, Chongqing, China

Abstract—When μC/OS-II is taken as the operating system of an embedded system, the stack size of every task is needed to be assigned, but it is difficult to determine the stack size of μC/OS-II task with existing methods. In this paper, an approach of determining stack size of μC/OS-II task was presented. In order to clarify the memory space size which is needed by single element in a μC/OS-II task stack, the contents of μC/OS-II task stack were analyzed. Secondly, some tree structures were defined, which can describe the extreme usage of task stack. Lastly, two formulas used to determine size of task stack were presented. As long as the source codes of μC/OS-II operating system and its task are obtained, the stack size of the task can be computed accurately with the approach presented by this paper. The result acquired with the approach is the maximum size of task stack, it can meet the needs of μC/OS-II task for stack space at any cases.

Index Terms—μC/OS-II; task stack; size; Function tree; Interrupt tree; Extreme tree

[PDF]

Cite: Guangjian Zhang, Zheng Liu, "Study on Approach of Determining Size of μC/OS-II Task Stack," Journal of Computers vol. 6, no. 4, pp. 676-682, 2011.

General Information

ISSN: 1796-203X
Abbreviated Title: J.Comput.
Frequency: Bimonthly
Editor-in-Chief: Prof. Liansheng Tan
Executive Editor: Ms. Nina Lee
Abstracting/ Indexing: DBLP, EBSCO,  ProQuest, INSPEC, ULRICH's Periodicals Directory, WorldCat,etc
E-mail: jcp@iap.org
  • Nov 14, 2019 News!

    Vol 14, No 11 has been published with online version   [Click]

  • Mar 20, 2020 News!

    Vol 15, No 2 has been published with online version   [Click]

  • Dec 16, 2019 News!

    Vol 14, No 12 has been published with online version   [Click]

  • Sep 16, 2019 News!

    Vol 14, No 9 has been published with online version   [Click]

  • Aug 16, 2019 News!

    Vol 14, No 8 has been published with online version   [Click]

  • Read more>>