[fpc-devel] [Suggestion] Enumeration range-check intrinsic
    Ben Grasset 
    operator97 at gmail.com
       
    Sat Jul 13 21:52:02 CEST 2019
    
    
  
On Sat, Jul 13, 2019 at 3:47 PM Michael Van Canneyt <michael at freepascal.org>
wrote:
> No doubt, but this will lead to a bloated binary. I want less code (both
> source and assembler), not more.
>
Well, it would be one instantiation per unique type it was used on.
So if you had five hand-written helper functions for different types, and
replaced all of them with the use of a single generic function, you'd still
end up with just five functions worth of assembler code (i.e. the same
amount you had to begin with.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190713/fbb4f8ee/attachment-0001.html>
    
    
More information about the fpc-devel
mailing list