简体   繁体   中英

Boost::context on ARM Cortex-M?

According to documentation boost::context supports ARM systems with GNU/Linux OS. Just wondering - is it possible to use it on bare metal (without any OS) Cortex-M microcontrollers as well, or this is an additional port that should be written?

boost.context 不支持 Cortex-M - 仅支持 Cortex-A + ELF/MACH-O/PE

I guess, no boost lib would fit into most of Cortex-M, because there's a tiny to no C-runtime. Also there is no OS like Linux or so for most Cortex-M (as far as I know, eg Cortex-M0 or -M3), because they're mainly programmed as a bare-metal app or with a scheduler.

Additionally I'd not recommend using any C++ templates in a MCU, because they just blow up the footprint by MBs.

See this and a reply to this question

不,Cortex-M 是低功耗处理器,在您需要的情况下运行在实时操作系统之上,并且支持正常操作系统的 arm cortex-A 处理器(arm 应用处理器)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM