[fpc-devel] [Suggestion] Enumeration range-check intrinsic

Michael Van Canneyt michael at freepascal.org
Mon Jul 15 23:50:20 CEST 2019



On Mon, 15 Jul 2019, Ben Grasset wrote:

> On Mon, Jul 15, 2019 at 5:23 PM Sven Barth via fpc-devel <
> fpc-devel at lists.freepascal.org> wrote:
>
>> That is exactly what is happening if you have a specialization in multiple
>> units that don't know about each other.
>>
>
> At what point are they being removed so that the executable is not
> comically large, then? Is it on the FPC side, or the linker side? Or a bit
> of both perhaps?

As far as I know, they are not. I believe that when specializing, the
compiler checks if an identical specialization is in scope: 
if so, it uses that. If not, a duplicate is made.

As far as I know, Delphi behaves the same.

Michael.


More information about the fpc-devel mailing list