Re: C++ programmer and assembly
Abhishek Padmanabh wrote:
The question is : how important is it to learn assembly language for a
C++ programmer? Certain people are of the opinion that is strongly
required and certain are not. What could be the reasons behind either
opinion depending upon the variety of applications domains touched by C
++?
You can successfully write C++ code without knowing any assembler.
However, it's been my experience that those programmers who do know
assembler tend to write much better C++ code. The reason is
straightforward - they understand the tools much better, and
understanding them enables you to make better use of them, rather than
being mystified by them.
I've found it to be generally true that people who don't know assembler
have a lot of difficulty writing high performance C++ code. If their
code is fast, it's more based on luck rather than correct reasoning.
It's much faster to debug code if you can look at and understand
assembler. Otherwise, it can be like poking a stick through a cage in
the zoo while blindfolded.
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]