D support on SPARC/Solaris

Joakim via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 30 08:39:53 PDT 2014


On Thursday, 30 October 2014 at 14:03:23 UTC, Wyatt wrote:
> At work, I have to target SPARC/Solaris.  I'm writing code to 
> interface with an internal network protocol, so my current 
> choices are C and (old) C++ (remember Sun Studio?  I wish I 
> didn't have to).  Having looked, it seems like there's some 
> manner of support for SPARC in the runtime, but restricted to 
> Linux and FreeBSD?  Is that correct?
Someone may have been thorough when adding arches to certain 
files, but that in no way implies much actual support.  The gdc 
section of the download page claims sparc support, so you could 
look at what they've done.

> In which case, what would an enterprising individual have to 
> actually do (read: fix or implement) to use D in that 
> environment?  (If it comes down to it, it may be worth my while 
> to add it myself.)
You may be able to combine the existing Solaris support and the 
sparc backend of llvm or gcc and get pretty far.  A lot of the 
work should just be translating headers needed for the 
solaris/sparc sections in druntime.  You could look at the 
linux/powerpc work Kai did with ldc for an idea of the changes 
necessary for a new arch.

> This echoes a thread Nordlöw started about six months ago, but 
> my constraints aren't as rigid: DMD would be fine for me.  I 
> just pine for non-crap language.
As kagamin said, dmd's backend is i386/x86_64 only, so you have 
to use ldc or gdc.


More information about the Digitalmars-d-learn mailing list