Re: Does DMD build as a 32bit binary under linux?

2010-09-07 Thread Don

BCS wrote:

Hello Walter,


BCS wrote:


I assuem that a 64bit DMD building 64bit binaries is one of the
objective right now. How about a 64bit->32bit? (Or for that matter,
32bit->64bit.)


There's not much reason to provide a 64 bit binary of dmd. I doubt it
would run any faster, and there's no need for a compiler to consume 5
GB of memory.



I've hit 1GB compileing a single file. It wouldn't be hard to hit 3GB.


Yes, but I'm almost certain that's just DMD's poor memory management, 
rather than an intrinsic memory-hungry problem. Array literals consume a 
*ridiculous* amount of memory, especially when you start modifying them 
in CTFE.
The solution is to improve the memory management, rather than give the 
compiler another 200GB to waste .


Re: Does DMD build as a 32bit binary under linux?

2010-09-06 Thread BCS

Hello Walter,


BCS wrote:


I assuem that a 64bit DMD building 64bit binaries is one of the
objective right now. How about a 64bit->32bit? (Or for that matter,
32bit->64bit.)


There's not much reason to provide a 64 bit binary of dmd. I doubt it
would run any faster, and there's no need for a compiler to consume 5
GB of memory.



I've hit 1GB compileing a single file. It wouldn't be hard to hit 3GB. 


--
... <





Re: Does DMD build as a 32bit binary under linux?

2010-09-06 Thread bearophile
Walter Bright:

>I doubt it would run any faster,<

I can't know.


>and there's no need for a compiler to consume 5 GB of memory.

I don't know. But currently it's not hard for me to reach about 1 GB of used 
RAM with template/CTFE-heavy code (once a certain CTFE bug is fixed, the needed 
memory probably gets smaller).

Bye,
bearophile


Re: Does DMD build as a 32bit binary under linux?

2010-09-06 Thread dsimcha
== Quote from Walter Bright (newshou...@digitalmars.com)'s article
> There's not much reason to provide a 64 bit binary of dmd.

How about using a computer that you don't have admin access to that doesn't 
offer
good support for 32-bit binaries?  Then again, for these cases you could just
compile a 64 binary from source.

> there's no need for a compiler to consume 5 GB of memory.

CTFE/fancy metaprogramming?  Lately DMD seems to use ~500MB of memory to compile
Phobos.



Re: Does DMD build as a 32bit binary under linux?

2010-09-06 Thread Walter Bright

BCS wrote:
I assuem that a 64bit DMD building 64bit binaries is one of the 
objective right now. How about a 64bit->32bit? (Or for that matter, 
32bit->64bit.)


There's not much reason to provide a 64 bit binary of dmd. I doubt it would run 
any faster, and there's no need for a compiler to consume 5 GB of memory.


Does DMD build as a 32bit binary under linux?

2010-09-06 Thread BCS
I assuem that a 64bit DMD building 64bit binaries is one of the objective 
right now. How about a 64bit->32bit? (Or for that matter, 32bit->64bit.)


--
... <