5 ms·
> I still don’t really understand how c++ behaves with exception handling thrown in the mix In my experience you normally disable exceptions when working on em
by oytis 4y ago
> I still don’t really understand how c++ behaves with exception handling thrown in the mix
In my experience you normally disable exceptions when working on embedded code. No RTTI either.
> What’s debugging like?
What's with debugging? Not different to C at all.
> How do people agree on what subset of the language and it’s plethora of features to use?
You agree on the language standard to use, you don't pull dependencies arbitrarily and you keep an eye on the code size and memory usage. Some things might go into project style guide which is a nice thing to have anyway.
- bfrog 4y agoSeeing c, seeing the assembly and memory layout, debugging is pretty easy. More than once I’ve ran into C compiler bugs. I can imagine running into the same issue with C++ being pretty troublesome?
- oytis 4y agoOh. Frankly I've probably never seen a compiler bug in my life. I have to look at the assembly sometimes though when debugging faults of various kinds, and I don't find matching C++ to assembly significantly more complicated than C. There is just a bit of additional knowledge maybe on how vtables work and that's it. Exceptions are probably a pain too, but embedded code doesn't allow them as a rule.