DMD, LDC, and GDC compilers and 32/64 bit

Russel Winder via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Jun 18 09:08:36 PDT 2017


I believe DMD, LDC, and GDC all have the -m32 or -m64 option to
determine the word size of compiled object and executable.

I also believe there are 32-bit and 64-bit builds of the three
compilers. Or are there?

It appears at some time in the past that some of the compilers when
compiled as 32-bit executables, could not generate 64-bit objects and
executables as they did not understand the -m64 option, it was not
compiled in.

I am asking this as I cannot test to get experimental data, but I need
to fix a long standing removal of a test in the SCons D test suite.

Is there a way to determine the bitsize of the compiler executable, in
the test it is assumed that if the OS is 32-bit then so are the D
compilers.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-ldc/attachments/20170618/e67fe617/attachment.sig>


More information about the digitalmars-d-ldc mailing list