Is dmd fast?
Adrian Matoga via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jun 22 08:31:07 PDT 2016
On Wednesday, 22 June 2016 at 14:28:19 UTC, Adam D. Ruppe wrote:
> BTW this more measures linker speed than compiler. dmd -c -o-
> just runs the compiler and skips filesystem output... it'd be
> pretty fast and if there's similar options for other compilers
> (gcc has -c too at least) it might be better for small programs.
>
> Larger programs I think is fair to include the link step, since
> it should be less a percentage there and you do need to run it
> anyway.
Yeah, you do need to run it anyway, even if you build
incrementally.
It'd be a lie to omit the link time when the compiler actively
works to make linker's job harder by inflating the symbol table
to tens or hundreds of megabytes.
More information about the Digitalmars-d
mailing list