Working LDC iOS (iPhone) on github
Jacob Carlborg
doob at me.com
Fri Feb 14 11:58:45 PST 2014
On 2014-02-14 10:02, Dan Olson wrote:
> I think the LDC + iOS stuff it is working well enough that others might
> have fun with it too. I made a fork of ldc/druntime on github and
> pushed up changes into branch ios-2.064. It is based on ldc merge-2.064
> branch. You will find very few changes were needed to get this far. It
> has been mostly a game of finding the right recipe and stubbing out
> missing functions for iOS.
>
> What can you do with it? Well, as far as I know, most of D 2.064
> appears to work with the exception of exceptions (that came out nice)
> and thread locals. I am sure there are many pits and holes to fall into
> though.
>
> In general:
> - TLS support not available so I disabled for now
If TLS is not natively supported, can it be emulated like DMD currently
does on OS X?
> - Threads "work", but there are unfinished pieces and a wumpus hiding
> here (e.g. not sure what gc will do when it triggers)
> - You can throw exceptions, but they have a tragic ending
> - debug info does not work and -g causes link warnings
> - things are hardcoded for iOS in a few places, so this branch may not
> work as a native compiler). For example, I had to hardcode real type
> as a 64-bit double (dmd uses host's long double type for real)
>
> I hope it works for somebody besides me. Thanks to everyone who helped
> so far.
This sounds great :)
--
/Jacob Carlborg
More information about the digitalmars-d-ldc
mailing list