[fpc-devel] Documentation check

J. Gareth Moreton gareth at moreton-family.com
Fri Dec 28 18:15:05 CET 2018


 I've also discovered that my binary search algorithm is unfortunately
slower than what already exists.  Jump trees are faster if they're used.
 Gareth

 On Fri 28/12/18 17:45 , Florian Klämpfl florian at freepascal.org sent:
 Am 11.12.2018 um 20:48 schrieb Marco van de Voort: 
 > 
 > Op 2018-12-11 om 17:12 schreef J. Gareth Moreton: 
 >> 
 >> I've just written up a new segment on the Wiki about how jump tables
work.  Since I want to look at implementing my 
 >> binary search option, I thought I'd document what already exists; 
 >> 
 >> http://wiki.freepascal.org/Case_Compiler_Optimization
[1]">http://wiki.freepascal.org/Case_Compiler_Optimization 
 >> 
 >> The "Jump Table" section is what I've added.  Can people check to see
that I've got it correct? I had to go back and 
 >> edit it a few times because I got the AT">> 
 > I'm not really a compiler person, but afaik for large n, the number of
tests can be log(n) using a bisection algorithm. 
 > The microchip C (pic16/18/24/33) compilre implements this. IOW the
number of linear tests is not the metric to compare to. 
 > 

 FPC does this if needed. 
 _______________________________________________ 
 fpc-devel maillist - fpc-devel at lists.freepascal.org [2] 
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
[3]">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel 

 

Links:
------
[1] http://wiki.freepascal.org/Case_Compiler_Optimization
[2] mailto:fpc-devel at lists.freepascal.org
[3] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20181228/fccb58bf/attachment.html>


More information about the fpc-devel mailing list