Quantcast
Channel:
Viewing all articles
Browse latest Browse all 20

Let me ask you a question --

$
0
0

Let me ask you a question -- how are you going to write more complex code using pointers? Where you will store intermediate values? Your example is too simple to understand the differences in writing with pointers and with load/store (registers).

My advice for you is to try writing a more complex algorithm using both approaches and then evaluate the following:

1. How long did it take you to write each version?
2. Which code has better readability?
3. Is there a difference in the generated assembler?
4. Is there a difference in performance?

After answering those questions you will understand which "style" is better.


Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>