[fpc-devel] x86-64 compilation of while loops

J. Gareth Moreton gareth at moreton-family.com
Mon May 28 08:31:28 CEST 2018


 Good call on using "repeat...until" in my own code, thanks!

 I wasn't clear, but my intention was also keeping the conditional check at
the end of the loop, but duplicating it at the start with the condition
inverted.  In other words, having both these example code segments:

 ****
     xorl    %r10d,%r10d
     movl    $1,%r11d
     movl    %edx,%eax
     cmpq    %rax,%r11
     jge  .Lj7
     .balign 8,0x90
 .Lj5:
     ...
 .Lj6: // 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180528/d4a3b27b/attachment.html>


More information about the fpc-devel mailing list