If you are using a high level compiled language like C
there should be no need to concern yourself with this. Any compiler worth its salt, will do a good job of optimizing your code. Sometimes there are settings were you can optimize either for speed or memory space, and that's usually about it. Let the software do the work.