if we have TEGRA, a multi-core mobile processor. While writing an application in assembly language for the given device, we have two options regarding code optimization.
Option A:
Do necessary optimization steps before and then write the code.
Option B:
First code the program in a normal way and then make necessary changes in order to optimize it.
Can we prefer any approach over the other or both are acceptable. Justify your answer with logical reasoning.