digitalmars.D.ldc - DMD, LDC, and GDC compilers and 32/64 bit
- Russel Winder via digitalmars-d-ldc (23/23) Jun 18 2017 I believe DMD, LDC, and GDC all have the -m32 or -m64 option to
- Jacob Carlborg (5/8) Jun 18 2017 Not sure if there's a better way but the "file" command will tell if
- Russel Winder via digitalmars-d-ldc (15/19) Jun 19 2017 Good point. I was obviously not thinking clearly yesterday. I am not
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. --=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 winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Jun 18 2017
On 2017-06-18 18:08, Russel Winder via digitalmars-d-ldc wrote: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.Not sure if there's a better way but the "file" command will tell if it's a 32bit or a 64bit executable. -- /Jacob Carlborg
Jun 18 2017
On Sun, 2017-06-18 at 21:06 +0200, Jacob Carlborg via digitalmars-d-ldc=20 wrote:[=E2=80=A6] =20 Not sure if there's a better way but the "file" command will tell if=20 it's a 32bit or a 64bit executable.Good point. I was obviously not thinking clearly yesterday. I am not sure that is what I will use but I will asking the same question by other means. :-) --=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 winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Jun 19 2017