www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD on Mac OS X

reply "David Barrett" <dbarrett quinthar.com> writes:
I understand that Mac OS X uses a Unix back end, but does DMD work on it?
If not, are there any plans to port DMD to OS X in the forseeable future?

-david
Jul 08 2004
next sibling parent reply Sam McCall <tunah.d tunah.net> writes:
It's my understanding that DMD is x86 only. Check out GDC, which adds a 
D frontend for gcc: http://home.earthlink.net/~dvdfrdmn/d/, and the 
newsgroup D.gnu.
Sam
Jul 08 2004
parent reply kinghajj <kinghajj_member pathlink.com> writes:
In article <ccl4lo$s35$1 digitaldaemon.com>, Sam McCall says...
It's my understanding that DMD is x86 only. Check out GDC, which adds a 
D frontend for gcc: http://home.earthlink.net/~dvdfrdmn/d/, and the 
newsgroup D.gnu.
Sam

Well, MacOS X is UNIX, so maybe if Walter took the Linux DMD code and compiled it on MacOS X (which has GCC pre-installed :) and see if it works.
Jul 08 2004
parent reply Daniel Horn <hellcatv hotmail.com> writes:
if he did get this to work it would still produce an x86 binary at the end.
perhaps it would be useful to cross compile or to run in virtual PC, but 
the only way to get D workin' on the mac is to use the gdc compiler 
which is several versions behind still (I think it's at 0.82 and can't 
do statically sized arrays properly even (silent failure))

kinghajj wrote:
 In article <ccl4lo$s35$1 digitaldaemon.com>, Sam McCall says...
 
It's my understanding that DMD is x86 only. Check out GDC, which adds a 
D frontend for gcc: http://home.earthlink.net/~dvdfrdmn/d/, and the 
newsgroup D.gnu.
Sam

Well, MacOS X is UNIX, so maybe if Walter took the Linux DMD code and compiled it on MacOS X (which has GCC pre-installed :) and see if it works.

Jul 09 2004
parent kinghajj <kinghajj_member pathlink.com> writes:
In article <ccmppa$bhn$1 digitaldaemon.com>, Daniel Horn says...
if he did get this to work it would still produce an x86 binary at the end.
perhaps it would be useful to cross compile or to run in virtual PC, but 
the only way to get D workin' on the mac is to use the gdc compiler 
which is several versions behind still (I think it's at 0.82 and can't 
do statically sized arrays properly even (silent failure))

It would? I thought that the Linux DMD just made object files, and used GCC to compile... aren't object files cross-platform?
Jul 09 2004
prev sibling parent Andy Friesen <andy ikagames.com> writes:
David Barrett wrote:
 I understand that Mac OS X uses a Unix back end, but does DMD work on it?
 If not, are there any plans to port DMD to OS X in the forseeable future?

GDC has been built on OSX before: news://news.digitalmars.com:119/drewmccormack-BD9C75.17262822042004 digitalmars.com If memory serves, Apple made some funky weird changes in their branch of the GCC compiler which breaks a lot of things (something along the lines of getting the front- and back-ends all mixed up). You need to use the GNU sources. -- andy
Jul 09 2004