在内存限制的嵌入式系统中使用 boost

问题描述Weareusingc++todevelopanapplicationthatrunsinWindowsCE4onanembeddedsystem.Oneofourconstraintisthatallthememoryusedbytheapplicationshallb

发布:2022-10-16 标签:c++windows-ceboostembedded


是否有 std::function 的独立实现?

问题描述我正在开发嵌入式系统,因此代码大小是一个问题.使用标准库将我的二进制大小增加了大约60k,从40k增加到100k.我想使用std::function,但我不能证明它是60k的.是否有我可以使用的独立实现,或类似的东西?我正在使用它在c++11中使用绑定变量在成员函数中隐式

发布:2022-10-16 标签:c++functional-programmingstlembedded


在嵌入式环境中使用 C++

问题描述TodayIgotintoaveryinterestingconversationwithacoworker,ofwhichonesubjectgotmethinkingandgooglingthisevening.UsingC++(asopposedtoC)inanem

发布:2022-10-16 标签:c++embedded


在嵌入式环境中替代 boost::shared_ptr

问题描述I'musingC++inanembeddedlinuxenvironmentwhichhasGCCversion2.95.Ijustcan'textractboost::shared_ptrfileswithbcp,itisjusttooheavy.WhatI'dlik

发布:2022-10-16 标签:c++boostembeddedsmart-pointers


防止 C++11 删除无限循环

问题描述Asdiscussedinthisquestion,C++11optimizesendlessloopsaway.However,inembeddeddeviceswhichhaveasinglepurpose,endlessloopsmakesenseandareact

发布:2022-10-16 标签:c++embeddedc++11


不使用动态内存分配的 Pimpl 习惯用法

问题描述wewanttousepimplidiomforcertainpartsofourproject.Thesepartsoftheprojectalsohappentobepartswheredynamicmemoryallocationisforbiddenandthis

发布:2022-10-16 标签:c++embeddeddynamic-memory-allocationpimpl-idiom


小尺寸微控制器上的 C++

问题描述在我看来,人们似乎一直在回避,或者更确切地说,强烈反对在微控制器上使用C++,但我终其一生都无法弄清楚原因.如果您远离大型C++库(例如STL)并且不尝试使用RTTI或异常处理等复杂功能,那么C与C++之间真的有任何明显的区别吗?虚拟继承对复杂性或占用空间有巨大影响吗?我

发布:2022-10-16 标签:oopc++embedded


编译用于高放射性环境的应用程序

问题描述WearecompilinganembeddedC++applicationthatisdeployedinashieldeddeviceinanenvironmentbombardedwithionizingradiation.WeareusingGCCandcross

发布:2022-10-16 标签:c++cfault-toleranceembeddedgcc


嵌入式 C++:是否使用 STL?

问题描述我一直是嵌入式软件工程师,但通常在OSI堆栈的第3层或第2层.我不是一个真正的硬件人.我一般一直做电信产品,通常是手机/手机,这通常意味着类似ARM7处理器的东西.Ihavealwaysbeenanembeddedsoftwareengineer,butusuallyat

发布:2022-10-16 标签:c++stlembedded


在 C/C++ 中使用 % (模数)有什么替代方法吗?

问题描述Ireadsomewhereoncethatthemodulusoperatorisinefficientonsmallembeddeddeviceslike8bitmicro-controllersthatdonothaveintegerdivisioninstruct

发布:2022-10-16 标签:c++cembeddedmodulo