www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DMD Zip for Mac OS X

reply "Mike Parker" <aldacron gmail.com> writes:
I'm not a Mac user and I'm fairly clueless about it. The DMD zip 
for OS X contains one executable. I assume it's a 64-bit binary. 
Is that true?
Feb 27 2015
next sibling parent "Nicholas Wilson" <iamthewilsonator hotmail.com> writes:
On Saturday, 28 February 2015 at 06:45:58 UTC, Mike Parker wrote:
 I'm not a Mac user and I'm fairly clueless about it. The DMD 
 zip for OS X contains one executable. I assume it's a 64-bit 
 binary. Is that true?
Most likely a disk image (.dmg). (en.wikipedia.org/wiki/Apple_Disk_Image)
Feb 28 2015
prev sibling next sibling parent "Ilya Yaroshenko" <ilyayaroshenko gmail.com> writes:
On Saturday, 28 February 2015 at 06:45:58 UTC, Mike Parker wrote:
 I'm not a Mac user and I'm fairly clueless about it. The DMD 
 zip for OS X contains one executable. I assume it's a 64-bit 
 binary. Is that true?
Hi! Probably, yes. Anyway dmd compiles 64-bit binaries on OS X. Ilya
Feb 28 2015
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2015-02-28 07:45, Mike Parker wrote:
 I'm not a Mac user and I'm fairly clueless about it. The DMD zip for OS
 X contains one executable. I assume it's a 64-bit binary. Is that true?
Yes. Since DMD on OS X got support for 64bit DMD has only been shipped as 64bit. There's basically no Mac computers left that doesn't support 64bit. On some older computers the kernel is run in 32bit mode even thought the CPU supports 64bit. These computers can run both 32 and 64bit binaries. If one really do want to ship a 32 and a 64bit binary the OS X way is to create a universal binary containing both the 32 and 64bit version. All system libraries on OS X are universal binaries, so cross-compiling is usually no problem. -- /Jacob Carlborg
Feb 28 2015
parent Mike Parker <aldacron gmail.com> writes:
On 2/28/2015 10:36 PM, Jacob Carlborg wrote:
 On 2015-02-28 07:45, Mike Parker wrote:
 I'm not a Mac user and I'm fairly clueless about it. The DMD zip for OS
 X contains one executable. I assume it's a 64-bit binary. Is that true?
Yes. Since DMD on OS X got support for 64bit DMD has only been shipped as 64bit. There's basically no Mac computers left that doesn't support 64bit. On some older computers the kernel is run in 32bit mode even thought the CPU supports 64bit. These computers can run both 32 and 64bit binaries. If one really do want to ship a 32 and a 64bit binary the OS X way is to create a universal binary containing both the 32 and 64bit version. All system libraries on OS X are universal binaries, so cross-compiling is usually no problem.
Thanks, this is what I was looking for.
Feb 28 2015