August 29, 2013 Re: Decrease DMD memory usage | ||||
---|---|---|---|---|
| ||||
Posted in reply to Benjamin Thaut | On Thursday, 29 August 2013 at 14:12:39 UTC, Benjamin Thaut wrote:
> Am 29.08.2013 16:10, schrieb Vladimir Panteleev:
>> On Thursday, 29 August 2013 at 10:09:07 UTC, Temtaime wrote:
>>> Hi, Walter.
>>>
>>> Where i can get 64 bit dmd for windows that produces 32 bit executables ?
>>
>> You can compile one yourself, using Visual Studio (the Express editions
>> are free) and the Visual Studio project/solution files included with the
>> source code.
>
> Do you know since when this actually works? I tried this several times but always got tons of compile errors. The latest git revision compiles fine on 64 bit though.
>
> Kind Regards
> Benjamin Thaut
The cycle is: it works, then it gets broken, then Rainers will make a pull request that fixes it again. Repeat that a couple times between releases.
|
August 29, 2013 Re: Decrease DMD memory usage | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | I have ICC license and compiled DMD by it. I've tried to compile some my projects with it. Some stats: Original DMD: 20 sec. DMD compiled by ICC: 11 sec. x64 DMD compiled by ICC: 14 sec. DMD's memory usage during compilation is about 600 MB. Here is links: http://acomirei.ru/u/dmd.exe http://acomirei.ru/u/dmd_64.exe It is 2.063.2 DMD, so there is no need to compile druntime. Just replace original dmd.exe with it. P.S. Please, remove this links if it forbids backend license. |
August 30, 2013 Re: Decrease DMD memory usage | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | On 29/08/2013 23:35, Temtaime wrote:
> I have ICC license and compiled DMD by it.
>
> I've tried to compile some my projects with it.
> Some stats:
>
> Original DMD: 20 sec.
> DMD compiled by ICC: 11 sec.
> x64 DMD compiled by ICC: 14 sec.
>
It might be that a big chunk of that difference is down to memory handling, as it was for MSVC builds (I think ICC uses the MS C runtimes?). If that is the case, then the difference would be a lot smaller with all the latest bits.
Might be interesting to see if the ICC build is any faster than the MSVC build?
|
August 30, 2013 Re: Decrease DMD memory usage | ||||
---|---|---|---|---|
| ||||
Posted in reply to Richard Webb | Yes, it uses msvc runtimes, but ICC can optimize much more than VC. I've tried to combine DMD with tcmalloc which handles memory allocations better than built-in malloc. My project building duration is 9 sec. This is more than twice faster than DM's DMD without any compiler logic change! http://acomirei.ru/u/dmd_1.exe Okay, i'll try compile DMD with VC 2012 also. |
August 30, 2013 Re: Decrease DMD memory usage | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | Here is VC build: http://acomirei.ru/u/dmd_2.exe It gives performance about ICC: 9-10 sec. It seems that there is no places in DMD code that ICC can autovectorize. |
Copyright © 1999-2021 by the D Language Foundation