|
|
In software development with strict performance requirements, the two important considerations are speed of execution and memory requirements. Writing the code in assembly language increases speed of execution and also results in optimal code. However, maintaining the code written in assembly language is difficult. Hence, the code is generally written in a high level language such as C or C++ and then some portions of the code, which take lot of execution time, are written in assembly. Even while writing the code in a high-level language, code optimization can be done to make the execution faster. Some important code optimization guidelines are given below:
Note: Elimination of dead code, avoiding recursion, avoiding floating-point operations to the possible extent, avoiding large library routines and removal of loop-invariant statements are some of the important guidelines for code optimization.
|
|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.