<br><br><div class="gmail_quote">2012/10/4 luiz americo pereira camara <span dir="ltr"><<a href="mailto:luizmed@oi.com.br" target="_blank">luizmed@oi.com.br</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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><br><div><div class="im"><div>On 03 Oct 2012, at 03:29, luiz americo pereira camara wrote:</div><br></div><div class="im"><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></div><br></div>
<div class="im"><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><font color="#888888"><div><br></div></font></span></div></div></blockquote><div><br>Why it compiles and works with fpc 2.6.0 64bit under windows (and also Delphi)?<br><br></div></div></blockquote><div><br>Forget about the above question<br>
<br>Now i understand<br><br>Luiz<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><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><font color="#888888"><div></div><div><br></div><div>Jonas</div></font></span></div><div class="im"><br>_______________________________________________<br>
fpc-devel maillist  -  <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">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></div></blockquote></div><br>
</blockquote></div><br>