Search found 2 matches

by sddavis14
Mon Dec 29, 2014 12:28 am
Forum: General Support
Topic: ChibiOS Memory Allocators with C++ Standard Library
Replies: 2
Views: 1769

Re: ChibiOS Memory Allocators with C++ Standard Library

I did a bit more testing and it turns out that implementing the C++ new and delete operators actually does replace their implementation in the standard library. I assumed that they didn't but thankfully I was wrong. Thanks for your quick reply!
by sddavis14
Sun Dec 28, 2014 6:51 pm
Forum: General Support
Topic: ChibiOS Memory Allocators with C++ Standard Library
Replies: 2
Views: 1769

ChibiOS Memory Allocators with C++ Standard Library

Hi everyone,

I'm developing a system that is using C++ with the standard library linked and ChibiOS. My toolchain is yagarto with newlib and the g++ compiler. I've overridden the new and delete operators to use chHeapAlloc/chHeapFree but obviously these are not used in the C++ standard library. It ...