摘 要: 在嵌入式系统领域,如何合理地分配和管理系统内存RAM资源是程序员必须面对的问题,能否高效、可 靠、实时地管理动态内存分区决定了整个系统的稳定性和可靠性。本文以μC/OS与FREERTOS两种操作系统为例,在 深入研究其动态内存管理机制的基础上,对其优缺点和适用场合进行了分析比较,便于软件开发人员在实际应用中根据 产品不同需求进行针对性的选择。 |
关键词: μC/OS FREERTOS;嵌入式系统;动态内存;管理机制 |
中图分类号: TP316.2
文献标识码: A
|
基金项目: 广州市科技和信息化局科普计划资助项目,“搭建原创智能车平台,培养中小学生工程实践意识”(项目编号:2013KP054);广东省科技计划项目,“非开挖地下管 道三维探测关键技术研究及装备研制”(项目编号:2015A030401099). |
|
Analysis and Comparison of μC/OS and FREERTOS Dynamic Memory Management Mechanism |
XIAO Lei,LIU Kejiang
|
( College of Automation Engineering, GuangDong Polytechnic Normal University, Guangzhou 510635, China)
|
Abstract: In the embedded system field,every programmer has to face the problem about how to reasonably allocate and manage the RAM resource.Stability and reliability of a whole system are determined by the programmer's capability to carry out efficient,reliable and real-time management of dynamic memory partition.Based on in-depth study of μC/OS and FREERTOS dynamic memory management mechanism,the paper comparatively analyzes the advantages,disadvantages and the application occasions,which facilitates developers to make targeted selection of operating systems based on different product requirements in practical applications. |
Keywords: μC/OS;FREERTOS;embedded systems;dynamic memory;management mechanism |