Content originally posted in LPCWare by rocketdawg on Wed Feb 05 10:04:18 MST 2014
Quote: IanB
"Maybe moving to a new MCU would be a good time to consider starting to improve your C" is a very irritating reply - presumably from someone who can't write assembler and wishes he could.
Now, now, no need to get nasty. You just flamed a NXP support person.
You think nasty is going to encourage him/her to help you all the more, or help you in the future?
Your development processes are your own concern. If you want to use assembly, go right ahead. We seldom do, and only for timing critical optimizations.
But, engineers are notorious for NOT knowing what part of the code should be optimized by using assembly, so there must be profiling proof.
Most of us cannot use assembly, because we need modern design processes, like clean code, peer review, unit tests, constant integration, regression tests, RTOS, design patterns, Safety critical, ...
We often work in teams were cut and paste is frowned upon because it transmits defects to other areas of the code, instead of a library function (that is what the linker is for) where one can fix the defect once.
We also do not want to "marry" the code. Such as, this code is mine, no one knows how it works, and if something is wrong, only I can fix it, because I am the only one that codes in asm.
you might think that leads to job security, but it really leads to a stale career. Pigeon holed.
Even a collage intern can maintain C code, but they do not really teach assembly in collage any more.
besides, I'd rather not write a peripheral stack (USB, Ethernet, SD/Fat) in assembly, when NXP goes to all the trouble to provide one in C.