D to ASM.js vs D to Dart (VM)

Paulo Pinto via Digitalmars-d digitalmars-d at puremagic.com
Sun May 18 01:08:07 PDT 2014


Am 18.05.2014 10:02, schrieb bearophile:
> deadalnix:
>
>> If the machine code is the same, the function can be merged by the
>> optimizer.
>
> But in general isn't it more efficient to not generate bloat instead of
> generating it, detecting it, and removing it?
>
> Bye,
> bearophile

Which you can only do if the compiler can see the whole code.

It doesn't work in binary libraries.

--
Paulo


More information about the Digitalmars-d mailing list