Friday, 27 September 2013

Assembly Code Optimization

Assembly Code Optimization

I have experience programming with C and C++ but i am totally new to
assembly coding. The first assembly code i wrote, failed to beat the
compiler optimization. I have a couple of questions regarding assembly
coding. Would really appreciate if i can get answers to this.
Q1> Is it a good idea to push stuff on stack now and then?
Q2> Is it better to do register transfers than to push them on stack and
re-use it?
Q3> Is loading a value in register and re-using it better than using the
value directly?
Q4> Is it a good idea to put loops in assembly to reduce code size?
Thanks!

No comments:

Post a Comment