METHOD FOR ALLOCATION STACK IN MULTI-THREADED SENSOR OPERATING SYSTEMS ENVIRONMENT
摘要
A method for allocation stack in a multi-threaded sensor OS(Operating System) environment is provided to allocate a thread stack with space efficiency in a sensor OS operated in a space restricted sensor platform and reduce usage of a memory space remarkably more than a usual static thread stack allocation method. A stack space used by a called function is allocated by estimating the size of the allocated stack space based on the size of local variables and the number of function factors used by the function when the function is called during execution of the thread(220). A stack pointer is moved to point the allocated stack space(230). A factor and a return address of the function are stored in the stack space(240). The function is returned when the function is terminated(270). The stack pointer is restored and the allocated stack space is returned(280).
申请公布号
KR20080054324(A)
申请公布日期
2008.06.17
申请号
KR20070029595
申请日期
2007.03.27
申请人
ELECTRONICS AND TELECOMMUNICATIONS RESEARCH INSTITUTE
发明人
KIM, SANG CHEOL;SHIN, CHANG MIN;CHANG, JIN HO;KIM, HAE YONG;CHO, YOO KUN;HONG, JI MAN;HEO, JUN YOUNG;YI, SANG HO;GU, BON CHEOL;MIN, HONG;LEE, SEUNG WOO