<br><br><div class="gmail_quote">2012/10/3 Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be" target="_blank">jonas.maebe@elis.ugent.be</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div class="im"><br><div><div>On 03 Oct 2012, at 03:29, luiz americo pereira camara wrote:</div><br><blockquote type="cite"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Monaco;word-spacing:0px"><span style="font-family:monospace"><br>
at the line<br> // Load XMM5 with the bias value.<br> MOVD XMM5, [Bias] //Bias = Integer<br><br>Is it a know issue or a limitation of linux version?<br></span></span></blockquote></div><br></div><div>
Win64 uses a different calling convention compared to every other x86-64 operating system (Microsoft probably started working on it before the x86-64 ABI was finalized). One of the differences is that only passes the first three integer parameters in registers, while other operating systems pass the first six integer parameters in registers. This means that on Win64, the above translates into</div>
<div><br></div><div> movd xmm5, [rpb + some_offset]</div><div><br></div><div>while on other platforms, it translates into</div><div><br></div><div> movd xmm5, [r8d]</div><div><br></div><div>So you are creating a reference with r8d as base register, which is invalid (because it's a 32 bit register)</div>
<span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div></blockquote><div><br>Why it compiles and works with fpc 2.6.0 64bit under windows (and also Delphi)?<br><br><br>Luiz<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><span class="HOEnZb"><font color="#888888"><div></div><div><br></div><div>Jonas</div></font></span></div><br>_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-devel" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-devel</a><br>
<br></blockquote></div><br>