[fpc-devel] Case code pattern
J. Gareth Moreton
gareth at moreton-family.com
Tue Aug 14 09:01:36 CEST 2018
I stand corrected - thanks.
*makes note to research more weird and wondeful things in the compiler!*
Gareth aka. Kit
On Tue 14/08/18 09:00 , Martok listbox at martoks-place.de sent:
Hi,
> I would need a clarification about the way the case statement is
> translated into assembler by FPC. When the list of alternatives is
> continous, does the compiler generate a jump table?
What Kit said, but a correction: the threshold is not 50, it is 19. And
what is generated is not technically a jump table, but a
typed dispatch table.
--
Regards,
Martok
Ceterum censeo b32079 esse sanandam.
_______________________________________________
fpc-devel maillist - fpc-devel at lists.freepascal.org [1]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
[2]">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
Links:
------
[1] mailto:fpc-devel at lists.freepascal.org
[2] 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/20180814/0a242773/attachment.html>
More information about the fpc-devel
mailing list