March 19, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On Monday, 18 March 2019 at 21:34:40 UTC, Per Nordlöw wrote: > On Monday, 18 March 2019 at 12:33:12 UTC, Seb wrote: >> [1] https://github.com/dlang/installer > > Does this include a script for building dmd with ldc or this not yet possible? Well, you don't really need a script: git clone https://github.com/dlang/dmd HOST_DMD=ldmd2 make -f posix.mak -j10 Additionally, you can add `ENABLE_RELEASE=1` to create a fully optimized release binary. This has been possible for a very long time and actually is even tested on every PR with SemaphoreCI (Linux) and AppVeyor (Windows). BTW, the Arch DMD package [1] is the only package that I know of which is actually using LDC to compile DMD for the released binaries. [1] https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dmd#n54 |
March 19, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Tuesday, 19 March 2019 at 10:10:28 UTC, Seb wrote: > On Monday, 18 March 2019 at 21:34:40 UTC, Per Nordlöw wrote: >> On Monday, 18 March 2019 at 12:33:12 UTC, Seb wrote: >>> [1] https://github.com/dlang/installer >> >> Does this include a script for building dmd with ldc or this not yet possible? > > Well, you don't really need a script: > > git clone https://github.com/dlang/dmd > HOST_DMD=ldmd2 make -f posix.mak -j10 HOST_DMD=ldmd2 make -f posix.mak -j`nproc` FTFY. It's bad enough make is a dinosaur that defaults to one thread, let's not hard-code the number of cores. > Additionally, you can add `ENABLE_RELEASE=1` to create a fully optimized release binary. Awesome. > BTW, the Arch DMD package [1] is the only package that I know of which is actually using LDC to compile DMD for the released binaries. Huh, I didn't know that. Yay Arch! And yet, compilation times are still my mortal enemy... |
March 19, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Tuesday, 19 March 2019 at 10:10:28 UTC, Seb wrote: > BTW, the Arch DMD package [1] is the only package that I know of which is actually using LDC to compile DMD for the released binaries. > > [1] https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dmd#n54 I'm building DMD packages for RPM-based distros [1], and I'm using LDC too to compile it on Fedora since it's available in the official Fedora repositories. [1] https://copr.fedorainfracloud.org/coprs/tcg/devel/package/dmd/ |
March 20, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Tuesday, 19 March 2019 at 10:10:28 UTC, Seb wrote:
> Well, you don't really need a script:
>
> git clone https://github.com/dlang/dmd
> HOST_DMD=ldmd2 make -f posix.mak -j10
>
> Additionally, you can add `ENABLE_RELEASE=1` to create a fully optimized release binary.
Thanks!
|
October 17, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On Saturday, 16 March 2019 at 21:23:18 UTC, Per Nordlöw wrote:
> https://github.com/nordlow/compiler-benchmark
Just added support for V (vlang.io), Zig and Julia.
|
October 21, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On Thursday, 17 October 2019 at 17:05:14 UTC, Per Nordlöw wrote:
> On Saturday, 16 March 2019 at 21:23:18 UTC, Per Nordlöw wrote:
>> https://github.com/nordlow/compiler-benchmark
>
> Just added support for V (vlang.io), Zig and Julia.
Very interesting - thanks for this!
Any reason why you left Go's `gc` out?
|
October 21, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Márcio Martins | On Monday, 21 October 2019 at 11:07:14 UTC, Márcio Martins wrote:
> Any reason why you left Go's `gc` out?
What do you mean by `gc`?
Is `gc` a checker or checker flag to some compiler?
Can't find any relevant hits for hit the web.
|
October 21, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On Monday, 21 October 2019 at 11:27:05 UTC, Per Nordlöw wrote:
> On Monday, 21 October 2019 at 11:07:14 UTC, Márcio Martins wrote:
>> Any reason why you left Go's `gc` out?
Note that I just changed `-c` to `-S` in the call go `gccgo` in `benchmark` to skip assmembly phase.
|
October 21, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | On Monday, 21 October 2019 at 11:27:05 UTC, Per Nordlöw wrote:
> On Monday, 21 October 2019 at 11:07:14 UTC, Márcio Martins wrote:
>> Any reason why you left Go's `gc` out?
>
> What do you mean by `gc`?
>
> Is `gc` a checker or checker flag to some compiler?
>
> Can't find any relevant hits for hit the web.
That's google reference implementation. Sort of like `DMD`, should be faster, but generating less optimal code.
|
October 21, 2019 Re: Compiler benchmarker for D, C, C++, Go, Rust with more to come | ||||
---|---|---|---|---|
| ||||
Posted in reply to Márcio Martins | On Monday, 21 October 2019 at 11:59:15 UTC, Márcio Martins wrote:
> That's google reference implementation. Sort of like `DMD`, should be faster, but generating less optimal code.
Is it prepackaged on Ubuntu?
|
Copyright © 1999-2021 by the D Language Foundation