Ben Grasset <operato...@gmail.com> schrieb am Sa., 13. Juli 2019, 21:52:

> On Sat, Jul 13, 2019 at 3:47 PM Michael Van Canneyt <
> mich...@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.
>

Not necessarily. If you have two units that don't know about each other
that specialize the function with the same enum then you'd have two
specializations already.

This would need either a WPO pass or COMDAT support. Both are on my ToDo
list, especially as the former is needed if the output format does not
support the idea of COMDATs (e.g. PE/COFF and ELF do).

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to