Yes I appreciate his input too.Thank you THE_RB for providing a very good analogy. The discussion shouldn't be about Assembly Language vs. C, but rather having the knowledge and wisdom to know when to use one or the other (or both).
Maybe the thread subject is misunderstood. Assembler has areas where it is beneficiary to use it.
But I would like to see warning messages/disclaimers, explaining the issues that will arise from using assembler, where how and why NOT to use it, and what NOT to do.
Some years ago I wrote various programs for 80x86, including a GUI, and some small games using graphics.
It was not too bad given the compatiblity between different 80x86 CPUs, but on the PIC micro platform, all are different for banking, and there are at least 5 or 6 different architectures. Using assembler on the PIC32 would be rather ridiculous, especially using it exclusively for all of the program.
I understand that there can be time critical tasks, where assembler well makes sense to use.
That is not the point, that I would hate assembler, and would like to see it disappear into a museum.
I only say, there are numerous things about assembler, and/or using assembler (the issues that arise), which I strongly don't like.
And I also mean I don't like, if people use assembler exclusively for all of the program, then do things like spelling register address numerically, comment every line, or mix up capitalization so there will be 5 or 5 different methods of using capitalization inside such an assembler source.
Most professional programs which use structured approach, somehow will be professional (as in the titulation), and will avoid spaghetti code and mixing it all together in one large main sequence.
When I was younger I did not find it so easy to learn machine-near programming. There was no internet. We had C compiler installed in our school, but it was messed up, so even the examples were not possible to try. Actually among using BASIC, I wrote my first larger programs in 80x86 assembler.
Then I also used it for PIC micro, it is beneficiary for using C, but to some degree I regret the effort that I put into larger programs. They are a bit hard for myself to understand now.
I rewrote some in C already, and typically this took me 1/10 of the time!
If someone would have explained it to me, including the advice to use C, not assembler, that would have been highly useful to me!
Last edited: