<p>Am 03.02.2015 12:13 schrieb "Jonas Maebe" <<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>>:<br>
><br>
> On 03/02/15 11:33, misu kun wrote:<br>
> > i mean even if you initilize c with a const value.<br>
><br>
> That is irrelevant.<br>
><br>
> > i enabled {$optimization constprop} but nothing changed !<br>
><br>
> I misread the original assembler code you posted, due to how you phrased<br>
> the subject of your mail. The inline function is actually already<br>
> completely evaluated at compile time (you probably compiled with -O3<br>
> before) and the compiler does use the statically evaluated function<br>
> return value (rather than calling the function).<br>
><br>
> It's however true that there appear to be a few missing optimizations to<br>
> fold the rest of the address calculation, but those are minor.</p>
<p>But three times the addition of "c" will stay, right? Afterall globals are considered volatile...</p>
<p>Regards,<br>
Sven</p>