Yes, ever since I got started with programming back in 1976. 6502, Z80, x86, 6809, 68k, ...
Ralf
Good for u. Then u should know programmers can GAIN a lot by doing some things in assembly.
As with a lot in life, "it depends"...
In fact, for the part where you said assembly is buggy, it is the other way around.
Please quote the sentence where I said that!
C programmers often rely on assembly / debugger listing to find their hard-to-trace bugs. Not the other way around. My assembly library is strong enough to make my C program skip <stdio.h> and <math.h> entirely and I still get twice the speed and half the size of typical C program relying on those two standard headers. That's a big GAIN especially on embedded system.
You are comparing apples and oranges here.
Yes, in some cases, you can gain
some benefit from programming in assembler, for certain, limited use cases. And as far as embedded programming goes, I have done my fair share of this and rarely bother with assembler these days. For example, for the popular Arduino boards which use the 8bit Atmel AVR RISC micro-controllers, you barely gain anything by using assembler, as Atmel designed the chips and their instruction sets right from the start with view on allowing a C compiler to produce the most optimal code by consulting a C compiler developer company (
IAR in Sweden) during the initial chip design phase. And the GCC based AVR compiler used by Arduino is producing pretty identically optimized code. Trying to get a couple of bytes here and there is a waste of time and energy in that case.
It is not good to give people misleading statements when in the end C is compiled to machine binaries anyway.
Why is it "misleading"? You use the best tool for the case. And in a lot of cases (and in case of Pelle's C, and that includes POIDE) when programming for Windows based code, you can rather gain a lot more by concentrating on your program concepts and the algorithms used rather than trying to do things in assembler. That applies to personal use cases and even more so for anything serious/professional.
It is rather a myth that assembler is
always better/faster/more efficient...
Ralf