TypeFunction example creatiing a conversion matrix
Stefan Koch
uplink.coder at gmail.com
Fri Oct 2 14:45:20 UTC 2020
On Friday, 2 October 2020 at 14:42:15 UTC, Adam D. Ruppe wrote:
> On Friday, 2 October 2020 at 14:34:54 UTC, Stefan Koch wrote:
>> Replace the static immutable with enum and check again.
>
> It is identical again. As expected.
>
> # with a string literal
> $ dmd -betterC bc
> $ nm bc.o
> 0000000000000000 t
> U _GLOBAL_OFFSET_TABLE_
> 0000000000000000 W main
> U printf
>
> # with the template
>
> $ dmd -betterC bc
> $ nm bc.o
> 0000000000000000 t
> U _GLOBAL_OFFSET_TABLE_
> 0000000000000000 W main
> U printf
indeed.
now measure memory consumption during compilation :)
More information about the Digitalmars-d
mailing list