News for hackers. Stuff that matters.
Re:Thor – A minimalistic operating system in assembly and C++ by digler999 on Tuesday August 23, 2016 @01:08PM (#12345308)
In your string example (and in RTOS/C++ programming in general) couldn't you just change the default allocator to not use heap memory ? Then continue using std::whatever ? of course you'd have to keep a very close eye on your memory pool, but wouldn't this be one way to solve the problem ?
Re:Thor – A minimalistic operating system in assembly and C++ by pjc50 on Tuesday August 23, 2016 @05:47PM (#12347993)
Quite a lot of embedded architects would say that allocation should never happen at all. That rules out the STL and much modern C++ style.