Are there any techniques to optimize code in order to ensure lesser power consumption.Architecture is ARM.language is C
If you are not running Windows XP+ or a newer version of Linux, you could run a background thread which does nothing but HLT.
This is how programs like CPUIdle reduce power consumption/heat.