www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD and 64-bit

reply Russel Winder <russel russel.org.uk> writes:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Am I correct in assuming that DMD generates 32-bit by default and that
for 64-bit you have to give the -m64 option?

Is the eventual plan to use the natural word length of the platform as
the default, i.e. 32-bit on 32-bit and 64-bit on 64-bit, with the option
to force something different using the -m option =C3=A0 la GCC?

THanks.
=20
--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder ekiga.n=
et
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel russel.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
Feb 19 2011
next sibling parent "Denis Koroskin" <2korden gmail.com> writes:
On Sat, 19 Feb 2011 12:12:25 +0300, Russel Winder <russel russel.org.uk>=
  =

wrote:

 Am I correct in assuming that DMD generates 32-bit by default and that=

 for 64-bit you have to give the -m64 option?

 Is the eventual plan to use the natural word length of the platform as=

 the default, i.e. 32-bit on 32-bit and 64-bit on 64-bit, with the opti=

 to force something different using the -m option =C3=A0 la GCC?

 THanks.

I'd expect so. Unfortunately, 64-bit support is not mature enough yet to= = make it default.
Feb 19 2011
prev sibling next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
Russel Winder wrote:
 Am I correct in assuming that DMD generates 32-bit by default and that
 for 64-bit you have to give the -m64 option?
 
 Is the eventual plan to use the natural word length of the platform as
 the default, i.e. 32-bit on 32-bit and 64-bit on 64-bit, with the option
 to force something different using the -m option à la GCC?

Yes, but not yet.
Feb 19 2011
prev sibling parent Russel Winder <russel russel.org.uk> writes:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, 2011-02-19 at 15:28 -0800, Walter Bright wrote:
 Russel Winder wrote:
 Am I correct in assuming that DMD generates 32-bit by default and that
 for 64-bit you have to give the -m64 option?
=20
 Is the eventual plan to use the natural word length of the platform as
 the default, i.e. 32-bit on 32-bit and 64-bit on 64-bit, with the optio=


 to force something different using the -m option =C3=A0 la GCC?

Yes, but not yet.

Cool, and understandable. 64-bit support needs to be shaken down more and available on Windows as well as Linux, before any thought of having a policy of generating for the platform. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel russel.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Feb 20 2011