iphone + LDC, a new ARM adventure
Dan Olson
zans.is.for.cans at yahoo.com
Fri Jan 31 09:06:52 PST 2014
Jacob Carlborg <doob at me.com> writes:
> On 2014-01-30 17:56, Dan Olson wrote:
>> A small step, but over a big hurdle. Ran D code + druntime on an
>> iPhone. Nothing fancy, but initialized runtime with rt_init() and did
>> some dynamic array operations. I include a snippet of silly D program I
>> ran at end of post.
>
> This is awesome. Have you tried any non C features, like classes yet?
>
> Keep up to good work :)
Hi Jacob,
Yes, classes work. So far everthing I have tried works except
exceptions and threads which have some stubbed out support in druntime.
And TLS is disabled too. I am just stepping through druntime features.
It may be time to figure out how to run the runtime unittests on iOS.
Or maybe the next step is to rebuild phobos using the ldc/llc two phase
approach.
Earlier I had thought classes were a problem because when I added one to
my test code, I was hitting illegal instructions in places that used to
work. I thought there was some sort of codegen alignment problem. I
now think it was because I had breakpoints on assembly instructions and
I can't leave them in after rebuilding my test app.
--
Dan
More information about the digitalmars-d-ldc
mailing list