Thread overview
DMD on Mac OS X
Jul 08, 2004
David Barrett
Jul 09, 2004
Sam McCall
Jul 09, 2004
kinghajj
Jul 09, 2004
Daniel Horn
Jul 10, 2004
kinghajj
Jul 10, 2004
Andy Friesen
July 08, 2004
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


July 09, 2004
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
July 09, 2004
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.


July 09, 2004
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.
> 
> 
July 10, 2004
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?



July 10, 2004
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