简体   繁体   English

ARM Cortex-M 上的 Boost::context?

[英]Boost::context on ARM Cortex-M?

According to documentation boost::context supports ARM systems with GNU/Linux OS.根据文档 boost::context 支持带有 GNU/Linux 操作系统的 ARM 系统。 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?只是想知道 - 是否可以在裸机(没有任何操作系统)Cortex-M 微控制器上使用它,或者这是应该编写的附加端口?

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.我想,大部分 Cortex-M 都没有适合的 boost 库,因为有很少甚至没有 C 运行时。 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.对于大多数 Cortex-M(据我所知,例如 Cortex-M0 或 -M3),也没有像 Linux 这样的操作系统,因为它们主要被编程为裸机应用程序或使用调度程序。

Additionally I'd not recommend using any C++ templates in a MCU, because they just blow up the footprint by MBs.此外,我不建议在 MCU 中使用任何 C++ 模板,因为它们只会以 MB 的方式占用内存。

See this and a reply to this question看到这个这个问题的回复

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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