10 ms·
Remember that embedded programming is often deployed on a particular machine using particular tools. So even with all the uncertainty, a little testing (looking
by JoeAltmaier 9y ago
Remember that embedded programming is often deployed on a particular machine using particular tools. So even with all the uncertainty, a little testing (looking at generated code) and you can get it to work. And it should stay working, since the code isn't going anywhere (different machine/tools).
There's still the downside of course - looking at the code to 'prove' it is troublesome. And often the code generated for bitfields is ugly. You can likely generate better code by hand.
So the single remaining advantage is, the C looks pretty clear. There's the register; there are its bits by name; assuming that's all been checked to work right, the coding (and code reading) can proceed without any more concern over bits.