Re: C++ programmer and assembly
On Apr 13, 6:48 am, "Abhishek Padmanabh"
<abhishek.padman...@gmail.com> wrote:
Very well! Thanks for the view so far!
So, as I see it would be advantageous to know and be proficient in
assembly if one delves into
1) Performance related optimizations
2) Debugging
I was trying to think quickly of an example where one programmer who
knows assembly language would have an obvious ability to understand
more than one who does not, and I have not thought of anything great,
but here are a couple of examples.
1. The register keyword. Yes, optimizers have made it mostly
superfluous, but if one declares a variable having storage class
register, at least the assembly language programmer knows precisely
the implications/possibilties, where as non-assembly programmer might
have fuzzines.
2. Pass by reference. Most of us, at one time or another, has had the
dreadful task of explaining what references are to someone who doesn't
really understand them after that person has been told by another
(perhaps senior programmer), "References are just pointers...that's
how they are implemented. A person who knows assembly language should
need no explanation, and should also be sensitive to potential danger
of telling a novice, "they are just pointers."
-Le Chaud Lapin-
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]