Efficient way to compute MIPS expression
<p>I am writing a program for a embedded computer and have VERY little memory and processing power to work with.</p>

<p><strong>y</strong> and <strong>a</strong> are doubles stored in floating-point registers, and <strong>x</strong> is an <strong>array of doubles</strong>. What is the most efficient way of writing this expression in MIPS?</p>

<pre><code> y = y + a * x[i];
</code></pre>